[cogl/wip/cogl-sharp: 46/51] cogl-sharp: Compile cogl-sharp with the defines collected from configure



commit 7053a8068676331b15a8402e5ff81293c77197d7
Author: Damien Lespiau <damien lespiau intel com>
Date:   Sat Dec 29 02:45:44 2012 +0000

    cogl-sharp: Compile cogl-sharp with the defines collected from configure
    
    The cogl-sharp assembly can now use defines to compile in/out part of
    it.

 .gitignore                    |    1 +
 cogl-sharp/cogl2-sharp.rsp    |    2 --
 cogl-sharp/cogl2-sharp.rsp.in |    3 +++
 configure.ac                  |    8 ++++++++
 4 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 2b6a3b1..3fb6821 100644
--- a/.gitignore
+++ b/.gitignore
@@ -33,6 +33,7 @@ stamp-marshal
 /cogl-pango/cogl-pango.rc
 /cogl-sharp/AssemblyInfo.cs
 /cogl-sharp/TestResult.xml
+/cogl-sharp/cogl2-sharp.rsp
 /cogl-sharp/tests/Config.cs
 /cogl/cogl.rc
 /cogl/cogl-defines.h
diff --git a/cogl-sharp/cogl2-sharp.rsp.in b/cogl-sharp/cogl2-sharp.rsp.in
new file mode 100644
index 0000000..ecf4ff4
--- /dev/null
+++ b/cogl-sharp/cogl2-sharp.rsp.in
@@ -0,0 +1,3 @@
+/target:library
+/out:cogl2-sharp.dll
+ COGL_SHARP_DEFINES@
diff --git a/configure.ac b/configure.ac
index 85502ba..c6e5057 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1219,6 +1219,13 @@ AS_IF([test "$enable_cogl_sharp" = "yes" -a "$have_nunit" = "yes"],
       [enable_nunit=yes], [enable_nunit=no])
 AM_CONDITIONAL(BUILD_NUNIT_TESTS, [test "$enable_nunit" = "yes"])
 
+for x in $COGL_DEFINES_SYMBOLS; do
+  COGL_SHARP_DEFINES="$COGL_SHARP_DEFINES
+/define:$x"
+done;
+AC_SUBST(COGL_SHARP_DEFINES)
+AM_SUBST_NOTMAKE(COGL_SHARP_DEFINES)
+
 dnl ================================================================
 dnl What needs to be substituted in other files
 dnl ================================================================
@@ -1287,6 +1294,7 @@ cogl-gles2/cogl-gles2-experimental.pc
 cogl-sharp/Makefile
 cogl-sharp/AssemblyInfo.cs
 cogl-sharp/cogl2-sharp.pc
+cogl-sharp/cogl2-sharp.rsp
 doc/Makefile
 doc/reference/Makefile
 doc/reference/cogl2/Makefile



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]