Skip to content

Commit

Permalink
make oasis
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrek committed Jul 13, 2017
1 parent 3d85e63 commit 9f8d677
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 3 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,9 @@ release:
gpg -a -b $(NAME).tar.gz

.PHONY: oasis
# partially dynamic setup
# needed to have clean builds because of modifications to _tags
oasis:
oasis setup -setup-update dynamic
oasis setup
git checkout setup.ml
rm -f **/*.clib **/*.mllib **/*.mldylib **/*.mlpack **/*.odocl **/META myocamlbuild.ml
43 changes: 43 additions & 0 deletions _tags
Original file line number Diff line number Diff line change
@@ -1,4 +1,47 @@
# OASIS_START
# DO NOT EDIT (digest: 8ab06ee0b3001b2b21a3e3de45fd123d)
# Ignore VCS directories, you can use the same kind of rule outside
# OASIS_START/STOP if you want to exclude directories that contains
# useless stuff for the build process
true: annot, bin_annot
<**/.svn>: -traverse
<**/.svn>: not_hygienic
".bzr": -traverse
".bzr": not_hygienic
".hg": -traverse
".hg": not_hygienic
".git": -traverse
".git": not_hygienic
"_darcs": -traverse
"_darcs": not_hygienic
# Library sqlgg
"lib/sqlgg.cmxs": use_sqlgg
"lib/props.cmx": for-pack(Sqlgg)
"lib/sql.cmx": for-pack(Sqlgg)
"lib/stmt.cmx": for-pack(Sqlgg)
"lib/tables.cmx": for-pack(Sqlgg)
"lib/syntax.cmx": for-pack(Sqlgg)
"lib/prelude.cmx": for-pack(Sqlgg)
<lib/*.ml{,i,y}>: package(deriving)
<lib/*.ml{,i,y}>: package(extlib)
# Executable sqlgg
<src/cli.{native,byte}>: package(deriving)
<src/cli.{native,byte}>: package(extlib)
<src/cli.{native,byte}>: package(oUnit)
<src/cli.{native,byte}>: use_sqlgg
<src/*.ml{,i,y}>: package(deriving)
<src/*.ml{,i,y}>: package(extlib)
<src/*.ml{,i,y}>: package(oUnit)
<src/*.ml{,i,y}>: use_sqlgg
# Library sqlgg_traits
"impl/sqlgg_traits.cmxs": use_sqlgg_traits
# Library sqlgg_mysql
"impl/sqlgg_mysql.cmxs": use_sqlgg_mysql
<impl/*.ml{,i,y}>: package(mysql)
# Library sqlgg_sqlite3
"impl/sqlgg_sqlite3.cmxs": use_sqlgg_sqlite3
<impl/*.ml{,i,y}>: package(sqlite3)
<impl/*.ml{,i,y}>: use_sqlgg_traits
# OASIS_STOP
true: annot, warn(+A-e-40-41-42-44-45)
true: use_menhir
Expand Down
6 changes: 4 additions & 2 deletions setup.ml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
(* setup.ml generated for the first time by OASIS v0.4.4 *)

(* OASIS_START *)
(* DO NOT EDIT (digest: 9852805d5c19ca1cb6abefde2dcea323) *)
(* DO NOT EDIT (digest: a426e2d026defb34183b787d31fbdcff) *)
(******************************************************************************)
(* OASIS: architecture for building OCaml libraries and applications *)
(* *)
(* Copyright (C) 2011-2013, Sylvain Le Gall *)
(* Copyright (C) 2011-2016, Sylvain Le Gall *)
(* Copyright (C) 2008-2011, OCamlCore SARL *)
(* *)
(* This library is free software; you can redistribute it and/or modify it *)
Expand Down Expand Up @@ -33,5 +33,7 @@ let () =
#require "oasis.dynrun";;
open OASISDynRun;;

let setup_t = BaseCompat.Compat_0_4.adapt_setup_t setup_t
open BaseCompat.Compat_0_4
(* OASIS_STOP *)
let () = setup ();;

0 comments on commit 9f8d677

Please sign in to comment.