diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2014-08-12 11:42:25 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2014-08-15 09:43:22 +0800 |
commit | 4bfe7f1da88c6bd73cc51666a13840661ab9edb1 (patch) | |
tree | 3b1f24dbb162af25cedb12d511fc1929ab74a940 /tests | |
parent | 6fc4a1f9db8a2149d8db55e578895b73af44d930 (diff) | |
download | gobject-introspection-4bfe7f1da88c6bd73cc51666a13840661ab9edb1.tar.gz |
tests: Add a Header for Symbol Exporting
This adds a header under tests/ that can be included by the various test
libraries/sources so that symbols from them can be decorated by a macro,
which can then be used to export symbols by using a compiler directive,
like the updates to girepository. This header is also installed as the
test headers refer to them.
https://bugzilla.gnome.org/show_bug.cgi?id=732669
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 6 | ||||
-rw-r--r-- | tests/gitestmacros.h | 10 |
2 files changed, 14 insertions, 2 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 26b59108..8bcf74ee 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -14,7 +14,8 @@ tests_DATA = \ everything.c \ everything.h \ gimarshallingtests.c \ - gimarshallingtests.h + gimarshallingtests.h \ + gitestmacros.h EXTRA_LTLIBRARIES = libeverything-1.0.la libgimarshallingtests-1.0.la @@ -23,7 +24,8 @@ libgimarshallingtests_1_0_la_SOURCES = gimarshallingtests.c EXTRA_DIST += \ gimarshallingtests.h \ - gi-tester + gi-tester \ + gitestmacros.h BUILT_SOURCES += everything.c everything.h diff --git a/tests/gitestmacros.h b/tests/gitestmacros.h new file mode 100644 index 00000000..527578d0 --- /dev/null +++ b/tests/gitestmacros.h @@ -0,0 +1,10 @@ +#ifndef __GITESTMACROS_H__ +#define __GITESTMACROS_H__ + +#ifndef _GI_EXTERN +#define _GI_EXTERN extern +#endif + +#define _GI_TEST_EXTERN _GI_EXTERN + +#endif |