build core 3d party
This commit is contained in:
parent
18a6d9e488
commit
28d6f149ee
2 changed files with 53 additions and 5 deletions
|
@ -56,6 +56,7 @@ source="
|
||||||
server_restore-mobile-editing.patch
|
server_restore-mobile-editing.patch
|
||||||
web-apps_restore-mobile-editing.patch
|
web-apps_restore-mobile-editing.patch
|
||||||
build_tools-untarget-pkg.patch
|
build_tools-untarget-pkg.patch
|
||||||
|
build_tools-nerf-v8.patch
|
||||||
"
|
"
|
||||||
builddir="$srcdir"/$pkgname-v$pkgver
|
builddir="$srcdir"/$pkgname-v$pkgver
|
||||||
|
|
||||||
|
@ -64,22 +65,22 @@ prepare() {
|
||||||
default_prepare
|
default_prepare
|
||||||
npm install -g --prefix "$srcdir"/npm_cache pkg grunt grunt-cli gifsicle
|
npm install -g --prefix "$srcdir"/npm_cache pkg grunt grunt-cli gifsicle
|
||||||
# overrides rpi for certain 3rd party libraries as already provided by system
|
# overrides rpi for certain 3rd party libraries as already provided by system
|
||||||
sed -i '/icu.make()/d' build_tools/scripts/core_common/make_common.py
|
# sed -i '/icu.make()/d' build_tools/scripts/core_common/make_common.py
|
||||||
cat > "$builddir"/core/Common/3dParty/icu/icu.pri << EOF
|
cat > "$builddir"/core/Common/3dParty/icu/icu.pri << EOF
|
||||||
INCLUDEPATH += /usr/include
|
INCLUDEPATH += /usr/include
|
||||||
LIBS += -licuuc -l icudata
|
LIBS += -licuuc -l icudata
|
||||||
EOF
|
EOF
|
||||||
sed -i '/v8.make()/d' build_tools/scripts/core_common/make_common.py
|
# sed -i '/v8.make()/d' build_tools/scripts/core_common/make_common.py
|
||||||
cat > "$builddir"/core/Common/3dParty/v8/v8.pri << EOF
|
cat > "$builddir"/core/Common/3dParty/v8/v8.pri << EOF
|
||||||
INCLUDEPATH += /usr/include/node
|
INCLUDEPATH += /usr/include/node
|
||||||
LIBS += -lnode
|
LIBS += -lnode
|
||||||
EOF
|
EOF
|
||||||
sed -i '/openssl.make()/d' build_tools/scripts/core_common/make_common.py
|
# sed -i '/openssl.make()/d' build_tools/scripts/core_common/make_common.py
|
||||||
cat > "$builddir"/core/Common/3dParty/openssl/openssl.pri << EOF
|
cat > "$builddir"/core/Common/3dParty/openssl/openssl.pri << EOF
|
||||||
INCLUDEPATH += /usr/include/openssl
|
INCLUDEPATH += /usr/include/openssl
|
||||||
LIBS += -lcrypto -lssl
|
LIBS += -lcrypto -lssl
|
||||||
EOF
|
EOF
|
||||||
sed -i '/boost.make()/d' build_tools/scripts/core_common/make_common.py
|
# sed -i '/boost.make()/d' build_tools/scripts/core_common/make_common.py
|
||||||
cat > "$builddir"/core/Common/3dParty/boost/boost.pri << EOF
|
cat > "$builddir"/core/Common/3dParty/boost/boost.pri << EOF
|
||||||
INCLUDEPATH += /usr/include/boost
|
INCLUDEPATH += /usr/include/boost
|
||||||
CORE_BOOST_LIBS = /usr/lib
|
CORE_BOOST_LIBS = /usr/lib
|
||||||
|
@ -93,7 +94,7 @@ build() {
|
||||||
export PATH="$PATH:$srcdir/npm_cache/bin"
|
export PATH="$PATH:$srcdir/npm_cache/bin"
|
||||||
msg "Building core"
|
msg "Building core"
|
||||||
cd "$builddir"/build_tools
|
cd "$builddir"/build_tools
|
||||||
./configure.py --update 0 --module "server"
|
./configure.py --update 0 --module "core builder server"
|
||||||
./make.py
|
./make.py
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
47
user/onlyoffice-document-server/build_tools-nerf-v8.patch
Normal file
47
user/onlyoffice-document-server/build_tools-nerf-v8.patch
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
diff --git a/build_tools/scripts/core_common/modules/v8.py.orig b/build_tools/scripts/core_common/modules/v8.py
|
||||||
|
index f185baa..ed86e58 100644
|
||||||
|
--- a/build_tools/scripts/core_common/modules/v8.py.orig
|
||||||
|
+++ b/build_tools/scripts/core_common/modules/v8.py
|
||||||
|
@@ -73,7 +73,6 @@ def make():
|
||||||
|
use_v8_89 = True
|
||||||
|
|
||||||
|
if (use_v8_89):
|
||||||
|
- v8_89.make()
|
||||||
|
return
|
||||||
|
|
||||||
|
print("[fetch & build]: v8")
|
||||||
|
@@ -167,34 +166,6 @@ def make():
|
||||||
|
base_args64 = "target_cpu=\\\"x64\\\" v8_target_cpu=\\\"x64\\\" v8_static_library=true is_component_build=false v8_use_snapshot=false"
|
||||||
|
base_args32 = "target_cpu=\\\"x86\\\" v8_target_cpu=\\\"x86\\\" v8_static_library=true is_component_build=false v8_use_snapshot=false"
|
||||||
|
|
||||||
|
- if config.check_option("platform", "linux_64"):
|
||||||
|
- base.cmd2("gn", ["gen", "out.gn/linux_64", "--args=\"is_debug=false " + base_args64 + " is_clang=" + is_use_clang() + " use_sysroot=false treat_warnings_as_errors=false\""])
|
||||||
|
- base.cmd("ninja", ["-C", "out.gn/linux_64"])
|
||||||
|
-
|
||||||
|
- if config.check_option("platform", "linux_32"):
|
||||||
|
- base.cmd2("gn", ["gen", "out.gn/linux_32", "--args=\"is_debug=false " + base_args32 + " is_clang=" + is_use_clang() + " use_sysroot=false treat_warnings_as_errors=false\""])
|
||||||
|
- base.cmd("ninja", ["-C", "out.gn/linux_32"])
|
||||||
|
-
|
||||||
|
- if config.check_option("platform", "mac_64"):
|
||||||
|
- base.cmd2("gn", ["gen", "out.gn/mac_64", "--args=\"is_debug=false " + base_args64 + "\""])
|
||||||
|
- base.cmd("ninja", ["-C", "out.gn/mac_64"])
|
||||||
|
-
|
||||||
|
- if config.check_option("platform", "win_64"):
|
||||||
|
- if (-1 != config.option("config").lower().find("debug")):
|
||||||
|
- base.cmd2("gn", ["gen", "out.gn/win_64/debug", "--args=\"is_debug=true " + base_args64 + " is_clang=false\""])
|
||||||
|
- base.cmd("ninja", ["-C", "out.gn/win_64/debug"])
|
||||||
|
-
|
||||||
|
- base.cmd2("gn", ["gen", "out.gn/win_64/release", "--args=\"is_debug=false " + base_args64 + " is_clang=false\""])
|
||||||
|
- base.cmd("ninja", ["-C", "out.gn/win_64/release"])
|
||||||
|
-
|
||||||
|
- if config.check_option("platform", "win_32"):
|
||||||
|
- if (-1 != config.option("config").lower().find("debug")):
|
||||||
|
- base.cmd2("gn", ["gen", "out.gn/win_32/debug", "--args=\"is_debug=true " + base_args32 + " is_clang=false\""])
|
||||||
|
- base.cmd("ninja", ["-C", "out.gn/win_32/debug"])
|
||||||
|
-
|
||||||
|
- base.cmd2("gn", ["gen", "out.gn/win_32/release", "--args=\"is_debug=false " + base_args32 + " is_clang=false\""])
|
||||||
|
- base.cmd("ninja", ["-C", "out.gn/win_32/release"])
|
||||||
|
-
|
||||||
|
os.chdir(old_cur)
|
||||||
|
os.environ.clear()
|
||||||
|
os.environ.update(old_env)
|
Loading…
Add table
Reference in a new issue