This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,7 @@
|
|||
(executable
|
||||
(name test)
|
||||
(libraries impl))
|
||||
|
||||
(alias
|
||||
(name default)
|
||||
(action (run ./test.exe)))
|
||||
|
|
@ -0,0 +1 @@
|
|||
(lang dune 1.7)
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
(library
|
||||
(name impl)
|
||||
(implements bar))
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
let foo () =
|
||||
print_endline "foo"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
(executable
|
||||
(name mypp))
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
let () =
|
||||
let file = Sys.argv.(1) in
|
||||
let ic = open_in file in
|
||||
let len = in_channel_length ic in
|
||||
let contents = really_input_string ic len in
|
||||
print_string contents
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
Virtual libraries and preprocessed source
|
||||
$ dune build
|
||||
foo
|
||||
|
|
@ -0,0 +1 @@
|
|||
Bar.Foo.foo ();
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
(library
|
||||
(name bar)
|
||||
(virtual_modules foo)
|
||||
(preprocess (action (run %{project_root}/pp/mypp.exe %{input-file}))))
|
||||
|
|
@ -0,0 +1 @@
|
|||
val foo : unit -> unit
|
||||
Loading…
Add table
Add a link
Reference in a new issue