annotate 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
rev   line source
lindquist@1 1 project.name = llvmdc
lindquist@1 2 project.bindir = "bin"
lindquist@1 3
lindquist@1 4 package = newpackage()
lindquist@1 5 package.name = "idgen"
lindquist@1 6 package.kind = "exe"
lindquist@1 7 package.language = "c++"
lindquist@1 8 package.files = { "dmd/idgen.c" }
lindquist@1 9 package.buildoptions = { "-x c++" }
lindquist@1 10 package.postbuildcommands = { "bin/idgen", "mv -f id.c id.h dmd" }
lindquist@1 11
lindquist@1 12 package = newpackage()
lindquist@1 13 package.name = "impcnvgen"
lindquist@1 14 package.kind = "exe"
lindquist@1 15 package.language = "c++"
lindquist@1 16 package.files = { "dmd/impcnvgen.c" }
lindquist@1 17 package.buildoptions = { "-x c++" }
lindquist@1 18 package.postbuildcommands = { "bin/impcnvgen", "mv -f impcnvtab.c dmd" }
lindquist@1 19
lindquist@1 20 package = newpackage()
lindquist@1 21 package.name = "llvmdc"
lindquist@1 22 package.kind = "exe"
lindquist@1 23 package.language = "c++"
lindquist@1 24 package.files = { matchfiles("dmd/*.c"), matchfiles("gen/*.c") }
lindquist@1 25 package.excludes = { "dmd/idgen.c", "dmd/impcnvgen.c" }
lindquist@1 26 package.buildoptions = { "-x c++", "`llvm-config --cxxflags`" }
lindquist@1 27 package.linkoptions = { "`llvm-config --libs native bitwriter bitreader`", "`llvm-config --ldflags`" }
lindquist@1 28 package.defines = { "IN_LLVM", "_DH" }
lindquist@1 29 package.config.Release.defines = { "LLVMD_NO_LOGGER" }
lindquist@1 30 package.config.Debug.buildoptions = { "-g" }
lindquist@1 31 --package.targetprefix = "llvm"
lindquist@1 32 package.includepaths = { "dmd" }
lindquist@1 33 --package.postbuildcommands = { "cd runtime; ./build.sh; cd .." }
lindquist@1 34 package.links = { "gc" }