mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 21:51:08 +00:00
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:
parent
9d68bebdd1
commit
cdeeb3275a
@ -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,
|
||||
)
|
||||
|
||||
|
@ -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,
|
||||
)
|
||||
|
@ -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,
|
||||
)
|
||||
|
||||
|
@ -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,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user