comparison premake.lua @ 1:c53b6e3fe49a trunk

[svn r5] Initial commit. Most things are very rough.
author lindquist
date Sat, 01 Sep 2007 21:43:27 +0200
parents
children e116aa1488e6
comparison
equal deleted inserted replaced
0:a9e71648e74d 1:c53b6e3fe49a
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"
32 package.includepaths = { "dmd" }
33 --package.postbuildcommands = { "cd runtime; ./build.sh; cd .." }
34 package.links = { "gc" }