-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathproject.spank
More file actions
29 lines (22 loc) · 890 Bytes
/
project.spank
File metadata and controls
29 lines (22 loc) · 890 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
25
26
27
28
29
[common]
template c++11
name NetCleanFrameServer
sourcedir src
cflags std=c++0x Wall static
ldflags static static-libgcc static-libstdc++
ldflags Wl,-Bstatic
target_platform mingw32
depends libshmipc libvx
oncleanscript "rm -f $(target).debug"
[*debug: common]
cflags g DDEBUG
ldflags mconsole
postbuildscript "echo built DEBUG version"
[release: common]
ldflags mwindows
postbuildscript "$(host_dash)objcopy --only-keep-debug $(target) $(target).debug"
#postbuildscript "cp $(target) $(target).orig"
postbuildscript "$(host_dash)strip -g $(target)"
postbuildscript "$(host_dash)objcopy --add-gnu-debuglink=$(target).debug $(target)"
postbuildscript "chmod -x $(target).debug"
postbuildscript "echo built RELEASE version"