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"
|
2015-09-24 07:24:43 +08:00
|
|
|
targetdir "../../bin"
|
2014-06-07 23:49:19 +08:00
|
|
|
includedirs {
|
2015-09-24 07:24:43 +08:00
|
|
|
"../../include",
|
2015-09-29 12:38:00 +08:00
|
|
|
"../../third-party/cxxtest",
|
2015-09-24 07:24:43 +08:00
|
|
|
"../../third-party/miniz",
|
2015-09-29 12:38:00 +08:00
|
|
|
"../../third-party/pugixml/src"
|
2014-06-07 23:49:19 +08:00
|
|
|
}
|
|
|
|
files {
|
2015-09-24 07:24:43 +08:00
|
|
|
"../../tests/*.hpp",
|
|
|
|
"../../tests/runner-autogen.cpp"
|
2014-06-07 23:49:19 +08:00
|
|
|
}
|
2015-10-15 00:21:18 +08:00
|
|
|
links { "xlnt", "miniz" }
|
2015-10-27 04:26:47 +08:00
|
|
|
prebuildcommands { "../generate-tests.sh" }
|
2014-07-30 05:39:00 +08:00
|
|
|
flags { "Unicode" }
|
2014-06-07 23:49:19 +08:00
|
|
|
configuration "windows"
|
|
|
|
defines { "WIN32" }
|
|
|
|
links { "Shlwapi" }
|
2015-10-26 12:44:55 +08:00
|
|
|
configuration "linux"
|
|
|
|
buildoptions {
|
|
|
|
"-std=c++1y"
|
|
|
|
}
|
|
|
|
configuration "macos"
|
2015-10-15 00:21:18 +08:00
|
|
|
buildoptions {
|
|
|
|
"-std=c++14"
|
|
|
|
}
|
2014-06-07 23:49:19 +08:00
|
|
|
|
|
|
|
project "xlnt"
|
|
|
|
kind "StaticLib"
|
|
|
|
language "C++"
|
2015-09-24 07:24:43 +08:00
|
|
|
targetdir "../../lib/"
|
2014-06-07 23:49:19 +08:00
|
|
|
includedirs {
|
2015-09-24 07:24:43 +08:00
|
|
|
"../../include",
|
2015-10-21 11:30:10 +08:00
|
|
|
"../../source",
|
2015-09-29 12:38:00 +08:00
|
|
|
"../../third-party/miniz",
|
|
|
|
"../../third-party/pugixml/src"
|
2014-06-07 23:49:19 +08:00
|
|
|
}
|
|
|
|
files {
|
2015-09-24 07:24:43 +08:00
|
|
|
"../../source/**.cpp",
|
|
|
|
"../../source/**.hpp",
|
|
|
|
"../../include/xlnt/**.hpp",
|
2015-10-15 00:21:18 +08:00
|
|
|
"../../third-party/pugixml/src/pugixml.cpp"
|
2014-06-07 23:49:19 +08:00
|
|
|
}
|
2014-07-30 05:39:00 +08:00
|
|
|
flags { "Unicode" }
|
2014-06-07 23:49:19 +08:00
|
|
|
configuration "Debug"
|
|
|
|
flags { "FatalWarnings" }
|
|
|
|
configuration "windows"
|
2014-06-13 05:04:37 +08:00
|
|
|
defines {
|
|
|
|
"WIN32",
|
|
|
|
"_CRT_SECURE_NO_WARNINGS"
|
|
|
|
}
|
2015-10-26 12:44:55 +08:00
|
|
|
configuration "linux"
|
|
|
|
buildoptions {
|
|
|
|
"-std=c++1y"
|
|
|
|
}
|
|
|
|
configuration "macos"
|
2015-10-15 00:21:18 +08:00
|
|
|
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"
|
|
|
|
}
|