2014-05-07 05:28:38 +08:00
|
|
|
solution "xlnt"
|
|
|
|
configurations { "Debug", "Release" }
|
|
|
|
platforms { "x64" }
|
|
|
|
location ("./" .. _ACTION)
|
|
|
|
configuration "Debug"
|
|
|
|
flags { "Symbols" }
|
|
|
|
optimize "Off"
|
|
|
|
configuration "Release"
|
|
|
|
optimize "Full"
|
|
|
|
|
|
|
|
project "xlnt.test"
|
|
|
|
kind "ConsoleApp"
|
|
|
|
language "C++"
|
|
|
|
targetname "xlnt.test"
|
2014-07-30 06:01:54 +08:00
|
|
|
targetdir "../bin"
|
2014-05-07 05:28:38 +08:00
|
|
|
includedirs {
|
2014-05-09 03:32:12 +08:00
|
|
|
"../include",
|
2014-05-15 06:48:18 +08:00
|
|
|
"../third-party/pugixml/src",
|
2014-07-30 06:01:54 +08:00
|
|
|
"../third-party/miniz",
|
2014-06-16 00:16:34 +08:00
|
|
|
"../third-party/cxxtest"
|
2014-05-07 05:28:38 +08:00
|
|
|
}
|
|
|
|
files {
|
2014-06-11 05:12:15 +08:00
|
|
|
"../tests/*.hpp",
|
2014-05-22 05:53:17 +08:00
|
|
|
"../tests/runner-autogen.cpp"
|
2014-05-07 05:28:38 +08:00
|
|
|
}
|
2014-07-30 06:01:54 +08:00
|
|
|
links { "xlnt" }
|
2014-06-16 00:16:34 +08:00
|
|
|
prebuildcommands { "../../third-party/cxxtest/bin/cxxtestgen --runner=ErrorPrinter -o ../../tests/runner-autogen.cpp ../../tests/*.hpp" }
|
2014-07-30 06:01:54 +08:00
|
|
|
flags { "Unicode" }
|
2014-05-07 05:28:38 +08:00
|
|
|
configuration "Release"
|
|
|
|
flags { "LinkTimeOptimization" }
|
2014-05-11 22:46:43 +08:00
|
|
|
configuration "windows"
|
|
|
|
defines { "WIN32" }
|
|
|
|
links { "Shlwapi" }
|
2014-05-07 05:28:38 +08:00
|
|
|
|
|
|
|
project "xlnt"
|
|
|
|
kind "StaticLib"
|
|
|
|
language "C++"
|
|
|
|
warnings "Extra"
|
|
|
|
targetdir "../lib/"
|
|
|
|
includedirs {
|
2014-05-22 05:48:51 +08:00
|
|
|
"../include/xlnt",
|
2014-07-30 06:01:54 +08:00
|
|
|
"../third-party/miniz",
|
2014-07-30 05:39:00 +08:00
|
|
|
"../third-party/pugixml/src"
|
2014-05-21 22:20:30 +08:00
|
|
|
}
|
|
|
|
files {
|
2014-06-06 04:19:31 +08:00
|
|
|
"../source/**.cpp",
|
2014-06-11 05:12:15 +08:00
|
|
|
"../source/**.hpp",
|
2014-07-30 06:01:54 +08:00
|
|
|
"../include/xlnt/**.hpp",
|
|
|
|
"../third-party/miniz/miniz.c",
|
|
|
|
"../third-party/pugixml/src/pugixml.cpp"
|
2014-05-21 22:20:30 +08:00
|
|
|
}
|
2014-07-30 06:01:54 +08:00
|
|
|
flags { "Unicode" }
|
2014-05-21 22:20:30 +08:00
|
|
|
configuration "Debug"
|
|
|
|
flags { "FatalWarnings" }
|
|
|
|
configuration "windows"
|
2014-06-11 05:12:15 +08:00
|
|
|
defines {
|
|
|
|
"WIN32",
|
|
|
|
"_CRT_SECURE_NO_WARNINGS"
|
|
|
|
}
|