build: Let gala provide a public library for 3rd party plugin development

This commit is contained in:
Rico Tzschichholz 2015-03-04 10:51:43 +01:00
parent d588328a03
commit 638849eb2b
9 changed files with 45 additions and 10 deletions

View File

@ -2,7 +2,7 @@
m4_define([gala_released], [0])
m4_define([gala_major_version], [0])
m4_define([gala_minor_version], [1])
m4_define([gala_minor_version], [2])
m4_define([gala_micro_version], [0])
m4_define([gala_nano_version], [0])
@ -251,6 +251,7 @@ AC_CONFIG_FILES([
Makefile
src/Makefile
lib/Makefile
lib/gala.pc
docs/Makefile
data/Makefile
data/org.pantheon.desktop.gala.gschema.xml.in

View File

@ -6,9 +6,20 @@ BUILT_SOURCES = \
libgala_la_vala.stamp \
$(NULL)
libgala_la_LTLIBRARIES = libgala.la
libgalaincludedir = $(includedir)/gala
nodist_libgalainclude_HEADERS = gala.h
libgala_ladir = $(pkglibdir)
vapidir = $(datadir)/vala/vapi
nodist_vapi_DATA = \
gala.vapi \
gala.deps \
$(NULL)
pkgconfigdir = $(libdir)/pkgconfig
nodist_pkgconfig_DATA = gala.pc
lib_LTLIBRARIES = libgala.la
libgala_la_CFLAGS = \
$(GALA_CORE_CFLAGS) \
@ -17,8 +28,12 @@ libgala_la_CFLAGS = \
$(NULL)
libgala_la_LDFLAGS = \
-avoid-version \
$(AM_LDLAGS) \
$(GALA_CORE_LDFLAGS) \
-no-undefined \
-version-info "$(LT_CURRENT)":"$(LT_REVISION)":"$(LT_AGE)" \
-export-dynamic \
-export-symbols-regex '^gala_.*' \
$(NULL)
libgala_la_VALAFLAGS = \
@ -44,7 +59,9 @@ nodist_libgala_la_SOURCES = \
$(libgala_la_VALASOURCES:.vala=.c) \
$(NULL)
libgala_la_vala.stamp: $(libgala_la_VALASOURCES)
gala.h gala.vapi: libgala_la_vala.stamp
libgala_la_vala.stamp: $(libgala_la_VALASOURCES) Makefile
$(AM_V_VALA)$(VALAC) \
$(libgala_la_VALAFLAGS) \
--basedir $(srcdir) \

5
lib/gala.deps Normal file
View File

@ -0,0 +1,5 @@
clutter-gtk-1.0
gdk-pixbuf-2.0
glib-2.0
gobject-2.0
libmutter

12
lib/gala.pc.in Normal file
View File

@ -0,0 +1,12 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
pkgdatadir=@datadir@/gala
Name: Gala
Description: Library to develop plugins for Gala
Version: @PACKAGE_VERSION@
Requires: clutter-gtk-1.0 gdk-pixbuf-2.0 glib-2.0 gobject-2.0 libmutter
Libs: -L${libdir} -lgala
Cflags: -I${includedir}/gala

View File

@ -42,7 +42,7 @@ nodist_libgala_maskcorners_la_SOURCES = \
$(libgala_maskcorners_la_VALASOURCES:.vala=.c) \
$(NULL)
libgala_maskcorners_la_vala.stamp: $(libgala_maskcorners_la_VALASOURCES)
libgala_maskcorners_la_vala.stamp: $(libgala_maskcorners_la_VALASOURCES) $(top_builddir)/lib/gala.vapi Makefile
$(AM_V_VALA)$(VALAC) \
$(libgala_maskcorners_la_VALAFLAGS) \
-C \

View File

@ -54,7 +54,7 @@ nodist_libgala_notify_la_SOURCES = \
$(libgala_notify_la_VALASOURCES:.vala=.c) \
$(NULL)
libgala_notify_la_vala.stamp: $(libgala_notify_la_VALASOURCES)
libgala_notify_la_vala.stamp: $(libgala_notify_la_VALASOURCES) $(top_builddir)/lib/gala.vapi Makefile
$(AM_V_VALA)$(VALAC) \
$(libgala_notify_la_VALAFLAGS) \
-C \

View File

@ -41,7 +41,7 @@ nodist_libgala_template_la_SOURCES = \
$(libgala_template_la_VALASOURCES:.vala=.c) \
$(NULL)
libgala_template_la_vala.stamp: $(libgala_template_la_VALASOURCES)
libgala_template_la_vala.stamp: $(libgala_template_la_VALASOURCES) $(top_builddir)/lib/gala.vapi Makefile
$(AM_V_VALA)$(VALAC) \
$(libgala_template_la_VALAFLAGS) \
-C \

View File

@ -41,7 +41,7 @@ nodist_libgala_zoom_la_SOURCES = \
$(libgala_zoom_la_VALASOURCES:.vala=.c) \
$(NULL)
libgala_zoom_la_vala.stamp: $(libgala_zoom_la_VALASOURCES)
libgala_zoom_la_vala.stamp: $(libgala_zoom_la_VALASOURCES) $(top_builddir)/lib/gala.vapi Makefile
$(AM_V_VALA)$(VALAC) \
$(libgala_zoom_la_VALAFLAGS) \
-C \

View File

@ -87,7 +87,7 @@ nodist_gala_SOURCES = \
$(gala_VALASOURCES:.vala=.c) \
$(NULL)
gala_vala.stamp: $(gala_VALASOURCES)
gala_vala.stamp: $(gala_VALASOURCES) $(top_builddir)/lib/gala.vapi Makefile
$(AM_V_VALA)$(VALAC) \
$(gala_VALAFLAGS) \
--basedir $(srcdir) \