-
Notifications
You must be signed in to change notification settings - Fork 35
/
project.janet
62 lines (48 loc) · 1.16 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
(declare-project
:name "spork"
:description "Official contrib library of various Janet utility modules."
:author "Calvin Rose"
:license "MIT"
:url "https://github.com/janet-lang/spork"
:repo "git+https://github.com/janet-lang/spork")
(declare-source
:source @["spork"])
# Scripts
(declare-binscript
:main "bin/janet-format"
:hardcode-syspath true
:is-janet true)
(declare-binscript
:main "bin/janet-netrepl"
:hardcode-syspath true
:is-janet true)
# Natives
(declare-native
:name "spork/json"
:source @["src/json.c"])
(declare-native
:name "spork/rawterm"
:source @["src/rawterm.c"])
(declare-native
:name "spork/crc"
:source @["src/crc.c"])
(declare-native
:name "spork/utf8"
:source @["src/utf8.c"])
(declare-native
:name "spork/tarray"
:headers @["src/tarray.h"]
:source @["src/tarray.c"])
(declare-headers
:headers ["src/tarray.h"])
(declare-native
:name "spork/zip"
:source @["src/zip.c" "deps/miniz/miniz.c"]
:defines @{"_LARGEFILE64_SOURCE" true}
:headers @["deps/miniz/miniz.h"])
(declare-native
:name "spork/cmath"
:source @["src/cmath.c"])
(declare-native
:name "spork/base64"
:source @["src/base64.c"])