-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstanza.proj
49 lines (43 loc) · 1.31 KB
/
stanza.proj
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
include? ".slm/stanza.proj"
pkg-cache: ".slm/pkg-cache"
package json defined-in "src/json.stanza"
packages json/* defined-in "src/json/"
package json requires :
ccflags:
on-platform :
linux :
"-L{.}/lib"
; specify run-time shared-library search paths
; use $ORIGIN as the location of the running executable
"-Wl,-rpath,$ORIGIN"
"-Wl,-rpath,$ORIGIN/lib"
"-Wl,-rpath,$ORIGIN/.slm/deps/json/lib"
"-Wl,-rpath,$ORIGIN/../lib"
"-Wl,-rpath,$ORIGIN/../.slm/deps/json/lib"
os-x :
"-L{.}/lib"
; specify run-time shared-library search paths
; use $ORIGIN as the location of the running executable
"-Wl,-rpath,$ORIGIN"
"-Wl,-rpath,$ORIGIN/lib"
"-Wl,-rpath,$ORIGIN/.slm/deps/json/lib"
"-Wl,-rpath,$ORIGIN/../lib"
"-Wl,-rpath,$ORIGIN/../.slm/deps/json/lib"
windows :
"-L{.}\\lib"
"-Wl,-Bdynamic"
; windows uses $PATH for dll location
"-lstz-json"
; This include file will only exist in the git repo at binary package build time.
; End-user slm packages will not have this include file.
include? "stanza-library.proj"
build main :
inputs:
json
pkg: ".slm/pkgs"
;o: "main"
build-test test :
inputs:
json/tests
pkg: ".slm/test-pkgs"
o: "json-tests"