Mercurial > projects > ldc
annotate premake.lua @ 4:e116aa1488e6 trunk
[svn r8] changed backend includes to always use the gen/<foo>.h prefix
fixed passing string literals as array parameters
few other fixes
moved some array routines into gen/arrays
author | lindquist |
---|---|
date | Mon, 03 Sep 2007 17:34:30 +0200 |
parents | c53b6e3fe49a |
children | 3cfcb944304e |
rev | line source |
---|---|
1 | 1 project.name = llvmdc |
2 project.bindir = "bin" | |
3 | |
4 package = newpackage() | |
5 package.name = "idgen" | |
6 package.kind = "exe" | |
7 package.language = "c++" | |
8 package.files = { "dmd/idgen.c" } | |
9 package.buildoptions = { "-x c++" } | |
10 package.postbuildcommands = { "bin/idgen", "mv -f id.c id.h dmd" } | |
11 | |
12 package = newpackage() | |
13 package.name = "impcnvgen" | |
14 package.kind = "exe" | |
15 package.language = "c++" | |
16 package.files = { "dmd/impcnvgen.c" } | |
17 package.buildoptions = { "-x c++" } | |
18 package.postbuildcommands = { "bin/impcnvgen", "mv -f impcnvtab.c dmd" } | |
19 | |
20 package = newpackage() | |
21 package.name = "llvmdc" | |
22 package.kind = "exe" | |
23 package.language = "c++" | |
24 package.files = { matchfiles("dmd/*.c"), matchfiles("gen/*.c") } | |
25 package.excludes = { "dmd/idgen.c", "dmd/impcnvgen.c" } | |
26 package.buildoptions = { "-x c++", "`llvm-config --cxxflags`" } | |
27 package.linkoptions = { "`llvm-config --libs native bitwriter bitreader`", "`llvm-config --ldflags`" } | |
28 package.defines = { "IN_LLVM", "_DH" } | |
29 package.config.Release.defines = { "LLVMD_NO_LOGGER" } | |
30 package.config.Debug.buildoptions = { "-g" } | |
31 --package.targetprefix = "llvm" | |
4
e116aa1488e6
[svn r8] changed backend includes to always use the gen/<foo>.h prefix
lindquist
parents:
1
diff
changeset
|
32 package.includepaths = { ".", "dmd" } |
1 | 33 --package.postbuildcommands = { "cd runtime; ./build.sh; cd .." } |
34 package.links = { "gc" } |