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"
|
|
|
|
includedirs {
|
2014-05-09 03:32:12 +08:00
|
|
|
"../include",
|
2014-05-15 06:48:18 +08:00
|
|
|
"../third-party/pugixml/src",
|
|
|
|
"../third-party/zlib",
|
2014-05-22 05:53:17 +08:00
|
|
|
"../third-party/zlib/contrib/minizip",
|
|
|
|
"$(cxxtest_prefix)"
|
2014-05-07 05:28:38 +08:00
|
|
|
}
|
|
|
|
files {
|
2014-05-22 05:53:17 +08:00
|
|
|
"../tests/*.h",
|
|
|
|
"../tests/runner-autogen.cpp"
|
2014-05-07 05:28:38 +08:00
|
|
|
}
|
2014-05-22 06:13:32 +08:00
|
|
|
links {
|
|
|
|
"pugixml",
|
2014-05-22 07:17:56 +08:00
|
|
|
"xlnt",
|
|
|
|
"zlib"
|
2014-05-22 06:13:32 +08:00
|
|
|
}
|
2014-06-06 04:19:31 +08:00
|
|
|
prebuildcommands { "cxxtestgen --runner=ErrorPrinter -o ../../tests/runner-autogen.cpp ../../tests/*.hpp" }
|
|
|
|
postbuildcommands { "../../bin/xlnt.test" }
|
2014-05-07 05:28:38 +08:00
|
|
|
flags {
|
|
|
|
"Unicode",
|
|
|
|
"NoEditAndContinue",
|
|
|
|
"NoManifest",
|
|
|
|
"NoPCH"
|
|
|
|
}
|
|
|
|
configuration "Debug"
|
2014-05-15 06:48:18 +08:00
|
|
|
targetdir "../bin"
|
2014-05-07 05:28:38 +08:00
|
|
|
configuration "Release"
|
|
|
|
flags { "LinkTimeOptimization" }
|
2014-05-15 06:48:18 +08:00
|
|
|
targetdir "../bin"
|
2014-05-11 22:46:43 +08:00
|
|
|
configuration "windows"
|
|
|
|
defines { "WIN32" }
|
|
|
|
links { "Shlwapi" }
|
2014-05-21 22:20:30 +08:00
|
|
|
configuration "not windows"
|
|
|
|
buildoptions {
|
|
|
|
"-std=c++11",
|
|
|
|
"-Wno-unknown-pragmas"
|
|
|
|
}
|
2014-06-06 05:42:15 +08:00
|
|
|
configuration { "not windows", "Debug" }
|
|
|
|
buildoptions { "-ggdb" }
|
2014-05-07 05:28:38 +08:00
|
|
|
|
|
|
|
project "xlnt"
|
|
|
|
kind "StaticLib"
|
|
|
|
language "C++"
|
|
|
|
warnings "Extra"
|
|
|
|
targetdir "../lib/"
|
2014-05-21 22:20:30 +08:00
|
|
|
links {
|
|
|
|
"zlib",
|
|
|
|
"pugixml"
|
|
|
|
}
|
2014-05-07 05:28:38 +08:00
|
|
|
includedirs {
|
2014-05-22 05:48:51 +08:00
|
|
|
"../include/xlnt",
|
2014-05-21 22:20:30 +08:00
|
|
|
"../third-party/pugixml/src",
|
|
|
|
"../third-party/zlib/",
|
|
|
|
"../third-party/zlib/contrib/minizip"
|
|
|
|
}
|
|
|
|
files {
|
2014-06-06 04:19:31 +08:00
|
|
|
"../source/**.cpp",
|
|
|
|
"../source/**.h",
|
|
|
|
"../include/xlnt/**.h"
|
2014-05-21 22:20:30 +08:00
|
|
|
}
|
|
|
|
flags {
|
|
|
|
"Unicode",
|
|
|
|
"NoEditAndContinue",
|
|
|
|
"NoManifest",
|
|
|
|
"NoPCH"
|
|
|
|
}
|
|
|
|
configuration "Debug"
|
|
|
|
flags { "FatalWarnings" }
|
|
|
|
configuration "windows"
|
|
|
|
defines { "WIN32" }
|
|
|
|
configuration "not windows"
|
|
|
|
buildoptions {
|
|
|
|
"-std=c++11",
|
|
|
|
"-Wno-unknown-pragmas"
|
|
|
|
}
|
2014-06-06 05:42:15 +08:00
|
|
|
configuration { "not windows", "Debug" }
|
|
|
|
buildoptions { "-ggdb" }
|
2014-05-21 22:20:30 +08:00
|
|
|
|
|
|
|
project "pugixml"
|
|
|
|
kind "StaticLib"
|
|
|
|
language "C++"
|
|
|
|
warnings "Off"
|
|
|
|
targetdir "../lib/"
|
|
|
|
includedirs {
|
|
|
|
"../third-party/pugixml/src"
|
|
|
|
}
|
|
|
|
files {
|
|
|
|
"../third-party/pugixml/src/pugixml.cpp"
|
|
|
|
}
|
|
|
|
flags {
|
|
|
|
"Unicode",
|
|
|
|
"NoEditAndContinue",
|
|
|
|
"NoManifest",
|
|
|
|
"NoPCH"
|
|
|
|
}
|
|
|
|
configuration "windows"
|
|
|
|
defines { "WIN32" }
|
|
|
|
|
|
|
|
project "zlib"
|
|
|
|
kind "StaticLib"
|
|
|
|
language "C"
|
|
|
|
warnings "Off"
|
|
|
|
targetdir "../lib/"
|
|
|
|
includedirs {
|
2014-05-15 06:31:48 +08:00
|
|
|
"../third-party/zlib/",
|
|
|
|
"../third-party/zlib/contrib/minizip"
|
2014-05-07 05:28:38 +08:00
|
|
|
}
|
|
|
|
files {
|
2014-05-15 06:31:48 +08:00
|
|
|
"../third-party/zlib/*.c",
|
|
|
|
"../third-party/zlib/contrib/minizip/*.c"
|
2014-05-07 05:28:38 +08:00
|
|
|
}
|
|
|
|
excludes {
|
2014-05-15 06:31:48 +08:00
|
|
|
"../third-party/zlib/contrib/minizip/miniunz.c",
|
2014-05-21 22:20:30 +08:00
|
|
|
"../third-party/zlib/contrib/minizip/minizip.c",
|
2014-05-22 07:17:56 +08:00
|
|
|
"../third-party/zlib/contrib/minizip/iowin32.c"
|
2014-05-07 05:28:38 +08:00
|
|
|
}
|
|
|
|
flags {
|
|
|
|
"Unicode",
|
|
|
|
"NoEditAndContinue",
|
|
|
|
"NoManifest",
|
|
|
|
"NoPCH"
|
|
|
|
}
|
2014-05-11 22:46:43 +08:00
|
|
|
configuration "windows"
|
|
|
|
defines { "WIN32" }
|