summaryrefslogtreecommitdiff
path: root/Makefile-girepository.am
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2014-07-07 18:04:14 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2014-08-15 10:00:38 +0800
commitd281b07c4aba18d30c4365ef3cba2df85ac4ab6f (patch)
tree7a1d0d578ed76b98824c5374a03e717b12691098 /Makefile-girepository.am
parenteab36c0001e22c0ee66246ae9a0b8018b2325c96 (diff)
downloadgobject-introspection-d281b07c4aba18d30c4365ef3cba2df85ac4ab6f.tar.gz
build: Export Symbols Using Compiler Directives
Use compiler directives for exporting symbols for the build of libgirepository and also for the test libraries, like what is now done in GLib and GTK+ so that maintaining a separate .symbols (and .def files) would not be needed, in which the correct compiler directive is determined during configure time. Drop all the .def files and the .symbols file as we would not be using them anymore. https://bugzilla.gnome.org/show_bug.cgi?id=732669
Diffstat (limited to 'Makefile-girepository.am')
-rw-r--r--Makefile-girepository.am15
1 files changed, 11 insertions, 4 deletions
diff --git a/Makefile-girepository.am b/Makefile-girepository.am
index 19db3e0a..8a857d67 100644
--- a/Makefile-girepository.am
+++ b/Makefile-girepository.am
@@ -44,7 +44,11 @@ libgirepository_internals_la_SOURCES = \
girepository/girwriter.c \
girepository/girwriter.h
-libgirepository_internals_la_CFLAGS = $(GIREPO_CFLAGS) -I$(top_srcdir)/girepository
+libgirepository_internals_la_CFLAGS = \
+ $(GIREPO_CFLAGS) \
+ $(GI_HIDDEN_VISIBILITY_CFLAGS) \
+ -I$(top_srcdir)/girepository
+
libgirepository_internals_la_LIBADD = libgirepository-gthash.la $(GIREPO_LIBS)
libgirepository_1_0_la_SOURCES = \
@@ -73,12 +77,15 @@ libgirepository_1_0_la_SOURCES = \
girepository/giunioninfo.c \
girepository/givfuncinfo.c
-libgirepository_1_0_la_CPPFLAGS = $(GIREPO_CFLAGS) -I$(top_srcdir)/girepository -DG_IREPOSITORY_COMPILATION
+libgirepository_1_0_la_CPPFLAGS = \
+ $(GIREPO_CFLAGS) \
+ $(GI_HIDDEN_VISIBILITY_CFLAGS) \
+ -I$(top_srcdir)/girepository \
+ -DG_IREPOSITORY_COMPILATION
libgirepository_1_0_la_LIBADD = libgirepository-gthash.la $(GIREPO_LIBS)
libgirepository_1_0_la_LDFLAGS = \
$(EXTRA_LINK_FLAGS) \
- -no-undefined -version-number 1:0:0 \
- -export-symbols $(srcdir)/girepository/girepository.symbols
+ -no-undefined -version-number 1:0:0
gdumpdir = $(datadir)/gobject-introspection-1.0/
gdump_DATA = girepository/gdump.c