summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@redhat.com>2002-11-07 22:09:59 +0000
committerJonathan Blandford <jrb@src.gnome.org>2002-11-07 22:09:59 +0000
commit765cb51df34c4e800f70de33c8ff14d9baa7eba8 (patch)
treeb25e4f6b365ddedd7216a17448bcd36b3bfb57f9 /src
parentb56824f6500566bed0498adad33b2b1133beb685 (diff)
downloadmetacity-765cb51df34c4e800f70de33c8ff14d9baa7eba8.tar.gz
add a pc file for libmetacity-private
Thu Nov 7 17:07:21 2002 Jonathan Blandford <jrb@redhat.com> * src/libmetacity-private.pc.in: add a pc file for libmetacity-private * src/Makefile.am: Install a few files as a shared library so that others can draw metacity themes.
Diffstat (limited to 'src')
-rw-r--r--src/.cvsignore1
-rw-r--r--src/Makefile.am30
-rw-r--r--src/libmetacity-private.pc.in12
3 files changed, 39 insertions, 4 deletions
diff --git a/src/.cvsignore b/src/.cvsignore
index 882ef49c..4478a102 100644
--- a/src/.cvsignore
+++ b/src/.cvsignore
@@ -9,3 +9,4 @@ testgradient
inlinepixbufs.h
metacity.desktop
metacity.schemas
+libmetacity-private.pc
diff --git a/src/Makefile.am b/src/Makefile.am
index c39d6c67..6e005f25 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,3 +1,4 @@
+lib_LTLIBRARIES = libmetacity-private.la
SUBDIRS=wm-tester tools themes
@@ -80,7 +81,7 @@ metacity_SOURCES= \
xprops.h \
$(EGGFILES)
-metacity_theme_viewer_SOURCES= \
+libmetacity_private_la_SOURCES= \
gradient.c \
gradient.h \
preview-widget.c \
@@ -89,10 +90,21 @@ metacity_theme_viewer_SOURCES= \
theme.h \
theme-parser.c \
theme-parser.h \
- theme-viewer.c \
util.c \
util.h
+libmetacityincludedir = $(includedir)/metacity-1/metacity-private
+
+libmetacityinclude_HEADERS = \
+ gradient.h \
+ preview-widget.h \
+ theme.h \
+ theme-parser.h \
+ util.h
+
+metacity_theme_viewer_SOURCES= \
+ theme-viewer.c
+
metacity_dialog_SOURCES= \
metacity-dialog.c
@@ -100,7 +112,7 @@ bin_PROGRAMS=metacity metacity-theme-viewer
libexec_PROGRAMS=metacity-dialog
metacity_LDADD= @METACITY_LIBS@
-metacity_theme_viewer_LDADD= @METACITY_LIBS@
+metacity_theme_viewer_LDADD= @METACITY_LIBS@ libmetacity-private.la
metacity_dialog_LDADD=@METACITY_LIBS@
testgradient_SOURCES=gradient.h gradient.c testgradient.c
@@ -137,7 +149,17 @@ CLEANFILES = inlinepixbufs.h
inlinepixbufs.h: $(IMAGES)
$(GDK_PIXBUF_CSOURCE) --raw --build-list $(VARIABLES) >$(srcdir)/inlinepixbufs.h
-EXTRA_DIST=$(desktopfiles_DATA) $(IMAGES) $(schema_DATA) update-from-egg.sh $(desktopfiles_in_files) $(schema_in_files)
+pkgconfigdir = $(libdir)/pkgconfig
+
+pkgconfig_DATA = libmetacity-private.pc
+
+EXTRA_DIST=$(desktopfiles_DATA) \
+ $(IMAGES) $(schema_DATA) \
+ update-from-egg.sh \
+ $(desktopfiles_in_files) \
+ $(schema_in_files) \
+ libmetacity-private.pc.in
+
EGGDIR=$(srcdir)/../../libegg/libegg
diff --git a/src/libmetacity-private.pc.in b/src/libmetacity-private.pc.in
new file mode 100644
index 00000000..3f034b62
--- /dev/null
+++ b/src/libmetacity-private.pc.in
@@ -0,0 +1,12 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+libgnome_serverdir=@libexecdir@
+
+Name: libmetacity-private
+Description: Metacity internals shared
+Requires: gtk+-2.0
+Version: @VERSION@
+Libs: -L${libdir} -lmetacity-private
+Cflags: -I${includedir}/metacity-1