Fix debug build by adding compat.c to tests

Linking of tests that needed something from compat.c failed.

PR #3865 <https://github.com/Genymobile/scrcpy/pull/3865>

Signed-off-by: Romain Vimont <rom@rom1v.com>
This commit is contained in:
Yan 2023-03-27 14:59:09 +02:00 committed by Romain Vimont
parent 2fff9b9edf
commit 0ebb3df69c

View file

@ -310,7 +310,8 @@ if get_option('buildtype') == 'debug'
] ]
foreach t : tests foreach t : tests
exe = executable(t[0], t[1], sources = t[1] + ['src/compat.c']
exe = executable(t[0], sources,
include_directories: src_dir, include_directories: src_dir,
dependencies: dependencies, dependencies: dependencies,
c_args: ['-DSDL_MAIN_HANDLED', '-DSC_TEST']) c_args: ['-DSDL_MAIN_HANDLED', '-DSC_TEST'])