Commit c5850e2f authored by POTTIER Francois's avatar POTTIER Francois

Modify Makefile and META to also build and install VisitorsRuntime.

parent 1962dd1f
......@@ -6,8 +6,7 @@ requires = "compiler-libs ppx_tools ppx_deriving"
# See https://github.com/whitequark/ppx_deriving
package "ppx" (
description = "[@@deriving visitors]"
version = "(development)"
description = "Compile-time support for generating visitors"
requires(-ppx_driver) = "ppx_deriving"
ppxopt(-ppx_driver) = "ppx_deriving,./ppx_deriving_visitors.cma"
......@@ -21,3 +20,11 @@ package "ppx" (
archive(ppx_driver, native) = "ppx_deriving_visitors.cmxa"
)
# The runtime support library.
package "runtime" (
description = "Runtime support for the generated visitors"
archive(byte) = "VisitorsRuntime.cma"
archive(native) = "VisitorsRuntime.cmxa"
)
......@@ -8,8 +8,13 @@ PACKAGE := \
PLUGIN := \
ppx_deriving_$(PACKAGE)
RUNTIME := \
VisitorsRuntime
# Not sure whether all of the following files are really required.
OCAMLBUILD_TARGET := \
$(PLUGIN).cma $(PLUGIN).cmxa $(PLUGIN).cmxs
$(patsubst %,$(PLUGIN).%,a cma cmxa cmxs) \
$(patsubst %,$(RUNTIME).%,a cma cmi cmo cmx cmxa o) \
OCAMLBUILD_FLAGS := \
-use-ocamlfind \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment