source: src/examples/gc_no_raii/premake4.lua @ 4ef8fb3

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsctordeferred_resndemanglerenumforall-pointer-decaygc_noraiijacob/cs343-translationjenkins-sandboxmemorynew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change on this file since 4ef8fb3 was 8a74081, checked in by Thierry Delisle <tdelisle@…>, 8 years ago

cforall define

  • Property mode set to 100644
File size: 1.4 KB
Line 
1#!lua
2
3-- Additional Linux libs: "X11", "Xxf86vm", "Xi", "Xrandr", "stdc++"
4
5includeDirList = {
6        "src/",
7        "../",
8}
9
10libDirectories = {
11
12}
13
14
15if os.get() == "linux" then
16    linkLibs = {
17
18    }
19end
20
21-- Build Options:
22buildOptions = {""}
23
24solution "GC-no-RAII"
25        configurations  { "debug", "release",
26                                "cproc-debug", "cproc-release",
27                                "cfa-debug", "cfa-release" }
28
29        project "gc-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                        }
42                libdirs (libDirectories)
43                links (linkLibs)
44                linkoptions (linkOptionList)
45                includedirs (includeDirList)
46                files { "src/**.c" }
47
48        configuration "debug"
49                defines { "DEBUG" }
50                flags { "Symbols" }
51
52        configuration "release"
53                defines { "NDEBUG" }
54                flags { "Optimize" }
55
56        configuration "cproc-debug"
57                buildoptions ({"-E"})
58                linkoptions ({"-E"})
59              defines { "DEBUG" }
60              flags { "Symbols" }
61
62        configuration "cproc-release"
63                buildoptions ({"-E"})
64                linkoptions ({"-E"})
65              defines { "DEBUG" }
66              flags { "Symbols" }
67
68        configuration "cfa-debug"
69                linkoptions ({"-E"})
70                files { "build/cproc-debug/*.o" }
71              defines { "DEBUG" }
72              flags { "Symbols" }
73
74        configuration "cfa-release"
75                linkoptions ({"-E"})
76                files { "build/cproc-debug/*.o" }
77              defines { "DEBUG" }
78              flags { "Symbols" }
Note: See TracBrowser for help on using the repository browser.