2014-05-07 05:28:38 +08:00
|
|
|
solution "xlnt"
|
|
|
|
configurations { "Debug", "Release" }
|
|
|
|
platforms { "x64" }
|
|
|
|
location ("./" .. _ACTION)
|
|
|
|
configuration "not windows"
|
|
|
|
buildoptions {
|
|
|
|
"-std=c++11",
|
|
|
|
"-Wno-unknown-pragmas"
|
|
|
|
}
|
|
|
|
configuration "Debug"
|
|
|
|
flags { "Symbols" }
|
|
|
|
optimize "Off"
|
|
|
|
configuration "Release"
|
|
|
|
optimize "Full"
|
|
|
|
|
|
|
|
project "xlnt.test"
|
|
|
|
kind "ConsoleApp"
|
|
|
|
language "C++"
|
|
|
|
targetname "xlnt.test"
|
|
|
|
includedirs {
|
|
|
|
"$(opc_prefix)",
|
|
|
|
"$(opc_prefix)/config",
|
|
|
|
"$(opc_prefix)/plib/config/msvc/plib/include",
|
|
|
|
"$(opc_prefix)/third_party/libxml2-2.7.7/include",
|
2014-05-08 01:49:47 +08:00
|
|
|
"$(cxxtest_prefix)",
|
2014-05-09 03:32:12 +08:00
|
|
|
"../include",
|
|
|
|
"../third-party/pugixml/src"
|
2014-05-07 05:28:38 +08:00
|
|
|
}
|
|
|
|
defines { "WIN32" }
|
|
|
|
files {
|
|
|
|
"../source/tests/**.h",
|
|
|
|
"../source/tests/runner-autogen.cpp"
|
|
|
|
}
|
|
|
|
links {
|
|
|
|
"xlnt",
|
|
|
|
"Shlwapi",
|
|
|
|
"mce",
|
|
|
|
"opc",
|
|
|
|
"plib",
|
|
|
|
"xml",
|
|
|
|
"zlib"
|
|
|
|
}
|
2014-05-09 03:32:12 +08:00
|
|
|
prebuildcommands { "cxxtestgen --runner=ParenPrinter -o ../../source/tests/runner-autogen.cpp ../../source/tests/*.h" }
|
2014-05-07 05:28:38 +08:00
|
|
|
libdirs { "$(opc_prefix)/win32/x64/Debug" }
|
|
|
|
flags {
|
|
|
|
"Unicode",
|
|
|
|
"NoEditAndContinue",
|
|
|
|
"NoManifest",
|
|
|
|
"NoPCH"
|
|
|
|
}
|
|
|
|
configuration "Debug"
|
|
|
|
targetdir "../bin/debug"
|
|
|
|
configuration "Release"
|
|
|
|
flags { "LinkTimeOptimization" }
|
|
|
|
targetdir "../bin/release"
|
|
|
|
|
|
|
|
project "xlnt"
|
|
|
|
kind "StaticLib"
|
|
|
|
language "C++"
|
|
|
|
warnings "Extra"
|
|
|
|
targetdir "../lib/"
|
|
|
|
includedirs {
|
|
|
|
"$(opc_prefix)",
|
|
|
|
"$(opc_prefix)/config",
|
|
|
|
"$(opc_prefix)/plib/config/msvc/plib/include",
|
|
|
|
"$(opc_prefix)/third_party/libxml2-2.7.7/include",
|
2014-05-09 03:32:12 +08:00
|
|
|
"../include/xlnt",
|
|
|
|
"../third-party/pugixml/src",
|
|
|
|
"../source/"
|
2014-05-07 05:28:38 +08:00
|
|
|
}
|
|
|
|
defines { "WIN32" }
|
|
|
|
files {
|
|
|
|
"../source/**.cpp",
|
|
|
|
"../source/**.h",
|
2014-05-09 03:32:12 +08:00
|
|
|
"../include/**.h",
|
|
|
|
"../third-party/pugixml/src/pugixml.cpp"
|
2014-05-07 05:28:38 +08:00
|
|
|
}
|
|
|
|
excludes {
|
|
|
|
"../source/tests/**.cpp",
|
|
|
|
"../source/tests/**.h"
|
|
|
|
}
|
|
|
|
flags {
|
|
|
|
"Unicode",
|
|
|
|
"NoEditAndContinue",
|
|
|
|
"NoManifest",
|
|
|
|
"NoPCH"
|
|
|
|
}
|
|
|
|
configuration "Debug"
|
|
|
|
flags { "FatalWarnings" }
|