Source

sulu-ocaml-core / base / sexplib / oasis.sh

Brandon Mitchell d140a6d 
ysulsky a6325ca 

ysulsky d48bac2 
ysulsky a6325ca 
ysulsky d48bac2 
ysulsky a6325ca 
ysulsky 43389a4 
ysulsky a6325ca 

ysulsky 2fc6648 
Markus Mottl 9b562f8 
ysulsky a6325ca 




ysulsky 43389a4 
Markus Mottl ea29f86 
ysulsky a6325ca 





Markus Mottl 9b562f8 
ysulsky 43389a4 
ysulsky a6325ca 








Markus Mottl ea29f86 

ysulsky a6325ca 




Markus Mottl ea29f86 

ysulsky a6325ca 
Markus Mottl fa0bea1 
ysulsky a6325ca 

Markus Mottl fa0bea1 
ysulsky a6325ca 

Markus Mottl ea29f86 






ysulsky a6325ca 





Markus Mottl fd6a144 
ysulsky a6325ca 



















ysulsky 43389a4 
ysulsky a6325ca 




ysulsky d48bac2 
Markus Mottl 56aabac 
Markus Mottl fa0bea1 
Markus Mottl ea29f86 
ysulsky a6325ca 


Markus Mottl ea29f86 








Markus Mottl cb9a6e0 
Markus Mottl ea29f86 





ysulsky d48bac2 
ysulsky db6e5bc 
ysulsky a6325ca 
#!/usr/bin/env bash
set -e -u -o pipefail

source ../../build-common.sh

cat >$HERE/_oasis <<EOF
#AUTOGENERATED FILE; EDIT oasis.sh INSTEAD
OASISFormat:  0.3
OCamlVersion: >= 3.12
Name:         sexplib
Version:      $core_version
Synopsis:     automated S-expression conversion
Authors:      Markus Mottl,
              Martin Sandin
Copyrights:   (C) 2005-2011 Jane Street Capital LLC
License:      LGPL-2.1 with OCaml linking exception
LicenseFile:  LICENSE
Plugins:      StdFiles (0.3), DevFiles (0.3), META (0.3)
BuildTools:   ocamlbuild
XStdFilesAUTHORS: false
XStdFilesINSTALLFilename: INSTALL
XStdFilesREADME: false

Library sexplib
  Path:               lib
  FindlibName:        sexplib
  Pack:               true
  Modules:            Type,
                      Parser,
                      Lexer,
                      Pre_sexp,
                      Sexp_intf,
                      Sexp,
                      Path,
                      Conv,
                      Conv_error,
                      Exn_magic,
                      Std
  BuildDepends:       unix,bigarray,num
  XMETARequires:      unix,bigarray,num

Library pa_sexp_conv
  Path:               syntax
  FindlibName:        syntax
  FindlibParent:      sexplib
  Modules:            Pa_sexp_conv
  BuildDepends:       camlp4.quotations,camlp4.extend,type_conv (>= 3.0.5)
  CompiledObject:     byte
  XMETAType:          syntax
  XMETARequires:      camlp4,type_conv,sexplib
  XMETADescription:   Syntax extension for Sexplib

Library sexplib_top
  Path:               top
  FindlibName:        top
  FindlibParent:      sexplib
  Modules:            Install_printers
  XMETARequires:      sexplib
  XMETADescription:   Toplevel printers for S-expressions

Executable sexp_test
  Path:               lib_test
  MainIs:             sexp_test.ml
  Build\$:            flag(tests)
  Install:            false
  BuildDepends:       sexplib

Executable conv_test
  Path:               lib_test
  MainIs:             conv_test.ml
  Build\$:            flag(tests)
  Install:            false
  BuildDepends:       sexplib, sexplib.syntax

Test sexp
  Run\$:              flag(tests)
  Command:           \$sexp_test < test.sexp
  WorkingDirectory:   lib_test

Test conv
  Run\$:              flag(tests)
  Command:           \$conv_test
  WorkingDirectory:   lib_test

Document "sexplib"
  Title:                API reference for sexplib
  Type:                 ocamlbuild (0.3)
  BuildTools+:          ocamldoc
  XOCamlbuildPath:      lib
  XOCamlbuildLibraries: sexplib
EOF

make_tags $HERE/_tags <<EOF
<lib/pre_sexp.ml>: pp(cpp -undef -traditional -I$HERE/syntax)
<lib_test/*.ml{,i}>: syntax_camlp4o, pkg_type_conv.syntax
<lib_test/conv_test.byte>: use_sexplib, pkg_unix, pkg_num, pkg_bigarray
<syntax/pa_sexp_conv.ml>: syntax_camlp4o
EOF

make_myocamlbuild $HERE/myocamlbuild.ml <<EOF
Ocamlbuild_plugin.dispatch
  begin
    function
      | After_rules as e ->
          flag ["ocamldep"; "ocaml"; "use_pa_sexp_conv"]
            (S [A "-ppopt"; P "syntax/pa_sexp_conv.cma"]);
          flag ["compile"; "ocaml"; "use_pa_sexp_conv"]
            (S [A "-ppopt"; P "syntax/pa_sexp_conv.cma"]);
          flag ["compile"; "ocaml"] (S [A "-w"; A "@Ae" ]);
          dispatch_default e
      | e -> dispatch_default e
  end
;;
EOF

cd $HERE
rm -f setup.ml
oasis setup