xlnt/build/premake4.lua

54 lines
1.3 KiB
Lua
Raw Normal View History

2014-06-07 23:49:19 +08:00
solution "xlnt"
configurations { "Debug", "Release" }
platforms { "x64" }
location ("./" .. _ACTION)
configuration "Debug"
flags { "Symbols" }
project "xlnt.test"
kind "ConsoleApp"
language "C++"
targetname "xlnt.test"
targetdir "../bin"
2014-06-07 23:49:19 +08:00
includedirs {
"../include",
"../third-party/pugixml/src",
"../third-party/miniz",
"/usr/local/Cellar/cxxtest/4.3"
2014-06-07 23:49:19 +08:00
}
files {
2014-06-10 12:29:49 +08:00
"../tests/*.hpp",
2014-06-07 23:49:19 +08:00
"../tests/runner-autogen.cpp"
}
links { "xlnt" }
prebuildcommands { "/usr/local/Cellar/cxxtest/4.3/bin/cxxtestgen --runner=ErrorPrinter -o ../../tests/runner-autogen.cpp ../../tests/*.hpp" }
flags { "Unicode" }
2014-06-07 23:49:19 +08:00
configuration "windows"
defines { "WIN32" }
links { "Shlwapi" }
project "xlnt"
kind "StaticLib"
language "C++"
targetdir "../lib/"
includedirs {
"../include",
2014-06-07 23:49:19 +08:00
"../third-party/pugixml/src",
"../third-party/miniz"
2014-06-07 23:49:19 +08:00
}
files {
2014-06-10 12:29:49 +08:00
"../source/**.cpp",
"../source/**.hpp",
"../include/xlnt/**.hpp",
"../third-party/pugixml/src/pugixml.cpp",
"../third-party/miniz/miniz.c"
2014-06-07 23:49:19 +08:00
}
flags { "Unicode" }
2014-06-07 23:49:19 +08:00
configuration "Debug"
flags { "FatalWarnings" }
configuration "windows"
defines {
"WIN32",
"_CRT_SECURE_NO_WARNINGS"
}