siam-farmer/build.clj
2026-08-26 10:36:43 +07:00

25 lines
715 B
Clojure

(ns build
(:require [clojure.tools.build.api :as b]))
(def basis (b/create-basis {:project "deps.edn"}))
(def class-dir "target/classes")
(def uber-file "target/siam-farmer.jar")
(defn uber [_]
(b/delete {:path "target"})
(b/copy-dir {:src-dirs ["src"]
:target-dir class-dir})
(b/compile-clj
{:basis basis
:src-dirs ["src"]
:class-dir class-dir
:ns-compile ['watch 'rl 'engine 'game]
:java-opts
["--enable-native-access=ALL-UNNAMED"
"-Dwatch.dev=false"
"-Draylib.path=/home/joe/.local/bin/odin/vendor/raylib/linux/libraylib.so.600"]})
(b/uber {:class-dir class-dir
:uber-file uber-file
:basis basis
:main 'game}))