diff options
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/frameworks/7 gnome/gir/dep1/dep1.h | 4 | ||||
-rw-r--r-- | test cases/frameworks/7 gnome/gir/dep1/dep2/dep2.h | 4 | ||||
-rw-r--r-- | test cases/frameworks/7 gnome/gir/dep1/dep3/dep3.h | 4 | ||||
-rw-r--r-- | test cases/frameworks/7 gnome/gir/meson-sample.h | 8 | ||||
-rw-r--r-- | test cases/frameworks/7 gnome/gir/meson-sample2.h | 4 | ||||
-rw-r--r-- | test cases/frameworks/7 gnome/gir/meson.build | 3 | ||||
-rw-r--r-- | test cases/frameworks/7 gnome/meson.build | 2 |
7 files changed, 18 insertions, 11 deletions
diff --git a/test cases/frameworks/7 gnome/gir/dep1/dep1.h b/test cases/frameworks/7 gnome/gir/dep1/dep1.h index 92fc44c..5e6591b 100644 --- a/test cases/frameworks/7 gnome/gir/dep1/dep1.h +++ b/test cases/frameworks/7 gnome/gir/dep1/dep1.h @@ -1,8 +1,8 @@ #ifndef MESON_DEP1_H #define MESON_DEP1_H -#if !defined (MESON_TEST) -#error "MESON_TEST not defined." +#if !defined (MESON_TEST_1) +#error "MESON_TEST_1 not defined." #endif #include <glib-object.h> diff --git a/test cases/frameworks/7 gnome/gir/dep1/dep2/dep2.h b/test cases/frameworks/7 gnome/gir/dep1/dep2/dep2.h index 0afea90..128b243 100644 --- a/test cases/frameworks/7 gnome/gir/dep1/dep2/dep2.h +++ b/test cases/frameworks/7 gnome/gir/dep1/dep2/dep2.h @@ -1,8 +1,8 @@ #ifndef MESON_DEP2_H #define MESON_DEP2_H -#if !defined (MESON_TEST) -#error "MESON_TEST not defined." +#if !defined (MESON_TEST_1) +#error "MESON_TEST_1 not defined." #endif #include <glib-object.h> diff --git a/test cases/frameworks/7 gnome/gir/dep1/dep3/dep3.h b/test cases/frameworks/7 gnome/gir/dep1/dep3/dep3.h index 9883d76..4392bad 100644 --- a/test cases/frameworks/7 gnome/gir/dep1/dep3/dep3.h +++ b/test cases/frameworks/7 gnome/gir/dep1/dep3/dep3.h @@ -1,8 +1,8 @@ #ifndef MESON_DEP3_H #define MESON_DEP3_H -#if !defined (MESON_TEST) -#error "MESON_TEST not defined." +#if !defined (MESON_TEST_1) +#error "MESON_TEST_1 not defined." #endif #include <glib-object.h> diff --git a/test cases/frameworks/7 gnome/gir/meson-sample.h b/test cases/frameworks/7 gnome/gir/meson-sample.h index 04e79b8..7468130 100644 --- a/test cases/frameworks/7 gnome/gir/meson-sample.h +++ b/test cases/frameworks/7 gnome/gir/meson-sample.h @@ -1,8 +1,12 @@ #ifndef MESON_SAMPLE_H #define MESON_SAMPLE_H -#if !defined (MESON_TEST) -#error "MESON_TEST not defined." +#if !defined (MESON_TEST_1) +#error "MESON_TEST_1 not defined." +#endif + +#if !defined (MESON_TEST_2) +#error "MESON_TEST_2 not defined." #endif #include <glib-object.h> diff --git a/test cases/frameworks/7 gnome/gir/meson-sample2.h b/test cases/frameworks/7 gnome/gir/meson-sample2.h index d39084e..f3bcd39 100644 --- a/test cases/frameworks/7 gnome/gir/meson-sample2.h +++ b/test cases/frameworks/7 gnome/gir/meson-sample2.h @@ -1,8 +1,8 @@ #ifndef MESON_SAMPLE2_H #define MESON_SAMPLE2_H -#if !defined (MESON_TEST) -#error "MESON_TEST not defined." +#if !defined (MESON_TEST_1) +#error "MESON_TEST_1 not defined." #endif #include <glib-object.h> diff --git a/test cases/frameworks/7 gnome/gir/meson.build b/test cases/frameworks/7 gnome/gir/meson.build index f53eca6..d2ceaee 100644 --- a/test cases/frameworks/7 gnome/gir/meson.build +++ b/test cases/frameworks/7 gnome/gir/meson.build @@ -14,6 +14,7 @@ gen_source = custom_target( girlib = shared_library( 'gir_lib', sources : libsources, + c_args: '-DMESON_TEST_2', dependencies : [gobj, dep1_dep], install : true ) @@ -28,6 +29,7 @@ girlib2 = shared_library( girexe = executable( 'girprog', sources : 'prog.c', + c_args: '-DMESON_TEST_2', dependencies : [glib, gobj, gir, dep1_dep], link_with : girlib ) @@ -37,6 +39,7 @@ fake_dep = dependency('no-way-this-exists', required: false) gnome.generate_gir( girlib, girlib2, sources : [libsources, lib2sources, gen_source], + env : {'CPPFLAGS': '-DMESON_TEST_2'}, nsversion : '1.0', namespace : 'Meson', symbol_prefix : 'meson', diff --git a/test cases/frameworks/7 gnome/meson.build b/test cases/frameworks/7 gnome/meson.build index 5f438cb..4638d4d 100644 --- a/test cases/frameworks/7 gnome/meson.build +++ b/test cases/frameworks/7 gnome/meson.build @@ -23,7 +23,7 @@ endif cc = meson.get_compiler('c') -add_global_arguments('-DMESON_TEST', language : 'c') +add_global_arguments('-DMESON_TEST_1', language : 'c') if cc.get_id() == 'intel' # Ignore invalid GCC pragma warnings from glib # https://bugzilla.gnome.org/show_bug.cgi?id=776562 |