[gobject-introspection] tests: Add a Header for Symbol Exporting
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] tests: Add a Header for Symbol Exporting
- Date: Fri, 15 Aug 2014 02:03:56 +0000 (UTC)
commit 4bfe7f1da88c6bd73cc51666a13840661ab9edb1
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Tue Aug 12 11:42:25 2014 +0800
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
tests/Makefile.am | 6 ++++--
tests/gitestmacros.h | 10 ++++++++++
2 files changed, 14 insertions(+), 2 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 26b5910..8bcf74e 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 0000000..527578d
--- /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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]