META 964 Bytes
Newer Older
1
description = "A visitor generation facility"
POTTIER Francois's avatar
POTTIER Francois committed
2
requires = "compiler-libs ppx_tools ppx_deriving"
3

POTTIER Francois's avatar
POTTIER Francois committed
4 5 6
# I don't really understand any of the following.
# See https://github.com/whitequark/ppx_deriving

7
package "ppx" (
8
  description = "Compile-time support for generating visitors"
9 10
  requires(-ppx_driver) = "ppx_deriving"
  ppxopt(-ppx_driver) = "ppx_deriving,./ppx_deriving_visitors.cma"
POTTIER Francois's avatar
POTTIER Francois committed
11 12 13 14 15 16

# It seems OK to let this package exist unconditionally.
#   exists_if = "ppx_deriving_visitors.cma"

# Apparently the following part could be omitted too.
# It affects ppx driver compilation, whatever that means.
17 18 19
  requires(ppx_driver) = "ppx_deriving.api"
  archive(ppx_driver, byte) = "ppx_deriving_visitors.cma"
  archive(ppx_driver, native) = "ppx_deriving_visitors.cmxa"
POTTIER Francois's avatar
POTTIER Francois committed
20

21
)
22 23 24 25 26 27 28 29

# The runtime support library.

package "runtime" (
  description = "Runtime support for the generated visitors"
  archive(byte) = "VisitorsRuntime.cma"
  archive(native) = "VisitorsRuntime.cmxa"
)