WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] [PATCH 4 of 6] Add a xapi-datamodel-devel package for other co

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] [PATCH 4 of 6] Add a xapi-datamodel-devel package for other code-generators
From: David Scott <dave.scott@xxxxxxxxxxxxx>
Date: Fri, 28 May 2010 15:26:12 +0100
Delivery-date: Fri, 28 May 2010 07:25:00 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1275056768@xxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User David Scott <dave.scott@xxxxxxxxxxxxx>
# Date 1275056756 -3600
# Node ID c94d5736091cce2e12899ff85583646535d9d33a
# Parent  d3dc9cc63e43f027b7eebcba8ba6b8d6e9747da6
Add a xapi-datamodel-devel package for other code-generators

Signed-off-by: DAvid Scott <dave.scott@xxxxxxxxxxxxx>

diff -r d3dc9cc63e43 -r c94d5736091c ocaml/idl/META.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/ocaml/idl/META.in Fri May 28 15:25:56 2010 +0100
@@ -0,0 +1,4 @@
+version = "@VERSION@"
+description = "Xapi datamodel library for code generators"
+requires = "xml-light2,stdext,stunnel,http-svr,log"
+archive(native) = "datamodel.cmxa"
diff -r d3dc9cc63e43 -r c94d5736091c ocaml/idl/OMakefile
--- a/ocaml/idl/OMakefile       Fri May 28 15:25:56 2010 +0100
+++ b/ocaml/idl/OMakefile       Fri May 28 15:25:56 2010 +0100
@@ -136,3 +136,22 @@
        mkdir -p $(SDKWWW)/docs/html
        sh -c '/bin/cp -ar $(SDK)/docs $(SDKWWW)'
        cp sdkwww-index.html $(SDKWWW)/index.html
+
+
+META: META.in
+       sed 's/@VERSION@/$(PRODUCT_VERSION)/g' < $< > $@
+
+if $(defined DESTDIR)
+       INSTALL_PATH = $(DESTDIR)/$(shell ocamlfind printconf destdir)
+       export
+else
+       INSTALL_PATH = $(shell ocamlfind printconf destdir)
+       export
+
+lib-install: META
+       mkdir -p $(INSTALL_PATH)
+       ocamlfind install -destdir $(INSTALL_PATH) -ldconf ignore 
xapi-datamodel META datamodel.{a,cmxa,cmi} datamodel_types.cmi 
datamodel_utils.cmi dm_api.cmi api_messages.cmi 
+
+.PHONY: lib-uninstall
+lib-uninstall:
+       ocamlfind remove xapi-datamodel
\ No newline at end of file
diff -r d3dc9cc63e43 -r c94d5736091c ocaml/idl/ocaml_backend/OMakefile
--- a/ocaml/idl/ocaml_backend/OMakefile Fri May 28 15:25:56 2010 +0100
+++ b/ocaml/idl/ocaml_backend/OMakefile Fri May 28 15:25:56 2010 +0100
@@ -140,10 +140,13 @@
        INSTALL_PATH = $(shell ocamlfind printconf destdir)
        export
 
+DATAMODEL_PACK_DIR=/tmp/xapi-datamodel
+
 lib-install: META
        mkdir -p $(INSTALL_PATH)
        ocamlfind install -destdir $(INSTALL_PATH) -ldconf ignore xapi-client 
META xapi_client.{cmxa,a} $(addsuffixes .cmi .cmx, $(XAPI_CLIENT_OBJS))
 
+
 .PHONY: lib-uninstall
 lib-uninstall:
        ocamlfind remove xapi-client

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api