xlnt/build/premake5.lua

106 lines
2.9 KiB
Lua
Raw Normal View History

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)/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",
"mce",
"opc",
"plib",
"xml",
"zlib"
}
2014-05-11 22:46:43 +08:00
prebuildcommands { "cxxtestgen --runner=ErrorPrinter -o ../../source/tests/runner-autogen.cpp ../../source/tests/*.h" }
2014-05-07 05:28:38 +08:00
flags {
"Unicode",
"NoEditAndContinue",
"NoManifest",
"NoPCH"
}
configuration "Debug"
targetdir "../bin/debug"
configuration "Release"
flags { "LinkTimeOptimization" }
targetdir "../bin/release"
2014-05-11 22:46:43 +08:00
configuration "windows"
includedirs { "$(opc_prefix)/plib/config/msvc/plib/include" }
defines { "WIN32" }
links { "Shlwapi" }
libdirs { "$(opc_prefix)/win32/x64/Debug" }
configuration "not windows"
includedirs { "$(opc_prefix)/build/plib/config/darwin-debug-gcc-i386/plib/include" }
libdirs { "$(opc_prefix)/build/darwin-debug-gcc-i386/static" }
2014-05-07 05:28:38 +08:00
project "xlnt"
kind "StaticLib"
language "C++"
warnings "Extra"
targetdir "../lib/"
includedirs {
"$(opc_prefix)",
"$(opc_prefix)/config",
"$(opc_prefix)/third_party/libxml2-2.7.7/include",
2014-05-09 03:32:12 +08:00
"../include/xlnt",
"../third-party/pugixml/src",
2014-05-15 06:31:48 +08:00
"../source/",
"../third-party/zlib/",
"../third-party/zlib/contrib/minizip"
2014-05-07 05:28:38 +08:00
}
files {
"../source/**.cpp",
"../source/**.h",
2014-05-09 03:32:12 +08:00
"../include/**.h",
2014-05-15 06:31:48 +08:00
"../third-party/pugixml/src/pugixml.cpp",
"../third-party/zlib/*.c",
"../third-party/zlib/contrib/minizip/*.c"
2014-05-07 05:28:38 +08:00
}
excludes {
"../source/tests/**.cpp",
2014-05-15 06:31:48 +08:00
"../source/tests/**.h",
"../third-party/zlib/contrib/minizip/miniunz.c",
"../third-party/zlib/contrib/minizip/minizip.c"
2014-05-07 05:28:38 +08:00
}
flags {
"Unicode",
"NoEditAndContinue",
"NoManifest",
"NoPCH"
}
configuration "Debug"
flags { "FatalWarnings" }
2014-05-11 22:46:43 +08:00
configuration "windows"
includedirs { "$(opc_prefix)/plib/config/msvc/plib/include" }
defines { "WIN32" }
configuration "not windows"
includedirs { "$(opc_prefix)/build/plib/config/darwin-debug-gcc-i386/plib/include" }
2014-05-15 06:31:48 +08:00
configuration "**.c"
flags { "NoWarnings" }