-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathproject.janet
47 lines (35 loc) · 1.1 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
(declare-project
:name "Watchful"
:description "A file system watching utility"
:author "Michael Camilleri"
:license "MIT"
:url "https://github.com/pyrmont/watchful"
:repo "git+https://github.com/pyrmont/watchful"
:dependencies ["https://github.com/pyrmont/testament"])
(def cflags
["-Wpedantic" "-Wall" "-Wextra"])
(def platform-cflags
(case (os/which)
:macos ["-DMACOS=1" "-Wno-unused-command-line-argument"]
:linux ["-DLINUX=1" "-pthread" "-O0" "-g3"]
[]))
(def lflags
[])
(def platform-lflags
(case (os/which)
:macos["-framework" "CoreFoundation" "-framework" "CoreServices"]
[]))
(declare-native
:name "_watchful"
:cflags [;default-cflags ;cflags ;platform-cflags]
:lflags [;default-lflags ;lflags ;platform-lflags]
:headers @["src/watchful.h"
"wrappers/janet/wrapper.h"]
:source @["src/backends/fsevents.c"
"src/backends/inotify.c"
"src/wildmatch.c"
"src/watchful.c"
"wrappers/janet/functions.c"
"wrappers/janet/monitor.c"])
(declare-source
:source ["wrappers/janet/watchful.janet"])