[couchdb-glib] Add auto-generated Mono bindings
- From: Rodrigo Moya <rodrigo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [couchdb-glib] Add auto-generated Mono bindings
- Date: Tue, 4 May 2010 15:59:58 +0000 (UTC)
commit c6167a07354723a009c00ca995464a2f2aaec2ba
Author: Rodrigo Moya <rodrigo gnome-db org>
Date: Tue May 4 17:59:01 2010 +0200
Add auto-generated Mono bindings
bindings/mono/AssemblyInfo.cs | 10 ++++++
bindings/mono/Makefile.am | 36 ++++++++++++++++++++++++
bindings/mono/couchdb-glib-api.metadata | 5 +++
bindings/mono/couchdb-glib-sharp.dll.config.in | 4 ++
bindings/mono/couchdb-glib.sources | 9 ++++++
5 files changed, 64 insertions(+), 0 deletions(-)
---
diff --git a/bindings/mono/AssemblyInfo.cs b/bindings/mono/AssemblyInfo.cs
new file mode 100644
index 0000000..8f54965
--- /dev/null
+++ b/bindings/mono/AssemblyInfo.cs
@@ -0,0 +1,10 @@
+using System;
+using System.Reflection;
+using System.Runtime.InteropServices;
+using System.Runtime.CompilerServices;
+using System.Security;
+
+
+[assembly: AssemblyCopyright("Copyright 2010, Rodrigo Moya")]
+[assembly: AssemblyDescription("couchdb-glib binding for Mono and .NET")]
+[assembly: AssemblyVersion("1.0.0.0")]
diff --git a/bindings/mono/Makefile.am b/bindings/mono/Makefile.am
new file mode 100644
index 0000000..872935a
--- /dev/null
+++ b/bindings/mono/Makefile.am
@@ -0,0 +1,36 @@
+generated_CS_objects = \
+ CouchdbArrayField.cs \
+ CouchdbCredentials.cs \
+ CouchdbCredentialsType.cs \
+ CouchdbDatabaseInfo.cs \
+ CouchdbDocument.cs \
+ CouchdbDocumentInfo.cs \
+ CouchdbSession.cs \
+ CouchdbStructField.cs \
+ DatabaseCreatedHandler.cs \
+ DatabaseDeletedHandler.cs \
+ DocumentCreatedHandler.cs \
+ DocumentDeletedHandler.cs \
+ DocumentUpdatedHandler.cs \
+ ObjectManager.cs
+
+CLEANFILES = \
+ $(generated_CS_objects) \
+ couchdb-glib-sharp.dll \
+ couchdb-glib-api.xml \
+ couchdb-glib-sharp.dll.config
+
+EXTRA_DIST = couchdb-glib.sources couchdb-glib-api.metadata AssemblyInfo.cs
+
+couchdbglibsharpdir = $(libdir)/couchdb-glib-sharp-1.0
+couchdbglibsharp_DATA = couchdb-glib-sharp.dll couchdb-glib-sharp.dll.config
+
+couchdb-glib-sharp.dll: $(generated_CS_objects)
+ $(MONO_CSC) -unsafe -target:library -pkg:glib-sharp-2.0 -out:couchdb-glib-sharp.dll *.cs
+
+$(generated_CS_objects): $(srcdir)/couchdb-glib-api.xml
+ $(MONO_GAPI_CODEGEN) --outdir=. $(GTKSHARP_CFLAGS) --generate $<
+
+couchdb-glib-api.xml: couchdb-glib.sources
+ $(MONO_GAPI_PARSER) $<
+ $(MONO_GAPI_FIXUP) --api=couchdb-glib-api.xml --metadata=couchdb-glib-api.metadata
\ No newline at end of file
diff --git a/bindings/mono/couchdb-glib-api.metadata b/bindings/mono/couchdb-glib-api.metadata
new file mode 100644
index 0000000..c995e3d
--- /dev/null
+++ b/bindings/mono/couchdb-glib-api.metadata
@@ -0,0 +1,5 @@
+<?xml version="1.0"?>
+ <metadata>
+ <remove-node path="/api/namespace/enum[ cname='OAuthMethod']" />
+ <remove-node path="/api/namespace/struct[ cname='DBWatch']" />
+ </metadata>
diff --git a/bindings/mono/couchdb-glib-sharp.dll.config.in b/bindings/mono/couchdb-glib-sharp.dll.config.in
new file mode 100644
index 0000000..7576434
--- /dev/null
+++ b/bindings/mono/couchdb-glib-sharp.dll.config.in
@@ -0,0 +1,4 @@
+<configuration>
+ <dllmap dll="couchdb-glib-sharp.dll" target="libcouchdb-glib-1 0 so LIBCOUCHDBGLIB_CURRENT@"/>
+</configuration>
+
diff --git a/bindings/mono/couchdb-glib.sources b/bindings/mono/couchdb-glib.sources
new file mode 100644
index 0000000..14d7b57
--- /dev/null
+++ b/bindings/mono/couchdb-glib.sources
@@ -0,0 +1,9 @@
+<gapi-parser-input>
+ <api filename="couchdb-glib-api.xml">
+ <library name="couchdb-glib-sharp.dll">
+ <namespace name="CouchDB">
+ <dir>../../couchdb-glib/</dir>
+ </namespace>
+ </library>
+ </api>
+ </gapi-parser-input>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]