annotate premake.lua @ 193:aca17e55b7a5 trunk

[svn r209] Fixed: exotic array to pointer casts were broken. Changed: classes now have opaque vtables.
author lindquist
date Mon, 12 May 2008 18:44:11 +0200
parents 0e28624814e8
children a168a2c3ea48
rev   line source
lindquist@1 1 project.name = llvmdc
lindquist@1 2
lindquist@1 3 package = newpackage()
lindquist@1 4 package.name = "idgen"
lindquist@1 5 package.kind = "exe"
lindquist@1 6 package.language = "c++"
lindquist@1 7 package.files = { "dmd/idgen.c" }
lindquist@1 8 package.buildoptions = { "-x c++" }
lindquist@35 9 package.postbuildcommands = { "./idgen", "mv -f id.c id.h dmd" }
lindquist@1 10
lindquist@1 11 package = newpackage()
lindquist@1 12 package.name = "impcnvgen"
lindquist@1 13 package.kind = "exe"
lindquist@1 14 package.language = "c++"
lindquist@1 15 package.files = { "dmd/impcnvgen.c" }
lindquist@1 16 package.buildoptions = { "-x c++" }
lindquist@35 17 package.postbuildcommands = { "./impcnvgen", "mv -f impcnvtab.c dmd" }
lindquist@1 18
lindquist@1 19 package = newpackage()
lindquist@35 20 package.bindir = "bin"
lindquist@1 21 package.name = "llvmdc"
lindquist@1 22 package.kind = "exe"
lindquist@1 23 package.language = "c++"
lindquist@136 24 package.files = { matchfiles("dmd/*.c"), matchfiles("gen/*.cpp"), matchfiles("ir/*.cpp") }
lindquist@1 25 package.excludes = { "dmd/idgen.c", "dmd/impcnvgen.c" }
lindquist@1 26 package.buildoptions = { "-x c++", "`llvm-config --cxxflags`" }
lindquist@131 27 package.linkoptions = {
lindquist@131 28 -- long but it's faster than just 'all'
lindquist@131 29 "`llvm-config --libs core asmparser bitreader bitwriter support target transformutils scalaropts ipo instrumentation x86 powerpc`",
lindquist@193 30 "`llvm-config --ldflags`",
lindquist@131 31 }
lindquist@193 32 package.defines = {
lindquist@193 33 "IN_LLVM",
lindquist@193 34 "_DH",
lindquist@193 35 "OPAQUE_VTBLS=1",
lindquist@193 36 }
lindquist@1 37 package.config.Release.defines = { "LLVMD_NO_LOGGER" }
lindquist@86 38 package.config.Debug.buildoptions = { "-g -O0" }
lindquist@1 39 --package.targetprefix = "llvm"
lindquist@4 40 package.includepaths = { ".", "dmd" }
lindquist@1 41 --package.postbuildcommands = { "cd runtime; ./build.sh; cd .." }
lindquist@1 42 package.links = { "gc" }