build: Internal tests must set GTK_COMPILATION

Otherwise they won't be able to use the appropriate function visibility
on Windows.
This commit is contained in:
Emmanuele Bassi 2023-05-09 19:01:21 +01:00
parent 9d68bebdd1
commit cdeeb3275a
4 changed files with 5 additions and 5 deletions

View File

@ -28,7 +28,7 @@ test('api', test_api,
test_data = executable('data',
sources: ['data.c'],
c_args: common_cflags,
c_args: common_cflags + ['-DGTK_COMPILATION'],
include_directories: [confinc, ],
dependencies: libgtk_static_dep,
)
@ -42,7 +42,7 @@ test('data', test_data,
transition = executable('transition',
sources: ['transition.c'],
c_args: common_cflags,
c_args: common_cflags + ['-DGTK_COMPILATION'],
dependencies: libgtk_static_dep,
)

View File

@ -57,7 +57,7 @@ internal_tests = [
foreach t : internal_tests
test_exe = executable(t, '@0@.c'.format(t),
c_args: common_cflags,
c_args: common_cflags + ['-DGTK_COMPILATION'],
dependencies: libgtk_static_dep,
install: false,
)

View File

@ -397,7 +397,7 @@ foreach t : internal_tests
test_exe = executable(test_name,
sources: test_srcs,
dependencies : libgtk_static_dep,
c_args : test_cargs + test_extra_cargs + common_cflags,
c_args : test_cargs + test_extra_cargs + common_cflags + ['-DGTK_COMPILATION'],
link_args : test_extra_ldflags,
)

View File

@ -191,7 +191,7 @@ foreach t : internal_tests
test_exe = executable(test_name,
sources: test_srcs,
c_args: test_cargs + test_extra_cargs,
c_args: test_cargs + test_extra_cargs + ['-DGTK_COMPILATION'],
link_args: test_extra_ldflags,
dependencies: libgtk_static_dep,
)