Add --internal-prefix, --subdir, --server-objs-dir options to gen
Carries over the three options previously added on the local
modernize branch (commits 7952c1b, 64c6a8a, be09df9), adapted to
the new sub-command structure introduced upstream:
- --internal-prefix PREFIX : pass -internal-prefix to ocsigen-ppx-client
to strip a wrapper prefix from .cmo type paths (for compiling wrapped
libraries like ocsigen-start).
- --subdir DIR : wrap generated rules in (subdir DIR ...) stanzas, for
use with (include_subdirs qualified).
- --server-objs-dir DIR : emit %{dep:.../<prefix>__<Name>.cmo} paths
instead of %{cmo:...}, which resolves ambiguously under
(include_subdirs qualified). The module prefix is derived from
--subdir.
These options are added to the [gen] sub-command. Callers that used
the previous flat syntax must now invoke
[ocsigen-dune-rules gen ...].
a16e8a
-
Apr 30 15:51 +00:00