(library (name todo) (libraries sqlite3 uri) (foreign_stubs (language c) (names rand_stubs))) ; The CSS and JS are compiled into the binary. (rule (target assets.ml) (deps (:files %{project_root}/static/base.css %{project_root}/static/index.css %{project_root}/static/app.css %{project_root}/static/app.js)) (action (with-stdout-to %{target} (run %{exe:../gen/embed.exe} %{files})))) ; The build version, from APP_VERSION (the Makefile passes the git short SHA). (rule (target version.ml) (action (with-stdout-to %{target} (echo "let v = \"%{env:APP_VERSION=dev}\"\n"))))