annotate premake.lua @ 268:23d0d9855cad trunk

[svn r289] Fixed: right shift >> was broken for unsigned types. Fixed: debug info for classes now started.
author lindquist
date Sun, 15 Jun 2008 18:52:27 +0200
parents a168a2c3ea48
children 297690b5d4a5
rev   line source
lindquist@1 1 project.name = llvmdc
lindquist@1 2
lindquist@268 3 -- options
lindquist@268 4 OPAQUE_VTBLS = 1
lindquist@268 5 USE_BOEHM_GC = 1
lindquist@268 6
lindquist@268 7 -- idgen
lindquist@1 8 package = newpackage()
lindquist@1 9 package.name = "idgen"
lindquist@1 10 package.kind = "exe"
lindquist@1 11 package.language = "c++"
lindquist@1 12 package.files = { "dmd/idgen.c" }
lindquist@1 13 package.buildoptions = { "-x c++" }
lindquist@35 14 package.postbuildcommands = { "./idgen", "mv -f id.c id.h dmd" }
lindquist@1 15
lindquist@268 16 -- impcnvgen
lindquist@1 17 package = newpackage()
lindquist@1 18 package.name = "impcnvgen"
lindquist@1 19 package.kind = "exe"
lindquist@1 20 package.language = "c++"
lindquist@1 21 package.files = { "dmd/impcnvgen.c" }
lindquist@1 22 package.buildoptions = { "-x c++" }
lindquist@35 23 package.postbuildcommands = { "./impcnvgen", "mv -f impcnvtab.c dmd" }
lindquist@1 24
lindquist@268 25 -- llvmdc
lindquist@1 26 package = newpackage()
lindquist@35 27 package.bindir = "bin"
lindquist@1 28 package.name = "llvmdc"
lindquist@1 29 package.kind = "exe"
lindquist@1 30 package.language = "c++"
lindquist@136 31 package.files = { matchfiles("dmd/*.c"), matchfiles("gen/*.cpp"), matchfiles("ir/*.cpp") }
lindquist@1 32 package.excludes = { "dmd/idgen.c", "dmd/impcnvgen.c" }
lindquist@1 33 package.buildoptions = { "-x c++", "`llvm-config --cxxflags`" }
lindquist@131 34 package.linkoptions = {
lindquist@131 35 -- long but it's faster than just 'all'
lindquist@237 36 "`llvm-config --libs core asmparser bitreader bitwriter linker support target transformutils scalaropts ipo instrumentation x86 powerpc`",
lindquist@193 37 "`llvm-config --ldflags`",
lindquist@131 38 }
lindquist@193 39 package.defines = {
lindquist@193 40 "IN_LLVM",
lindquist@193 41 "_DH",
lindquist@268 42 "OPAQUE_VTBLS="..OPAQUE_VTBLS,
lindquist@268 43 "USE_BOEHM_GC="..USE_BOEHM_GC,
lindquist@193 44 }
lindquist@1 45 package.config.Release.defines = { "LLVMD_NO_LOGGER" }
lindquist@86 46 package.config.Debug.buildoptions = { "-g -O0" }
lindquist@1 47 --package.targetprefix = "llvm"
lindquist@4 48 package.includepaths = { ".", "dmd" }
lindquist@1 49 --package.postbuildcommands = { "cd runtime; ./build.sh; cd .." }
lindquist@268 50 if USE_BOEHM_GC == 1 then
lindquist@268 51 package.links = { "gc" }
lindquist@268 52 end