Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
jami-daemon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
jami-daemon
Commits
c6f92507
Commit
c6f92507
authored
2 years ago
by
Vladimir Stoiakin
Browse files
Options
Downloads
Patches
Plain Diff
meson: update tests
Change-Id: I0a72cd58d0c3822ecb99366f2e96c10eb81d7900
parent
782053c3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
meson.build
+19
-21
19 additions, 21 deletions
meson.build
src/meson.build
+13
-13
13 additions, 13 deletions
src/meson.build
test/meson.build
+55
-62
55 additions, 62 deletions
test/meson.build
with
87 additions
and
96 deletions
meson.build
+
19
−
21
View file @
c6f92507
...
...
@@ -6,7 +6,6 @@ project('jami-daemon', ['c', 'cpp'],
)
modpkgconfig
=
import
(
'pkgconfig'
)
modcmake
=
import
(
'cmake'
)
if
host_machine
.
system
()
==
'darwin'
add_languages
(
'objcpp'
)
...
...
@@ -15,24 +14,24 @@ endif
#################################################
# Required dependencies
#################################################
depthreads
=
dependency
(
'threads'
)
depopendht
=
dependency
(
'opendht'
,
version
:
'>= 2.1.0'
)
depgnutls
=
dependency
(
'gnutls'
,
version
:
'>= 3.6.7'
)
depnettle
=
dependency
(
'nettle'
,
version
:
'>= 3.0.0'
)
deplibpjproject
=
dependency
(
'libpjproject'
)
deplibgit2
=
dependency
(
'libgit2'
,
version
:
'>= 1.1.0'
)
deplibsecp256k1
=
dependency
(
'libsecp256k1'
,
version
:
'>= 0.1'
)
deplibavcodec
=
dependency
(
'libavcodec'
,
version
:
'>= 56.60.100'
)
deplibavfilter
=
dependency
(
'libavfilter'
,
version
:
'>= 5.40.101'
)
deplibavdevice
=
dependency
(
'libavdevice'
,
version
:
'>= 56.4.100'
)
deplibavformat
=
dependency
(
'libavformat'
,
version
:
'>= 56.40.101'
)
deplibswscale
=
dependency
(
'libswscale'
,
version
:
'>= 3.1.101'
)
deplibswresample
=
dependency
(
'libswresample'
,
version
:
'>= 1.2.101'
)
deplibavutil
=
dependency
(
'libavutil'
,
version
:
'>= 55.75.100'
)
depfmt
=
dependency
(
'fmt'
,
version
:
'>= 5.3'
)
depyamlcpp
=
dependency
(
'yaml-cpp'
,
version
:
'>= 0.5.1'
)
depjsoncpp
=
dependency
(
'jsoncpp'
,
version
:
'>= 1.6.5'
)
depzlib
=
dependency
(
'zlib'
)
depthreads
=
dependency
(
'threads'
)
depopendht
=
dependency
(
'opendht'
,
version
:
'>= 2.1.0'
)
depgnutls
=
dependency
(
'gnutls'
,
version
:
'>= 3.6.7'
)
depnettle
=
dependency
(
'nettle'
,
version
:
'>= 3.0.0'
)
deplibpjproject
=
dependency
(
'libpjproject'
)
# a custom fork, see contrib/src/pjproject/rules.mak
deplibgit2
=
dependency
(
'libgit2'
,
version
:
'>= 1.1.0'
)
deplibsecp256k1
=
dependency
(
'libsecp256k1'
,
version
:
'>= 0.1'
)
deplibavcodec
=
dependency
(
'libavcodec'
,
version
:
'>= 56.60.100'
)
deplibavfilter
=
dependency
(
'libavfilter'
,
version
:
'>= 5.40.101'
)
deplibavdevice
=
dependency
(
'libavdevice'
,
version
:
'>= 56.4.100'
)
deplibavformat
=
dependency
(
'libavformat'
,
version
:
'>= 56.40.101'
)
deplibswscale
=
dependency
(
'libswscale'
,
version
:
'>= 3.1.101'
)
deplibswresample
=
dependency
(
'libswresample'
,
version
:
'>= 1.2.101'
)
deplibavutil
=
dependency
(
'libavutil'
,
version
:
'>= 55.75.100'
)
depfmt
=
dependency
(
'fmt'
,
version
:
'>= 5.3'
)
depyamlcpp
=
dependency
(
'yaml-cpp'
,
version
:
'>= 0.5.1'
)
depjsoncpp
=
dependency
(
'jsoncpp'
,
version
:
'>= 1.6.5'
)
depzlib
=
dependency
(
'zlib'
)
if
get_option
(
'interfaces'
).
contains
(
'dbus'
)
depdbuscpp
=
dependency
(
'dbus-c++-1'
)
...
...
@@ -147,8 +146,7 @@ configure_file(
output
:
'config.h'
,
configuration
:
conf
)
add_project_arguments
(
'-DHAVE_CONFIG_H'
,
language
:
'cpp'
)
add_project_arguments
(
'-DHAVE_CONFIG_H'
,
language
:
'c'
)
add_project_arguments
(
'-DHAVE_CONFIG_H'
,
language
:
[
'c'
,
'cpp'
])
#################################################
# Build targets
...
...
This diff is collapsed.
Click to expand it.
src/meson.build
+
13
−
13
View file @
c6f92507
...
...
@@ -38,8 +38,8 @@ libjami_sources = files(
'jamidht/eth/libdevcore/FixedHash.cpp'
,
'jamidht/eth/libdevcore/SHA3.cpp'
,
'jamidht/eth/libdevcrypto/Common.cpp'
,
'jamidht/accountarchive.cpp'
,
'jamidht/account_manager.cpp'
,
'jamidht/accountarchive.cpp'
,
'jamidht/archive_account_manager.cpp'
,
'jamidht/channeled_transport.cpp'
,
'jamidht/contact_list.cpp'
,
...
...
@@ -92,6 +92,18 @@ libjami_sources = files(
'media/socket_pair.cpp'
,
'media/srtp.c'
,
'media/system_codec_container.cpp'
,
'sip/pres_sub_client.cpp'
,
'sip/pres_sub_server.cpp'
,
'sip/sdes_negotiator.cpp'
,
'sip/sdp.cpp'
,
'sip/sipaccount.cpp'
,
'sip/sipaccount_config.cpp'
,
'sip/sipaccountbase.cpp'
,
'sip/sipaccountbase_config.cpp'
,
'sip/sipcall.cpp'
,
'sip/sippresence.cpp'
,
'sip/siptransport.cpp'
,
'sip/sipvoiplink.cpp'
,
'account.cpp'
,
'account_config.cpp'
,
'account_factory.cpp'
,
...
...
@@ -109,18 +121,6 @@ libjami_sources = files(
'manager.cpp'
,
'preferences.cpp'
,
'ring_api.cpp'
,
'sip/pres_sub_client.cpp'
,
'sip/pres_sub_server.cpp'
,
'sip/sdes_negotiator.cpp'
,
'sip/sdp.cpp'
,
'sip/sipaccountbase.cpp'
,
'sip/sipaccount.cpp'
,
'sip/sipaccountbase_config.cpp'
,
'sip/sipaccount_config.cpp'
,
'sip/sipcall.cpp'
,
'sip/sippresence.cpp'
,
'sip/siptransport.cpp'
,
'sip/sipvoiplink.cpp'
,
'scheduled_executor.cpp'
,
'string_utils.cpp'
,
'threadloop.cpp'
,
...
...
This diff is collapsed.
Click to expand it.
test/meson.build
+
55
−
62
View file @
c6f92507
...
...
@@ -4,7 +4,7 @@
ut_includedirs
=
[
'unitTest'
,
'../src'
,
libjami_includedirs
]
ut_dependencies
=
[
depjami
,
depcppunit
,
libjami_dependencies
]
ut_workdir
=
meson
.
project_source_root
()
/
'test'
/
'unitTest'
ut_library
=
static_library
(
'
ut_library
'
,
ut_library
=
static_library
(
'
common
'
,
sources
:
files
(
'unitTest/common.cpp'
),
include_directories
:
ut_includedirs
,
dependencies
:
ut_dependencies
...
...
@@ -21,16 +21,6 @@ test('account_archive', ut_account_archive,
workdir
:
ut_workdir
,
is_parallel
:
false
,
timeout
:
1800
)
ut_migration
=
executable
(
'ut_migration'
,
sources
:
files
(
'unitTest/account_archive/migration.cpp'
),
include_directories
:
ut_includedirs
,
dependencies
:
ut_dependencies
,
link_with
:
ut_library
)
test
(
'migration'
,
ut_migration
,
workdir
:
ut_workdir
,
is_parallel
:
false
,
timeout
:
1800
)
ut_account_factory
=
executable
(
'ut_account_factory'
,
sources
:
files
(
'unitTest/account_factory/testAccount_factory.cpp'
),
...
...
@@ -98,17 +88,6 @@ test('certificate_store', ut_certificate_store,
)
ut_compatibility
=
executable
(
'ut_compatibility'
,
sources
:
files
(
'unitTest/conversation/compability.cpp'
),
include_directories
:
ut_includedirs
,
dependencies
:
ut_dependencies
,
link_with
:
ut_library
)
test
(
'compatibility'
,
ut_compatibility
,
workdir
:
ut_workdir
,
is_parallel
:
false
,
timeout
:
1800
)
ut_conference
=
executable
(
'ut_conference'
,
sources
:
files
(
'unitTest/call/conference.cpp'
),
include_directories
:
ut_includedirs
,
...
...
@@ -120,36 +99,39 @@ test('conference', ut_conference,
)
ut_
record
er
=
executable
(
'ut_
record
er'
,
sources
:
files
(
'unitTest/c
all/record
er.cpp'
),
ut_
connection_manag
er
=
executable
(
'ut_
connection_manag
er'
,
sources
:
files
(
'unitTest/c
onnectionManager/connectionManag
er.cpp'
),
include_directories
:
ut_includedirs
,
dependencies
:
ut_dependencies
,
link_with
:
ut_library
)
test
(
'con
ference'
,
ut_record
er
,
test
(
'con
nection_manager'
,
ut_connection_manag
er
,
workdir
:
ut_workdir
,
is_parallel
:
false
,
timeout
:
1800
)
ut_connection_manager
=
executable
(
'ut_connection_manager'
,
sources
:
files
(
'unitTest/connectionManager/connectionManager.cpp'
),
ut_conversation
=
executable
(
'ut_conversation'
,
sources
:
files
(
'unitTest/conversation/conversationcommon.cpp'
,
'unitTest/conversation/conversation.cpp'
),
include_directories
:
ut_includedirs
,
dependencies
:
ut_dependencies
,
link_with
:
ut_library
)
test
(
'con
nection_manager'
,
ut_connection_manager
,
test
(
'con
versation'
,
ut_conversation
,
workdir
:
ut_workdir
,
is_parallel
:
false
,
timeout
:
1800
)
ut_conversation
=
executable
(
'ut_conversation'
,
ut_conversation
_call
=
executable
(
'ut_conversation
_call
'
,
sources
:
files
(
'unitTest/conversation/conversationcommon.cpp'
,
'unitTest/conversation/c
onversation
.cpp'
),
'unitTest/conversation/c
all
.cpp'
),
include_directories
:
ut_includedirs
,
dependencies
:
ut_dependencies
,
link_with
:
ut_library
)
test
(
'conversation'
,
ut_conversation
,
test
(
'conversation
_call
'
,
ut_conversation
_call
,
workdir
:
ut_workdir
,
is_parallel
:
false
,
timeout
:
1800
)
...
...
@@ -310,6 +292,17 @@ test('media_frame', ut_media_frame,
)
ut_media_player
=
executable
(
'ut_media_player'
,
sources
:
files
(
'unitTest/media/test_media_player.cpp'
),
include_directories
:
ut_includedirs
,
dependencies
:
ut_dependencies
,
link_with
:
ut_library
)
test
(
'media_player'
,
ut_media_player
,
workdir
:
ut_workdir
,
is_parallel
:
false
,
timeout
:
1800
)
ut_media_negotiation
=
executable
(
'ut_media_negotiation'
,
sources
:
files
(
'unitTest/media_negotiation/media_negotiation.cpp'
),
include_directories
:
ut_includedirs
,
...
...
@@ -321,6 +314,28 @@ test('media_negotiation', ut_media_negotiation,
)
ut_migration
=
executable
(
'ut_migration'
,
sources
:
files
(
'unitTest/account_archive/migration.cpp'
),
include_directories
:
ut_includedirs
,
dependencies
:
ut_dependencies
,
link_with
:
ut_library
)
test
(
'migration'
,
ut_migration
,
workdir
:
ut_workdir
,
is_parallel
:
false
,
timeout
:
1800
)
ut_recorder
=
executable
(
'ut_recorder'
,
sources
:
files
(
'unitTest/call/recorder.cpp'
),
include_directories
:
ut_includedirs
,
dependencies
:
ut_dependencies
,
link_with
:
ut_library
)
test
(
'recorder'
,
ut_recorder
,
workdir
:
ut_workdir
,
is_parallel
:
false
,
timeout
:
1800
)
ut_resampler
=
executable
(
'ut_resampler'
,
sources
:
files
(
'unitTest/media/audio/test_resampler.cpp'
),
include_directories
:
ut_includedirs
,
...
...
@@ -365,17 +380,6 @@ test('sip_basic_calls', ut_sip_basic_calls,
)
#ut_sip_empty_offer = executable('ut_sip_empty_offer',
# sources: files('unitTest/sip_account/sip_empty_offer.cpp'),
# include_directories: ut_includedirs,
# dependencies: ut_dependencies,
# link_with: ut_library
#)
#test('sip_empty_offer', ut_sip_empty_offer,
# workdir: ut_workdir, is_parallel: false, timeout: 1800
#)
ut_sip_srtp
=
executable
(
'ut_sip_srtp'
,
sources
:
files
(
'unitTest/sip_account/sip_srtp.cpp'
),
include_directories
:
ut_includedirs
,
...
...
@@ -387,17 +391,6 @@ test('sip_srtp', ut_sip_srtp,
)
ut_smart_tools
=
executable
(
'ut_smart_tools'
,
sources
:
files
(
'unitTest/smartools/testSmartools.cpp'
),
include_directories
:
ut_includedirs
,
dependencies
:
ut_dependencies
,
link_with
:
ut_library
)
test
(
'smart_tools'
,
ut_smart_tools
,
workdir
:
ut_workdir
,
is_parallel
:
false
,
timeout
:
1800
)
ut_string_utils
=
executable
(
'ut_string_utils'
,
sources
:
files
(
'unitTest/string_utils/testString_utils.cpp'
),
include_directories
:
ut_includedirs
,
...
...
@@ -432,35 +425,35 @@ test('utf8_utils', ut_utf8_utils,
if
conf
.
get
(
'ENABLE_VIDEO'
)
ut_
video_input
=
executable
(
'ut_
video_input
'
,
sources
:
files
(
'unitTest/
media/video/testVideo_input
.cpp'
),
ut_
plugins
=
executable
(
'ut_
plugins
'
,
sources
:
files
(
'unitTest/
plugins/plugins
.cpp'
),
include_directories
:
ut_includedirs
,
dependencies
:
ut_dependencies
,
link_with
:
ut_library
)
test
(
'
video_input'
,
ut_video_input
,
test
(
'
plugins'
,
ut_plugins
,
workdir
:
ut_workdir
,
is_parallel
:
false
,
timeout
:
1800
)
ut_video_
scaler
=
executable
(
'ut_video_
scaler
'
,
sources
:
files
(
'unitTest/media/video/test
_v
ideo_
scaler
.cpp'
),
ut_video_
input
=
executable
(
'ut_video_
input
'
,
sources
:
files
(
'unitTest/media/video/test
V
ideo_
input
.cpp'
),
include_directories
:
ut_includedirs
,
dependencies
:
ut_dependencies
,
link_with
:
ut_library
)
test
(
'video_
scaler
'
,
ut_video_
scaler
,
test
(
'video_
input
'
,
ut_video_
input
,
workdir
:
ut_workdir
,
is_parallel
:
false
,
timeout
:
1800
)
ut_
plugins
=
executable
(
'ut_
plugins
'
,
sources
:
files
(
'unitTest/
plugins/plugins
.cpp'
),
ut_
video_scaler
=
executable
(
'ut_
video_scaler
'
,
sources
:
files
(
'unitTest/
media/video/test_video_scaler
.cpp'
),
include_directories
:
ut_includedirs
,
dependencies
:
ut_dependencies
,
link_with
:
ut_library
)
test
(
'
plugins'
,
ut_plugins
,
test
(
'
video_scaler'
,
ut_video_scaler
,
workdir
:
ut_workdir
,
is_parallel
:
false
,
timeout
:
1800
)
endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment