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

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors ctor deferred_resn demangler enum forall-pointer-decay 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 4f147cc was 6643e72, checked in by Thierry Delisle <tdelisle@…>, 9 years ago

first basic test for garbage collector now compiles and works

  • Property mode set to 100644
File size: 1.6 KB
Line 
1#!lua
2
3-- Additional Linux libs: "X11", "Xxf86vm", "Xi", "Xrandr", "stdc++"
4
5includeDirList = {
6 "src/",
7 "../",
8 "containers/"
9}
10
11libDirectories = {
12
13}
14
15
16if os.get() == "linux" then
17 linkLibs = {
18
19 }
20end
21
22-- Build Options:
23buildOptions = {
24 "-g",
25 "-DTEST_FILE=${test}",
26 "\n test = gctest",
27 "\n CC = cfa\n CXX = cfa", }
28
29solution "GC-no-RAII"
30 configurations { "debug", "release",
31 "cproc-debug", "cproc-release",
32 "cfa-debug", "cfa-release" }
33
34 project "gc-test"
35 kind "ConsoleApp"
36 language "C"
37 location "build"
38 objdir "build"
39 targetdir "."
40 buildoptions (buildOptions)
41 defines { "bool=_Bool",
42 "\"true=((_Bool)(const signed int)1)\"",
43 "\"false=((_Bool)(const signed int)0)\"",
44 "_GNU_SOURCE",
45 "__cforall"
46 }
47 libdirs (libDirectories)
48 links (linkLibs)
49 linkoptions (linkOptionList)
50 includedirs (includeDirList)
51 files { "src/**.c", "containers/**.c" }
52
53 configuration "debug"
54 defines { "DEBUG" }
55 flags { "Symbols" }
56
57 configuration "release"
58 defines { "NDEBUG" }
59 flags { "Optimize" }
60
61 configuration "cproc-debug"
62 buildoptions ({"-E"})
63 linkoptions ({"-E"})
64 defines { "DEBUG" }
65 flags { "Symbols" }
66
67 configuration "cproc-release"
68 buildoptions ({"-E"})
69 linkoptions ({"-E"})
70 defines { "DEBUG" }
71 flags { "Symbols" }
72
73 configuration "cfa-debug"
74 linkoptions ({"-E"})
75 files { "build/cproc-debug/*.o" }
76 defines { "DEBUG" }
77 flags { "Symbols" }
78
79 configuration "cfa-release"
80 linkoptions ({"-E"})
81 files { "build/cproc-debug/*.o" }
82 defines { "DEBUG" }
83 flags { "Symbols" }
Note: See TracBrowser for help on using the repository browser.