deps_gbm = []
incs_gbm = [
include_directories('main'), inc_include, inc_src, inc_loader,
- inc_wayland_drm,
]
if with_dri2
files_gbm += files('backends/dri/gbm_dri.c', 'backends/dri/gbm_driint.h')
deps_gbm += dep_libdrm # TODO: pthread-stubs
- args_gbm += '-DDEFAULT_DRIVER_DIR="@0@"'.format(dri_search_path)
endif
if with_platform_wayland
deps_gbm += dep_wayland_server
libraries_private : '-ldl', # FIXME: autotools lists this a incomplete
)
-if with_tests
+if with_tests and prog_nm.found()
test(
'gbm-symbols-check',
- find_program('gbm-symbols-check'),
- env : env_test,
- args : libgbm
+ symbols_check,
+ args : [
+ '--lib', libgbm,
+ '--symbols-file', files('gbm-symbols.txt'),
+ '--nm', prog_nm.path(),
+ ],
+ suite : ['gbm'],
)
endif