Browse Source

Untabify the premake build files.

pull/1/head
triton 13 years ago
parent
commit
ebccaba862
  1. 104
      build/Parser.lua
  2. 36
      build/premake4.lua
  3. 22
      src/Bridge/Bridge.lua
  4. 18
      src/Generator/Generator.lua

104
build/Parser.lua

@ -1,59 +1,59 @@ @@ -1,59 +1,59 @@
project "Parser"
kind "SharedLib"
language "C++"
kind "SharedLib"
language "C++"
location "."
platforms { "x32" }
flags { common_flags, "Managed" }
flags { common_flags, "Managed" }
configuration "vs*"
buildoptions { common_msvc_copts, "/clr" }
configuration "vs*"
buildoptions { common_msvc_copts, "/clr" }
configuration "*"
files
{
"../src/Parser/**.h",
"../src/Parser/**.cpp",
"./*.lua"
}
includedirs
{
"../../LLVM/include",
"../../LLVM/build/include",
"../../LLVM/tools/clang/include",
"../../LLVM/build/tools/clang/include"
}
configuration "Debug"
libdirs { "../../LLVM/build/lib/Debug" }
configuration "*"
files
{
"../src/Parser/**.h",
"../src/Parser/**.cpp",
"./*.lua"
}
includedirs
{
"../../LLVM/include",
"../../LLVM/build/include",
"../../LLVM/tools/clang/include",
"../../LLVM/build/tools/clang/include"
}
configuration "Debug"
libdirs { "../../LLVM/build/lib/Debug" }
configuration "Release"
libdirs { "../../LLVM/build/lib/RelWithDebInfo" }
configuration "*"
links
{
"LLVMSupport",
"LLVMAsmParser",
"LLVMMC",
"LLVMMCParser",
"LLVMX86AsmParser",
"LLVMX86AsmPrinter",
"LLVMX86Desc",
"LLVMX86Info",
"LLVMX86Utils",
"clangAnalysis",
"clangBasic",
"clangAST",
"clangDriver",
"clangEdit",
"clangFrontend",
"clangLex",
"clangParse",
"clangSema",
"clangSerialization"
}
configuration "Release"
libdirs { "../../LLVM/build/lib/RelWithDebInfo" }
configuration "*"
links
{
"LLVMSupport",
"LLVMAsmParser",
"LLVMMC",
"LLVMMCParser",
"LLVMX86AsmParser",
"LLVMX86AsmPrinter",
"LLVMX86Desc",
"LLVMX86Info",
"LLVMX86Utils",
"clangAnalysis",
"clangBasic",
"clangAST",
"clangDriver",
"clangEdit",
"clangFrontend",
"clangLex",
"clangParse",
"clangSema",
"clangSerialization"
}

36
build/premake4.lua

@ -13,25 +13,25 @@ common_msvc_copts = @@ -13,25 +13,25 @@ common_msvc_copts =
solution "Cxxi"
configurations
{
"Debug",
"Release"
}
objdir ( "../obj/" .. action)
targetdir ("../bin/")
debugdir ( "../bin/")
configurations
{
"Debug",
"Release"
}
objdir ( "../obj/" .. action)
targetdir ("../bin/")
debugdir ( "../bin/")
platforms { "x32" }
configuration "Debug"
defines { "DEBUG" }
configuration "Release"
defines { "NDEBUG" }
flags { "Optimize" }
include "Parser.lua"
configuration "Debug"
defines { "DEBUG" }
configuration "Release"
defines { "NDEBUG" }
flags { "Optimize" }
include "Parser.lua"
include "../src/Bridge/Bridge.lua"
include "../src/Generator/Generator.lua"

22
src/Bridge/Bridge.lua

@ -1,19 +1,19 @@ @@ -1,19 +1,19 @@
project "Bridge"
kind "SharedLib"
language "C#"
kind "SharedLib"
language "C#"
location "."
files { "*.cs" }
files { "*.cs" }
platforms { "x32" }
configuration "Debug"
targetdir "../../bin"
configuration "Release"
targetdir "../../bin"
configuration "Debug"
targetdir "../../bin"
configuration "Release"
targetdir "../../bin"
if _ACTION == "clean" then
os.rmdir("lib")
end
if _ACTION == "clean" then
os.rmdir("lib")
end

18
src/Generator/Generator.lua

@ -1,15 +1,15 @@ @@ -1,15 +1,15 @@
project "Generator"
kind "ConsoleApp"
language "C#"
kind "ConsoleApp"
language "C#"
location "."
files { "**.cs", "**.bmp", "**.resx", "**.config" }
files { "**.cs", "**.bmp", "**.resx", "**.config" }
excludes { "Filter.cs" }
links { "Bridge", "System", "System.Core", "Parser" }
links { "Bridge", "System", "System.Core", "Parser" }
platforms { "x32" }
configuration "Debug"
targetdir "../../bin"
configuration "Release"
targetdir "../../bin"
configuration "Debug"
targetdir "../../bin"
configuration "Release"
targetdir "../../bin"

Loading…
Cancel
Save