make: Add generated api to gapidir
authorStephan Sundermann <ssundermann@gnome.org>
Wed, 19 Mar 2014 14:46:38 +0000 (15:46 +0100)
committerStephan Sundermann <ssundermann@gnome.org>
Wed, 19 Mar 2014 14:50:06 +0000 (15:50 +0100)
configure.ac
gstreamer-sharp-1.0.pc.in
sources/Makefile.am

index 546b116c2ea67a34ba23e3b372b0e95daf7f0d48..5a40b0c18e4f3c92fd7ba57b4ea7b38b8b0eb494 100644 (file)
@@ -77,7 +77,9 @@ PKG_CHECK_MODULES(GLIB_SHARP, glib-sharp-3.0 >= 2.99.3)
 AC_SUBST(GLIB_SHARP_CFLAGS)
 AC_SUBST(GLIB_SHARP_LIBS)
 gtksharp_prefix=`pkg-config --variable=prefix gtk-sharp-3.0`
+gapidir=`pkg-config --variable=gapidir gtk-sharp-3.0`
 AC_SUBST(gtksharp_prefix)
+AC_SUBST(gapidir)
 
 dnl Find GAPI
 PKG_CHECK_MODULES(GAPI, gapi-3.0 >= 2.99.3)
index c2dd57594354b5c62c955635199c7e883a246879..86acafac72d23ece0c474a39e90f5f17abf4a9dd 100644 (file)
@@ -1,9 +1,11 @@
 prefix=@prefix@
 exec_prefix=${prefix}
 libdir=@libdir@
+gapidir=@gapidir@
 
 Name: @ASSEMBLY_TITLE@
 Description: @ASSEMBLY_DESCRIPTION@
 Version: @VERSION@
 Requires: 
+Cflags: -I:${gapidir}/gstreamer-sharp.xml
 Libs: -r:${libdir}/mono/@ASSEMBLY_NAME@/@ASSEMBLY_NAME@.dll
index 8b2ef71c82a8b7a38aaca3ac59ad6300846c1028..55c77b6cf2364fbc9cd91d270c8f4be3d2d834d6 100644 (file)
@@ -20,7 +20,8 @@ EXTRA_DIST = \
        $(sources) \
        $(METADATA) \
        AssemblyInfo.cs.in \
-       $(ASSEMBLY_NAME).snk
+       $(ASSEMBLY_NAME).snk \
+       gstreamer-sharp.xml
 
 all: generated-stamp $(ASSEMBLY)
 
@@ -43,10 +44,12 @@ $(DLL): $(build_sources) generated-stamp
 
 install-data-local:
        echo "$(GACUTIL) /i $(DLL) /f $(GACUTIL_FLAGS)";  \
-        $(GACUTIL) /i $(DLL) /f $(GACUTIL_FLAGS) || exit 1;
+        $(GACUTIL) /i $(DLL) /f $(GACUTIL_FLAGS) || exit 1; \
+       cp $(API) $(gapidir);
 
 uninstall-local:
        echo "$(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS)"; \
         $(GACUTIL) /u $(ASSEMBLY_NAME) $(GACUTIL_FLAGS) || exit 1;
+       rm -f $(gapidir)/$(API)
 clean-local:
        -rm -r generated/*