summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/a11y/meson.build3
-rw-r--r--testsuite/css/meson.build4
-rw-r--r--testsuite/gdk/meson.build2
-rw-r--r--testsuite/gsk/meson.build2
-rw-r--r--testsuite/gtk/meson.build5
-rw-r--r--testsuite/reftests/meson.build3
6 files changed, 8 insertions, 11 deletions
diff --git a/testsuite/a11y/meson.build b/testsuite/a11y/meson.build
index c43465efb2..733f623217 100644
--- a/testsuite/a11y/meson.build
+++ b/testsuite/a11y/meson.build
@@ -38,8 +38,7 @@ test_cargs = []
foreach flag: common_cflags
if flag not in ['-Werror=missing-prototypes', '-Wmissing-prototypes',
- '-Werror=missing-declarations', '-Wmissing-declarations',
- '-fvisibility=hidden']
+ '-Werror=missing-declarations', '-Wmissing-declarations']
test_cargs += flag
endif
endforeach
diff --git a/testsuite/css/meson.build b/testsuite/css/meson.build
index 24084d6b05..cf4f2f785d 100644
--- a/testsuite/css/meson.build
+++ b/testsuite/css/meson.build
@@ -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,
)
diff --git a/testsuite/gdk/meson.build b/testsuite/gdk/meson.build
index 05f0351393..13ed1ff31c 100644
--- a/testsuite/gdk/meson.build
+++ b/testsuite/gdk/meson.build
@@ -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,
)
diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build
index a7bacb0020..7ef11174ae 100644
--- a/testsuite/gsk/meson.build
+++ b/testsuite/gsk/meson.build
@@ -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,
)
diff --git a/testsuite/gtk/meson.build b/testsuite/gtk/meson.build
index a3f2be7172..7f28f213ec 100644
--- a/testsuite/gtk/meson.build
+++ b/testsuite/gtk/meson.build
@@ -149,8 +149,7 @@ endif
foreach flag: common_cflags
if flag not in ['-Werror=missing-prototypes', '-Wmissing-prototypes',
- '-Werror=missing-declarations', '-Wmissing-declarations',
- '-fvisibility=hidden']
+ '-Werror=missing-declarations', '-Wmissing-declarations']
test_cargs += flag
endif
endforeach
@@ -193,7 +192,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,
)
diff --git a/testsuite/reftests/meson.build b/testsuite/reftests/meson.build
index 1cc8a4302c..793ba19eb7 100644
--- a/testsuite/reftests/meson.build
+++ b/testsuite/reftests/meson.build
@@ -3,8 +3,7 @@
reftest_cflags = []
foreach flag: common_cflags
if flag not in ['-Werror=missing-prototypes', '-Wmissing-prototypes',
- '-Werror=missing-declarations', '-Wmissing-declarations',
- '-fvisibility=hidden']
+ '-Werror=missing-declarations', '-Wmissing-declarations']
reftest_cflags += flag
endif
endforeach