-name="bitmatch"
-version="@PACKAGE_VERSION@"
-description="Bitstrings and bitstring matching"
-archive(byte)="bitmatch.cma"
-archive(native)="bitmatch.cmxa"
+name = "bitstring"
+version = "@PACKAGE_VERSION@"
+description = "Bitstrings and bitstring matching"
+requires = "unix"
+archive(byte) = "bitstring.cma"
+archive(native) = "bitstring.cmxa"
+
+package "persistent" (
+ requires = "bitstring"
+ version = "@PACKAGE_VERSION@"
+ description = "Persistent patterns for bitstring (requires camlp4)"
+ archive(byte) = "bitstring_persistent.cma"
+ archive(native) = "bitstring_persistent.cmxa"
+)
package "syntax" (
- requires = "camlp4.quotations.o"
version = "@PACKAGE_VERSION@"
- description = "Syntax extension: bitmatch operators"
- archive(syntax,preprocessor) = "pa_bitmatch.cmo"
- archive(syntax,toploop) = "pa_bitmatch.cmo"
+ description = "Syntax extension: bitstring operators"
+ archive(syntax,preprocessor) = "unix.cma bitstring.cma bitstring_persistent.cma pa_bitstring.cmo"
+ archive(syntax,toploop) = "unix.cma bitstring.cma bitstring_persistent.cma pa_bitstring.cmo"
+ preprocessor = "camlp4of"
)