This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,3 @@
(rule
(alias default)
(action (run ./exe/test.exe)))

View file

@ -0,0 +1,3 @@
(executable
(name test)
(libraries foolib))

View file

@ -0,0 +1,3 @@
let () =
Foolib.Foo.Bar.run ();
Foolib.Foo.A.B.run ()

View file

@ -0,0 +1,5 @@
(include_subdirs qualified)
(library
(name foolib)
(modules :standard \ excluded))

View file

@ -0,0 +1 @@
let run () = print_endline "hello from nested module B"

View file

@ -0,0 +1 @@
let run () = print_endline "hello from nested module bar"

View file

@ -0,0 +1,29 @@
Demonstrate building a `include_subdirs qualified` project with `(modules
:standard \ exclusion)`
$ dune build
hello from nested module bar
hello from nested module B
$ find _build -iname "*.ml-gen" | sort | while read file; do echo "contents of $file"; cat $file; echo "--------"; done;
contents of _build/default/lib/foolib.ml-gen
(* generated by dune *)
(** @canonical Foolib.Foo *)
module Foo = Foolib__Foo
--------
contents of _build/default/lib/foolib__Foo.ml-gen
(* generated by dune *)
(** @canonical Foolib.Foo.A *)
module A = Foolib__Foo__A
(** @canonical Foolib.Foo.Bar *)
module Bar = Foolib__Foo__Bar
--------
contents of _build/default/lib/foolib__Foo__A.ml-gen
(* generated by dune *)
(** @canonical Foolib.Foo.A.B *)
module B = Foolib__Foo__A__B
--------