Permalink
Browse files

Build

  • Loading branch information...
1 parent 5104fe2 commit 52fdd72573c7dfb05b65fdff14029271226610e4 @piotras piotras committed Aug 8, 2011
Showing with 151 additions and 0 deletions.
  1. 0 AUTHORS
  2. 0 ChangeLog
  3. +7 −0 Makefile.am
  4. 0 NEWS
  5. 0 README
  6. +13 −0 autogen.sh
  7. +57 −0 configure.in
  8. +11 −0 gicr.pc.in
  9. +63 −0 src/Makefile.am
View
No changes.
View
No changes.
View
@@ -0,0 +1,7 @@
+
+SUBDIRS = src
+
+doc:
+ doxygen
+
+.PHONY: doc
View
0 NEWS
No changes.
View
0 README
No changes.
View
@@ -0,0 +1,13 @@
+#! /bin/sh
+
+src_dir=`pwd`
+configure_options="$@"
+
+autoreconf -i --force
+automake
+
+$src_dir/configure $configure_options
+
+echo
+echo "Run \`make\` to compile"
+echo
View
@@ -0,0 +1,57 @@
+AC_PREREQ(2.59)
+AC_INIT([gicr],[1.0])
+AC_CONFIG_MACRO_DIR([m4])
+AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_SRCDIR(src/Repository.vala)
+
+AC_SUBST(GICR_ABI_MAJOR, 1)
+AC_SUBST(GICR_ABI_MINOR, 0)
+
+AM_INIT_AUTOMAKE([-Wno-portability])
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
+
+AM_MAINTAINER_MODE
+GOBJECT_INTROSPECTION_CHECK([0.6.5])
+
+AC_PROG_CC
+AM_PROG_LIBTOOL
+AM_PROG_VALAC([0.7.0])
+AC_PROG_INSTALL
+
+PKG_CHECK_MODULES(GICR, glib-2.0 gobject-2.0)
+
+LIBS="$INTLLIBS $LIBS"
+
+PATH="${PATH}:${prefix}/bin"
+
+dnl Checks for header files.
+AC_HEADER_STDC
+
+dnl Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+
+AC_MSG_CHECKING([if building for some Win32 platform])
+case "$host" in
+ *-*-mingw*|*-*-cygwin*)
+ platform_win32=yes
+ ;;
+ *)
+ platform_win32=no
+ ;;
+esac
+AC_MSG_RESULT($platform_win32)
+AM_CONDITIONAL(PLATFORM_WIN32, test x$platform_win32 = xyes)
+
+LIBS="$LIBS $GICR_LIBS"
+
+AC_SUBST(LIBS)
+AC_SUBST(VERSION)
+AC_SUBST(VERSION_STRING)
+AC_SUBST(LFLAGS)
+AC_SUBST(GICR_LIBS)
+AC_SUBST(GICR_CFLAGS)
+
+AC_CONFIG_FILES([Makefile
+ src/Makefile
+ gicr.pc])
+AC_OUTPUT
View
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: GICR
+Description: GObject Introspection Content Repository
+Requires: glib-2.0 gobject-2.0
+Version: @VERSION@
+Libs: -L${libdir} -lgicr
+Cflags: -I${includedir}/gicr @GICR_CFLAGS@
View
@@ -0,0 +1,63 @@
+NULL =
+
+ACLOCAL_AMFLAGS = -I m4
+
+DISTCHECK_CONFIGURE_FLAGS = --enable-introspection
+
+lib_LTLIBRARIES = libgicr.la
+
+AM_CFLAGS = \
+ -I$(top_srcdir)/src \
+ @GICR_CFLAGS@ \
+ $(GLIB_CFLAGS)
+
+AM_LDFLAGS = @GICR_LIBS@
+
+pkgdatadir = $(datadir)/gicr
+pkglibdir = $(libdir)/gicr
+libgicrincludedir = $(includedir)/gicr
+libgicrinclude_HEADERS = src/gicr.h
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = gicr.pc
+
+vapidir = $(datadir)/vala/vapi
+vapi_DATA = \
+ src/vala/GICR-1.0.vapi \
+ $(NULL)
+
+gicr_header = $(top_srcdir)/src/gicr.h
+gicr_vapi_file = MidgardCR-3.0.vapi
+gicr_gir_file = MidgardCR-3.0.gir
+
+libgicr_la_SOURCES = \
+ Repository.vala \
+ Session.vala \
+ Item.vala \
+ Node.vala \
+ $(NULL)
+
+libgicr_la_LDFLAGS = -module -export-dynamic @GICR_ABI_MAJOR@:0:0
+libgicr_la_LIBADD = @GICR_LIBS@
+
+src_libgicr_la_CPPFLAGS = \
+ -I$(top_srcdir)/src \
+ -DG_LOG_DOMAIN=\"GICR\"
+
+EXTRA_DIST = \
+ $(gicr_vapi_file) \
+ gicr.pc.in \
+ m4/introspection.m4 \
+ $(NULL)
+
+VALAFLAGS = --vapi=$(gicr_vapi_file) --vapidir=$(top_srcdir)/src -H $(gicr_header) --gir=$(gicr_gir_file) --library gicr
+
+CLEANFILES = \
+ $(gicr_vapi_file) \
+ $(gicr_header) \
+ libgivala_la_vala.stamp \
+ $(libgivala_la_SOURCES:.vala=.c) \
+ $(gicr_vapi_file) \
+ $(gicr_gir_file) \
+ $(NULL)
+

0 comments on commit 52fdd72

Please sign in to comment.