-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.nims
More file actions
24 lines (20 loc) · 759 Bytes
/
config.nims
File metadata and controls
24 lines (20 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
include playdate/build/config
--path:"./src"
--styleCheck:hint
# Add a search path for libraries based on OS.
if defined(device):
switch("passL", "-L" & getCurrentDir() / "lib" / "device")
elif defined(windows):
switch("passL", "-L" & getCurrentDir() / "lib" / "windows")
elif defined(macosx):
switch("passL", "-L" & getCurrentDir() / "lib" / "macos")
elif defined(linux):
switch("passL", "-L" & getCurrentDir() / "lib" / "linux")
else:
echo "Platform not supported!"
# Link the chipmunk library.
switch("passL", "-lchipmunk")
const gameResultSalt = getEnv("WHEELSPRUNG_GAME_RESULT_SALT")
switch("define", "gameResultSalt=" & gameResultSalt)
const levelSalt = getEnv("WHEELSPRUNG_LEVEL_SALT")
switch("define", "levelSalt=" & levelSalt)