xlnt/build/genie/genie.lua

80 lines
1.9 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/cxxtest",
"../../third-party/miniz",
"../../third-party/pugixml/src"
2014-06-07 23:49:19 +08:00
}
files {
"../../tests/*.hpp",
"../../tests/runner-autogen.cpp"
2014-06-07 23:49:19 +08:00
}
links { "xlnt", "miniz" }
prebuildcommands { "../../../third-party/cxxtest/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" }
configuration "not windows"
buildoptions {
"-std=c++14"
}
2014-06-07 23:49:19 +08:00
project "xlnt"
kind "StaticLib"
language "C++"
targetdir "../../lib/"
2014-06-07 23:49:19 +08:00
includedirs {
"../../include",
2015-10-21 11:30:10 +08:00
"../../source",
"../../third-party/miniz",
"../../third-party/pugixml/src"
2014-06-07 23:49:19 +08:00
}
files {
"../../source/**.cpp",
"../../source/**.hpp",
"../../include/xlnt/**.hpp",
"../../third-party/pugixml/src/pugixml.cpp"
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"
}
configuration "not windows"
buildoptions {
"-std=c++14"
}
project "miniz"
kind "StaticLib"
language "C"
targetdir "../../lib/"
includedirs {
"../../third-party/miniz",
}
files {
"../../third-party/miniz/miniz.c"
}
flags { "Unicode" }
configuration "Debug"
flags { "FatalWarnings" }
configuration "windows"
defines {
"WIN32",
"_CRT_SECURE_NO_WARNINGS"
}