aoc-2022-ocaml/src/dune
ryan 89eb0c7a27 use dune_site module to find inputs
this packages the inputs as part of the build and exposes the directory
to find them via a generated module. this way, inputs are a resource of
the library rather than an input.

this means that `dune exec aoc` and `dune utop` will always find the
file regardless of where they are invoked, which makes developing in
emacs simpler :)
2023-09-21 21:40:21 -07:00

13 lines
216 B
Plaintext

(library
(name aoc)
(libraries stdio re dune-site)
(preprocess (pps ppx_regexp)))
(install
(section (site (aoc inputs)))
(files (glob_files ../inputs/*)))
(generate_sites_module
(module inputs)
(sites aoc))