This commit is contained in:
Frédéric Bour 2018-09-29 07:49:39 -05:00
parent 0f55d2d752
commit 2b89e11b93
5 changed files with 49 additions and 0 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
_build
.merlin

22
cpp/dune Normal file
View File

@ -0,0 +1,22 @@
(rule
(deps cuite__variant.ml cuite__models.ml)
(targets cuite.ml cuite_stubs.gen.h cuite_const.gen.cpp
cuite_const.gen.h cuite_stubs.gen.cpp)
(action
(run %{exe:../gen/driver.exe})))
(rule
(deps
cuite_gc.h
cuite_csupport.h cuite_csupport.c
cuite_support.h cuite_support.cpp
cuite_models.cpp cuite_select.cpp
cuite_variant.h cuite_variant.cpp
cuite_wrappers.h cuite_wrappers.cpp
cuite_const.h
cuite_const.gen.h cuite_const.gen.cpp
cuite_stubs.h cuite_stubs.cpp
cuite_stubs.gen.h cuite_stubs.gen.cpp
Makefile.libcuite)
(targets libcuite.so)
(action (run %{make} -j4 -f Makefile.libcuite %{targets})))

1
dune-project Normal file
View File

@ -0,0 +1 @@
(lang dune 1.3)

21
gen/dune Normal file
View File

@ -0,0 +1,21 @@
(executable
(name gen_value)
(modes byte)
(modules gen_value)
(flags -w -9-33)
(link_flags -linkall)
(libraries spec))
(executable
(name driver)
(modes byte)
(modules flag_values gen_classes gen_enum driver)
(flags -w -9-33)
(link_flags -linkall)
(libraries spec))
(rule
(targets flag_values.ml)
(action
(with-stdout-to %{targets}
(run %{exe:gen_value.exe}))))

4
spec/dune Normal file
View File

@ -0,0 +1,4 @@
(library
(flags -w -27)
(wrapped false)
(name spec))