mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2025-01-09 21:35:32 +00:00
build: drop libmocka dependency
It is now unused
This commit is contained in:
parent
ab0e5afb07
commit
d35d088c44
2 changed files with 15 additions and 20 deletions
1
debian/control
vendored
1
debian/control
vendored
|
@ -12,7 +12,6 @@ Build-Depends:
|
||||||
gstreamer1.0-plugins-good,
|
gstreamer1.0-plugins-good,
|
||||||
gtk-doc-tools <!nodoc>,
|
gtk-doc-tools <!nodoc>,
|
||||||
libcallaudio-dev (>= 0.0.5),
|
libcallaudio-dev (>= 0.0.5),
|
||||||
libcmocka-dev,
|
|
||||||
libebook-contacts1.2-dev,
|
libebook-contacts1.2-dev,
|
||||||
libfeedback-dev,
|
libfeedback-dev,
|
||||||
libfolks-dev,
|
libfolks-dev,
|
||||||
|
|
|
@ -87,26 +87,22 @@ test_env_ringer = [
|
||||||
'LD_PRELOAD=@0@/mock/lfb/libfeedback-0.so'.format(meson.current_build_dir()),
|
'LD_PRELOAD=@0@/mock/lfb/libfeedback-0.so'.format(meson.current_build_dir()),
|
||||||
] + test_env
|
] + test_env
|
||||||
|
|
||||||
cmocka = dependency ('cmocka', required: false)
|
test_sources = [
|
||||||
|
'mock-call.c', 'mock-call.h', 'mock-libfeedback.h',
|
||||||
|
'test-ringer.c'
|
||||||
|
]
|
||||||
|
|
||||||
if cmocka.found ()
|
t = executable('ringer', test_sources,
|
||||||
test_sources = [
|
c_args : test_cflags,
|
||||||
'mock-call.c', 'mock-call.h', 'mock-libfeedback.h',
|
link_args: mock_link_args,
|
||||||
'test-ringer.c'
|
pie: true,
|
||||||
]
|
link_with : [calls_vala, libcalls],
|
||||||
|
dependencies: calls_deps,
|
||||||
t = executable('ringer', test_sources,
|
include_directories : [
|
||||||
c_args : test_cflags,
|
calls_includes,
|
||||||
link_args: mock_link_args,
|
]
|
||||||
pie: true,
|
)
|
||||||
link_with : [calls_vala, libcalls],
|
test('ringer', t, env: test_env_ringer)
|
||||||
dependencies: [calls_deps, cmocka],
|
|
||||||
include_directories : [
|
|
||||||
calls_includes,
|
|
||||||
]
|
|
||||||
)
|
|
||||||
test('ringer', t, env: test_env_ringer)
|
|
||||||
endif
|
|
||||||
|
|
||||||
test_sources = [ 'test-contacts.c' ]
|
test_sources = [ 'test-contacts.c' ]
|
||||||
t = executable('contacts', test_sources,
|
t = executable('contacts', test_sources,
|
||||||
|
|
Loading…
Reference in a new issue