mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
Fix build
This commit is contained in:
@ -11,18 +11,16 @@ if not base.is_dir("mdds"):
|
||||
base.cmd("git", ["clone", "https://github.com/kohei-us/mdds.git"])
|
||||
base.cmd_in_dir("mdds", "git", ["checkout", "0783158939c6ce4b0b1b89e345ab983ccb0f0ad0"], "--quiet")
|
||||
|
||||
#the linux code uses an implementation for c++ 17, so we just put this implementation
|
||||
if ("linux" == base.host_platform()):
|
||||
linux_cpp_version = "#if __cplusplus < 201402L\n"
|
||||
linux_cpp_version += "namespace std {\n"
|
||||
linux_cpp_version += " template<bool __v>\n"
|
||||
linux_cpp_version += " using bool_constant = integral_constant<bool, __v>;\n\n"
|
||||
linux_cpp_version += " template <class... _Types>\n"
|
||||
linux_cpp_version += " using void_t = void;\n"
|
||||
linux_cpp_version += "}\n #endif\n\n"
|
||||
linux_cpp_version += "namespace mdds {"
|
||||
linux_cpp_version = "#if __cplusplus < 201402L\n"
|
||||
linux_cpp_version += "namespace std {\n"
|
||||
linux_cpp_version += " template<bool __v>\n"
|
||||
linux_cpp_version += " using bool_constant = integral_constant<bool, __v>;\n\n"
|
||||
linux_cpp_version += " template <class... _Types>\n"
|
||||
linux_cpp_version += " using void_t = void;\n"
|
||||
linux_cpp_version += "}\n #endif\n\n"
|
||||
linux_cpp_version += "namespace mdds {"
|
||||
|
||||
base.replaceInFile("./mdds/include/mdds/global.hpp", "namespace mdds {", linux_cpp_version)
|
||||
base.replaceInFile("./mdds/include/mdds/global.hpp", "namespace mdds {", linux_cpp_version)
|
||||
|
||||
if not base.is_dir("librevenge"):
|
||||
base.cmd("git", ["clone", "https://github.com/Distrotech/librevenge.git"])
|
||||
|
||||
@ -1 +0,0 @@
|
||||
2
|
||||
Reference in New Issue
Block a user