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

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



# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.