test_data = executable('data',
sources: ['data.c'],
- c_args: common_cflags,
+ c_args: common_cflags + ['-DGTK_COMPILATION'],
include_directories: [confinc, ],
dependencies: libgtk_static_dep,
)
transition = executable('transition',
sources: ['transition.c'],
- c_args: common_cflags,
+ c_args: common_cflags + ['-DGTK_COMPILATION'],
dependencies: libgtk_static_dep,
)
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,
)
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,
)
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,
)