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"
|
|
|
|
includedirs {
|
|
|
|
"../include",
|
|
|
|
"../third-party/pugixml/src",
|
|
|
|
"../third-party/zlib",
|
|
|
|
"../third-party/zlib/contrib/minizip",
|
2014-06-13 05:04:37 +08:00
|
|
|
"/usr/local/Cellar/cxxtest/4.3"
|
2014-06-07 23:49:19 +08:00
|
|
|
}
|
|
|
|
files {
|
2014-06-10 12:29:49 +08:00
|
|
|
"../tests/*.hpp",
|
2014-06-07 23:49:19 +08:00
|
|
|
"../tests/runner-autogen.cpp"
|
|
|
|
}
|
|
|
|
links {
|
|
|
|
"pugixml",
|
|
|
|
"xlnt",
|
|
|
|
"zlib"
|
|
|
|
}
|
2014-06-13 05:04:37 +08:00
|
|
|
prebuildcommands { "/usr/local/Cellar/cxxtest/4.3/bin/cxxtestgen --runner=ErrorPrinter -o ../../tests/runner-autogen.cpp ../../tests/*.hpp" }
|
2014-06-07 23:49:19 +08:00
|
|
|
flags {
|
|
|
|
"Unicode",
|
|
|
|
"NoEditAndContinue",
|
|
|
|
"NoManifest",
|
|
|
|
"NoPCH"
|
|
|
|
}
|
|
|
|
configuration "Debug"
|
|
|
|
targetdir "../bin"
|
|
|
|
configuration "Release"
|
|
|
|
targetdir "../bin"
|
|
|
|
configuration "windows"
|
|
|
|
defines { "WIN32" }
|
|
|
|
links { "Shlwapi" }
|
2014-06-13 05:04:37 +08:00
|
|
|
postbuildcommands { "..\\..\\bin\\xlnt.test" }
|
2014-06-07 23:49:19 +08:00
|
|
|
configuration "not windows"
|
2014-06-13 05:04:37 +08:00
|
|
|
postbuildcommands { "../../bin/xlnt.test" }
|
2014-06-07 23:49:19 +08:00
|
|
|
buildoptions {
|
|
|
|
"-std=c++11",
|
|
|
|
"-Wno-unknown-pragmas"
|
|
|
|
}
|
2014-06-13 05:04:37 +08:00
|
|
|
configuration { "not windows", "Debug" }
|
|
|
|
buildoptions { "-ggdb" }
|
2014-06-07 23:49:19 +08:00
|
|
|
|
|
|
|
project "xlnt"
|
|
|
|
kind "StaticLib"
|
|
|
|
language "C++"
|
|
|
|
targetdir "../lib/"
|
|
|
|
links {
|
|
|
|
"zlib",
|
|
|
|
"pugixml"
|
|
|
|
}
|
|
|
|
includedirs {
|
|
|
|
"../include/xlnt",
|
|
|
|
"../third-party/pugixml/src",
|
|
|
|
"../third-party/zlib/",
|
|
|
|
"../third-party/zlib/contrib/minizip"
|
|
|
|
}
|
|
|
|
files {
|
2014-06-10 12:29:49 +08:00
|
|
|
"../source/**.cpp",
|
|
|
|
"../source/**.hpp",
|
|
|
|
"../include/xlnt/**.hpp"
|
2014-06-07 23:49:19 +08:00
|
|
|
}
|
|
|
|
flags {
|
|
|
|
"Unicode",
|
|
|
|
"NoEditAndContinue",
|
|
|
|
"NoManifest",
|
|
|
|
"NoPCH"
|
|
|
|
}
|
|
|
|
configuration "Debug"
|
|
|
|
flags { "FatalWarnings" }
|
|
|
|
configuration "windows"
|
2014-06-13 05:04:37 +08:00
|
|
|
defines {
|
|
|
|
"WIN32",
|
|
|
|
"_CRT_SECURE_NO_WARNINGS"
|
|
|
|
}
|
2014-06-07 23:49:19 +08:00
|
|
|
configuration "not windows"
|
|
|
|
buildoptions {
|
|
|
|
"-std=c++11",
|
|
|
|
"-Wno-unknown-pragmas"
|
|
|
|
}
|
2014-06-13 05:04:37 +08:00
|
|
|
configuration { "not windows", "Debug" }
|
|
|
|
buildoptions { "-ggdb" }
|
2014-06-07 23:49:19 +08:00
|
|
|
|
|
|
|
project "pugixml"
|
|
|
|
kind "StaticLib"
|
|
|
|
language "C++"
|
|
|
|
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"
|
|
|
|
targetdir "../lib/"
|
|
|
|
includedirs {
|
|
|
|
"../third-party/zlib/",
|
|
|
|
"../third-party/zlib/contrib/minizip"
|
|
|
|
}
|
|
|
|
files {
|
|
|
|
"../third-party/zlib/*.c",
|
|
|
|
"../third-party/zlib/contrib/minizip/*.c"
|
|
|
|
}
|
|
|
|
excludes {
|
|
|
|
"../third-party/zlib/contrib/minizip/miniunz.c",
|
|
|
|
"../third-party/zlib/contrib/minizip/minizip.c",
|
|
|
|
"../third-party/zlib/contrib/minizip/iowin32.c"
|
|
|
|
}
|
|
|
|
flags {
|
|
|
|
"Unicode",
|
|
|
|
"NoEditAndContinue",
|
|
|
|
"NoManifest",
|
|
|
|
"NoPCH"
|
|
|
|
}
|
|
|
|
configuration "windows"
|
|
|
|
defines { "WIN32" }
|