Skip to content

Commit

Permalink
Change findlib library names to rpclib (to not conflic with the alrea…
Browse files Browse the repository at this point in the history
…dy existing ocamlnet's rpc library).

This should fix mirage#13
  • Loading branch information
samoht committed Nov 16, 2012
1 parent 0b6821e commit d468f80
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions lib/META
@@ -1,6 +1,6 @@
version = "1.1.0" version = "1.2.0"
description = "RPC: lightweight library to convert plain ML types to and from RPC values" description = "RPC: lightweight library to convert plain ML types to and from RPC values"
requires = "rpc.xml, rpc.json" requires = "rpclib.xml, rpclib.json"


package "syntax" ( package "syntax" (
description = "rpc: library to marshalling/unmarshalling ML types to/from RPC intermediate language" description = "rpc: library to marshalling/unmarshalling ML types to/from RPC intermediate language"
Expand All @@ -24,27 +24,27 @@ package "core" (


package "xml" ( package "xml" (
description = "XML-RPC marshalling/unmarshalling" description = "XML-RPC marshalling/unmarshalling"
requires = "rpc.core,xmlm" requires = "rpclib.core,xmlm"
archive(byte) = "xmlrpc.cmo" archive(byte) = "xmlrpc.cmo"
archive(native) = "xmlrpc.cmx" archive(native) = "xmlrpc.cmx"
) )


package "json" ( package "json" (
description = "JSON-RPC marshalling/unmarshalling" description = "JSON-RPC marshalling/unmarshalling"
requires = "rpc.core" requires = "rpclib.core"
archive(byte) = "jsonrpc.cmo" archive(byte) = "jsonrpc.cmo"
archive(native) = "jsonrpc.cmx" archive(native) = "jsonrpc.cmx"
) )


package "unix" ( package "unix" (
description = "Unix socket connection handling" description = "Unix socket connection handling"
requires = "rpc.core" requires = "rpclib.core"
archive(byte) = "rpc_client.cmo" archive(byte) = "rpc_client.cmo"
archive(native) = "rpc_client.cmx" archive(native) = "rpc_client.cmx"
) )


package "js" ( package "js" (
description = "Javascript/browser connection handling" description = "Javascript/browser connection handling"
requires = "rpc.core" requires = "rpclib.core"
archive(byte) = "rpc_client_js.cmo" archive(byte) = "rpc_client_js.cmo"
) )
6 changes: 3 additions & 3 deletions lib/Makefile
Expand Up @@ -53,15 +53,15 @@ rpc_client_js.cmo: rpc_client_js.ml
.PHONY: install .PHONY: install
install: INSTALL_PATH = $(DESTDIR)$(shell ocamlfind printconf destdir) install: INSTALL_PATH = $(DESTDIR)$(shell ocamlfind printconf destdir)
install: all install: all
ocamlfind install -destdir $(INSTALL_PATH) rpc META $(TARGETS) ocamlfind install -destdir $(INSTALL_PATH) rpclib META $(TARGETS)


.PHONY: uninstall .PHONY: uninstall
uninstall: uninstall:
ocamlfind remove rpc ocamlfind remove rpclib


.PHONY: doc .PHONY: doc
doc: $(INTF) doc: $(INTF)
python ../doc/doc.py $(DOCDIR) "rpc" "package" "jsonrpc pa_rpc rpc xmlrpc" "." "xmlm" "" python ../doc/doc.py $(DOCDIR) "rpclib" "package" "jsonrpc pa_rpc rpc xmlrpc" "." "xmlm" ""


clean: clean:
rm -f *.cmo *.cmx *.cma *.cmxa *.annot *.o *.cmi *.a rm -f *.cmo *.cmx *.cma *.cmxa *.annot *.o *.cmi *.a
10 changes: 5 additions & 5 deletions tests/Makefile
Expand Up @@ -2,7 +2,7 @@ OCAMLC = ocamlfind ocamlc
OCAMLOPT = ocamlfind ocamlopt OCAMLOPT = ocamlfind ocamlopt
OCAMLFLAGS = -annot -g OCAMLFLAGS = -annot -g


PACKS = rpc,unix PACKS = rpclib,unix
EXAMPLES = \ EXAMPLES = \
all_types \ all_types \
phantom \ phantom \
Expand All @@ -23,19 +23,19 @@ client.opt: idl_test.cmx idl_test.cmi client.cmx
$(OCAMLOPT) -linkpkg -package $(PACKS) -o $@ idl_test.cmx client.cmx $(OCAMLOPT) -linkpkg -package $(PACKS) -o $@ idl_test.cmx client.cmx


idl_test.cmx: idl_test.ml idl_test.cmi idl_test.cmx: idl_test.ml idl_test.cmi
$(OCAMLOPT) -package $(PACKS),rpc.idl -syntax camlp4o -c -o $@ $< $(OCAMLOPT) -package $(PACKS),rpclib.idl -syntax camlp4o -c -o $@ $<


%.opt: %.cmx %.opt: %.cmx
$(OCAMLOPT) -linkpkg -package $(PACKS) -o $@ $< $(OCAMLOPT) -linkpkg -package $(PACKS) -o $@ $<


%.cmx: %.ml %.cmx: %.ml
$(OCAMLOPT) $(OCAMLFLAGS) -package $(PACKS),rpc.syntax -syntax camlp4o -c -o $@ $< $(OCAMLOPT) $(OCAMLFLAGS) -package $(PACKS),rpclib.syntax -syntax camlp4o -c -o $@ $<


%.cmi: %.mli %.cmi: %.mli
$(OCAMLOPT) $(OCAMLFLAGS) -package $(PACKS),rpc.syntax -syntax camlp4o -c -o $@ $< $(OCAMLOPT) $(OCAMLFLAGS) -package $(PACKS),rpclib.syntax -syntax camlp4o -c -o $@ $<


%_gen: %.ml %_gen: %.ml
camlp4o $(shell ocamlfind query rpc.syntax -r -format "-I %d %a" -predicates syntax,preprocessor) $< -printer o > $@.ml camlp4o $(shell ocamlfind query rpclib.syntax -r -format "-I %d %a" -predicates syntax,preprocessor) $< -printer o > $@.ml
$(OCAMLOPT) $(OCAMLFLAGS) -package $(PACKS) -c -o $@ $@.ml $(OCAMLOPT) $(OCAMLFLAGS) -package $(PACKS) -c -o $@ $@.ml


clean: clean:
Expand Down

0 comments on commit d468f80

Please sign in to comment.