forked from janet-lang/spork
-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.janet
58 lines (45 loc) · 1.09 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
(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"])