-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathproject.janet
40 lines (30 loc) · 1.18 KB
/
project.janet
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
(declare-project
:name "freja"
:author "Jona Ekenberg <[email protected]>"
:license "MIT"
:description "Extendable text editor with a focus on quick game development and GUI creation. Like a minimal emacs with easy opengl access."
:url "https://github.com/saikyun/freja"
:repo "git+https://github.com/saikyun/freja"
:dependencies ["https://github.com/janet-lang/spork"
{:repo "https://github.com/saikyun/janet-whereami" :tag "main"}
{:repo "https://github.com/saikyun/freja-layout" :tag "main"}
{:repo "https://github.com/Saikyun/janet-profiling" :tag "main"}
## using my own fork due to additions to jaylib
"https://github.com/saikyun/freja-jaylib"
# example of how to use `:tag`
# {:repo "https://...." :tag "abcdcbdc"}
])
(def proj-root
(os/cwd))
(def src-root
(string proj-root "/freja"))
(declare-source
:source @["freja"])
(declare-executable
:name "freja"
:entry (string src-root "/main.janet")
:install true)
(phony "judge" ["build"]
(os/execute ["jg-verdict"
"-p" proj-root
"-s" src-root] :p))