source: src/examples/gc_no_raii/premake4.lua@ eb4f201

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors ctor deferred_resn demangler enum forall-pointer-decay gc_noraii jacob/cs343-translation jenkins-sandbox memory new-ast new-ast-unique-expr new-env no_list persistent-indexer pthread-emulation qualifiedEnum resolv-new with_gc
Last change on this file since eb4f201 was eb4f201, checked in by Thierry Delisle <tdelisle@…>, 10 years ago

refactored the build script to not requires sed anymore

  • Property mode set to 100644
File size: 1.5 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 = {"\n CC = cfa\n CXX = cfa"}
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.