45 lines
736 B
Text
45 lines
736 B
Text
|
|
(library
|
||
|
|
(name config_test)
|
||
|
|
(modules config)
|
||
|
|
(implements config)
|
||
|
|
(libraries uri fpath))
|
||
|
|
|
||
|
|
(library
|
||
|
|
(name config_serv_test)
|
||
|
|
(modules config_serv)
|
||
|
|
(implements config_serv)
|
||
|
|
(libraries uri fpath))
|
||
|
|
|
||
|
|
(library
|
||
|
|
(name dir_test)
|
||
|
|
(modules dir)
|
||
|
|
(implements dir)
|
||
|
|
(libraries fpath directories bos))
|
||
|
|
|
||
|
|
(executable
|
||
|
|
(name make_config_test)
|
||
|
|
(modules make_config_test)
|
||
|
|
(libraries
|
||
|
|
dir_test ; implements virtual module
|
||
|
|
make_config_lib ; virtual lib
|
||
|
|
fmt
|
||
|
|
uri
|
||
|
|
fpath
|
||
|
|
bos
|
||
|
|
scfg))
|
||
|
|
|
||
|
|
(rule
|
||
|
|
(copy ../config.scfg ./config.scfg))
|
||
|
|
|
||
|
|
; todo fix "does not exists" on clean build
|
||
|
|
|
||
|
|
(rule
|
||
|
|
(with-stdout-to
|
||
|
|
config.ml
|
||
|
|
(run ./make_config_test.exe --config)))
|
||
|
|
|
||
|
|
(rule
|
||
|
|
(with-stdout-to
|
||
|
|
config_serv.ml
|
||
|
|
(run ./make_config_test.exe --config-serv)))
|