tests: Add missing dependency on glib-2.0

It has previously been implicitly pulled in by libsysprof-capture, but
that will change in future.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Helps: #40
This commit is contained in:
Philip Withnall
2020-06-30 16:23:50 +01:00
parent 3eb0f3e964
commit d1a8dc40f5
10 changed files with 18 additions and 4 deletions

View File

@ -12,24 +12,29 @@ test_cflags = [
'-DSYSPROF_COMPILATION=1',
]
test_capture_deps = [
dependency('glib-2.0'),
libsysprof_capture_dep,
]
test_capture = executable('test-capture', 'test-capture.c',
c_args: test_cflags,
dependencies: [libsysprof_capture_dep],
dependencies: test_capture_deps,
)
test_capture_cursor = executable('test-capture-cursor', 'test-capture-cursor.c',
c_args: test_cflags,
dependencies: [libsysprof_capture_dep],
dependencies: test_capture_deps,
)
test_mapped_ring_buffer = executable('test-mapped-ring-buffer', 'test-mapped-ring-buffer.c',
c_args: test_cflags,
dependencies: [libsysprof_capture_dep],
dependencies: test_capture_deps,
)
find_temp_allocs = executable('find-temp-allocs', 'find-temp-allocs.c',
c_args: test_cflags,
dependencies: [libsysprof_capture_dep],
dependencies: test_capture_deps,
)
test('test-capture', test_capture, env: test_env)