Last change
on this file since 59627b3 was
87b9332,
checked in by Andrew Beach <ajbeach@…>, 4 years ago
|
Moved 'examples/' to 'tests/zombies/'.
|
-
Property mode set to
100644
|
File size:
1.5 KB
|
Line | |
---|
1 | #!lua |
---|
2 | |
---|
3 | -- Additional Linux libs: "X11", "Xxf86vm", "Xi", "Xrandr", "stdc++" |
---|
4 | |
---|
5 | includeDirList = { |
---|
6 | "src/", |
---|
7 | "../", |
---|
8 | } |
---|
9 | |
---|
10 | libDirectories = { |
---|
11 | |
---|
12 | } |
---|
13 | |
---|
14 | |
---|
15 | if os.get() == "linux" then |
---|
16 | linkLibs = { |
---|
17 | "bsd" |
---|
18 | } |
---|
19 | end |
---|
20 | |
---|
21 | -- Build Options: |
---|
22 | buildOptions = {"\n CC = cfa\n CXX = cfa"} |
---|
23 | |
---|
24 | solution "strings" |
---|
25 | configurations { "debug", "release", |
---|
26 | "cproc-debug", "cproc-release", |
---|
27 | "cfa-debug", "cfa-release" } |
---|
28 | |
---|
29 | project "test" |
---|
30 | kind "ConsoleApp" |
---|
31 | language "C" |
---|
32 | location "build" |
---|
33 | objdir "build" |
---|
34 | targetdir "." |
---|
35 | buildoptions (buildOptions) |
---|
36 | defines { "bool=_Bool", |
---|
37 | "\"true=((_Bool)(const signed int)1)\"", |
---|
38 | "\"false=((_Bool)(const signed int)0)\"", |
---|
39 | "_GNU_SOURCE", |
---|
40 | "__cforall", |
---|
41 | "USE_BSD_LIB" |
---|
42 | } |
---|
43 | libdirs (libDirectories) |
---|
44 | links (linkLibs) |
---|
45 | linkoptions (linkOptionList) |
---|
46 | includedirs (includeDirList) |
---|
47 | files { "src/**.c" } |
---|
48 | |
---|
49 | configuration "debug" |
---|
50 | defines { "DEBUG" } |
---|
51 | flags { "Symbols" } |
---|
52 | |
---|
53 | configuration "release" |
---|
54 | defines { "NDEBUG" } |
---|
55 | flags { "Optimize" } |
---|
56 | |
---|
57 | configuration "cproc-debug" |
---|
58 | buildoptions ({"-E"}) |
---|
59 | linkoptions ({"-E"}) |
---|
60 | defines { "DEBUG" } |
---|
61 | flags { "Symbols" } |
---|
62 | |
---|
63 | configuration "cproc-release" |
---|
64 | buildoptions ({"-E"}) |
---|
65 | linkoptions ({"-E"}) |
---|
66 | defines { "DEBUG" } |
---|
67 | flags { "Symbols" } |
---|
68 | |
---|
69 | configuration "cfa-debug" |
---|
70 | linkoptions ({"-E"}) |
---|
71 | files { "build/cproc-debug/*.o" } |
---|
72 | defines { "DEBUG" } |
---|
73 | flags { "Symbols" } |
---|
74 | |
---|
75 | configuration "cfa-release" |
---|
76 | linkoptions ({"-E"}) |
---|
77 | files { "build/cproc-debug/*.o" } |
---|
78 | defines { "DEBUG" } |
---|
79 | flags { "Symbols" } |
---|
Note: See
TracBrowser
for help on using the repository browser.