]> granicus.if.org Git - graphviz/commitdiff
separate tree for plugins
authorellson <devnull@localhost>
Sun, 25 Jun 2006 10:36:35 +0000 (10:36 +0000)
committerellson <devnull@localhost>
Sun, 25 Jun 2006 10:36:35 +0000 (10:36 +0000)
plugin/pango/CMakeLists.txt [new file with mode: 0644]
plugin/pango/Makefile.am [new file with mode: 0644]
plugin/pango/Makefile.old [new file with mode: 0644]

diff --git a/plugin/pango/CMakeLists.txt b/plugin/pango/CMakeLists.txt
new file mode 100644 (file)
index 0000000..1664ddc
--- /dev/null
@@ -0,0 +1,32 @@
+# $Id$ $Revision$
+## Process this file with cmake to produce Makefile
+
+INCLUDE( UsePkgConfig )
+
+PKGCONFIG( pangocairo PANGOCAIRO_INCLUDE_DIR PANGOCAIRO_LIB_DIR PANGOCAIRO_LINK_FLAGS PANGOCAIRO_CFLAGS )
+
+INCLUDE_DIRECTORIES(
+       ${CMAKE_CURRENT_SOURCE_DIR}
+       ${CMAKE_SOURCE_DIR}
+       ${CMAKE_SOURCE_DIR}/lib/common
+       ${CMAKE_SOURCE_DIR}/lib/cdt
+       ${CMAKE_SOURCE_DIR}/lib/graph
+       ${CMAKE_SOURCE_DIR}/lib/pathplan
+       ${CMAKE_SOURCE_DIR}/lib/gvc
+       ${PANGOCAIRO_INCLUDE_DIR}
+)
+
+########### next target ###############
+
+ADD_DEFINITIONS(${PANGOCAIRO_CFLAGS})
+SET(gvplugin_pango_SRCS
+    gvplugin_pango.c
+    gvrender_pango.c
+    gvtextlayout_pango.c
+    gvloadimage_pango.c
+)
+ADD_LIBRARY(gvplugin_pango MODULE ${gvplugin_pango_SRCS})
+
+ADD_LIBRARY(gvplugin_pango_static STATIC ${gvplugin_pango_SRCS})
+
+########### install files ###############
diff --git a/plugin/pango/Makefile.am b/plugin/pango/Makefile.am
new file mode 100644 (file)
index 0000000..5b58972
--- /dev/null
@@ -0,0 +1,28 @@
+# $Id$ $Revision$
+## Process this file with automake to produce Makefile.in
+
+AM_CPPFLAGS = \
+       -I$(top_srcdir) \
+       -I$(top_srcdir)/lib/common \
+       -I$(top_srcdir)/lib/pathplan \
+       -I$(top_srcdir)/lib/gvc \
+       -I$(top_srcdir)/lib/graph \
+       -I$(top_srcdir)/lib/cdt \
+       $(PANGOCAIRO_CFLAGS) $(LIBGVC_CFLAGS)
+
+noinst_LTLIBRARIES = libgvplugin_pango_C.la
+
+pkglib_LTLIBRARIES = libgvplugin_pango.la
+
+libgvplugin_pango_C_la_SOURCES = \
+       gvplugin_pango.c \
+       gvrender_pango.c \
+       gvtextlayout_pango.c \
+       gvloadimage_pango.c
+
+libgvplugin_pango_la_LDFLAGS = -version-info @VERSION_INFO@ -no-undefined
+libgvplugin_pango_la_SOURCES = $(libgvplugin_pango_C_la_SOURCES)
+libgvplugin_pango_la_LIBADD = @PANGOCAIRO_LIBS@ @MATH_LIBS@
+
+EXTRA_DIST = Makefile.old
+
diff --git a/plugin/pango/Makefile.old b/plugin/pango/Makefile.old
new file mode 100644 (file)
index 0000000..c990f56
--- /dev/null
@@ -0,0 +1,33 @@
+all:   libgvplugin_pango.a
+ROOT=../..
+include $(ROOT)/Config.mk
+include $(ROOT)/makearch/$(ARCH)
+
+INCS =  -I. \
+       -I$(ROOT) \
+        -I../common \
+        -I../gvc \
+        -I../pathplan \
+        -I../graph \
+        -I../cdt \
+        -I../gd \
+        $(EXTLIB_INC)
+
+DEFINES = -DHAVE_CONFIG_H
+
+OBJS = gvloadimage_pango.o gvplugin_pango.o gvrender_pango.o gvtextlayout_pango.o
+
+libgvplugin_pango.a : $(OBJS)
+       $(RM) libgvplugin_pango.a
+       $(AR) cr libgvplugin_pango.a $(OBJS)
+       $(RANLIB) libgvplugin_pango.a
+
+install: libgvplugin_pango.a
+       $(MKPATH) $(LIBDIR)
+       $(INSTALL) libgvplugin_pango.a $(LIBDIR)
+
+clean:
+       $(RM) core *.o
+
+distclean: clean
+       $(RM) *.a ptest