Add another test case for meta generation (#449)

A library that has been pp'd with a preprocessor that has runtime deps
This commit is contained in:
Rudi Grinberg 2018-01-25 18:21:37 +08:00 committed by Jérémie Dimino
parent 062cca21e5
commit eac036a446
2 changed files with 16 additions and 0 deletions

View File

@ -35,6 +35,13 @@
(public_name foobar.rewriter2)
(ppx_runtime_libraries (foobar_runtime_lib2))))
(library
((name foobar_ppd)
(public_name foobar.ppd)
(synopsis "pp'd with a rewriter")
(libraries (foobar))
(preprocess (pps (foobar_rewriter)))))
(alias
((name runtest)
(action (echo "${read:META.foobar}"))))

View File

@ -14,6 +14,15 @@
plugin(byte) = "foobar_baz.cma"
plugin(native) = "foobar_baz.cmxs"
)
package "ppd" (
directory = "ppd"
description = "pp'd with a rewriter"
requires = "foobar"
archive(byte) = "foobar_ppd.cma"
archive(native) = "foobar_ppd.cmxa"
plugin(byte) = "foobar_ppd.cma"
plugin(native) = "foobar_ppd.cmxs"
)
package "rewriter" (
directory = "rewriter"
description = "ppx rewriter"