Commits

Markus Mottl committed 204425f

Improved bin_prot build files

Comments (0)

Files changed (1)

base/bin_prot/oasis.sh

 OASISFormat:  0.2
 OCamlVersion: >= 3.12
 Name:         bin_prot
-Version:      2.0.7
-Synopsis:     binary protocol generator
+Version:      2.0.9
+Synopsis:     Binary protocol generator
 Authors:      Markus Mottl,
               Jane Street Holding LLC
 Copyrights:   (C) 2008-2011 Jane Street Holding LLC
 XStdFilesINSTALLFilename: INSTALL
 XStdFilesREADME: false
 
-
 PreBuildCommand: mkdir -p _build; cp lib/*.mlh lib/*.h _build/
 
 Library bin_prot
   MainIs:             example.ml
   Build\$:            flag(tests)
   Install:            false
+  CompiledObject:     best
   BuildDepends:       bin_prot,bin_prot.syntax
 
 Document "bin_prot"
 
 make_myocamlbuild $HERE/myocamlbuild.ml <<EOF
 (* We probably will want to set this up in the \`configure\` script at some
-   point.*)
+   point. *)
 let is_darwin =
   Ocamlbuild_pack.My_unix.run_and_open "uname -s" input_line = "Darwin"
 
           dep ["ocaml"; "ocamldep"; "mlh"] ["lib/int_codes.mlh"];
 
           flag ["ocamldep"; "ocaml"; "use_pa_bin_prot"]
-            (S [A "-ppopt"; P"syntax/pa_bin_prot.cma"]);
+            (S [A "-ppopt"; P "syntax/pa_bin_prot.cma"]);
 
           flag ["compile"; "ocaml"; "use_pa_bin_prot"]
             (S [A "-ppopt"; P "syntax/pa_bin_prot.cma"]);
             List.concat (List.map f flags)
           in
           flag ["compile"; "c"] (S cflags);
+
           dispatch_default e
       | e -> dispatch_default e
   end