Merge pull request #361 from electron/use-official-build-for-static-library
Build static build as an official build
This commit is contained in:
Коммит
628f0d9944
|
@ -3,4 +3,5 @@
|
||||||
url = https://chromium.googlesource.com/chromium/tools/depot_tools.git
|
url = https://chromium.googlesource.com/chromium/tools/depot_tools.git
|
||||||
[submodule "vendor/boto"]
|
[submodule "vendor/boto"]
|
||||||
path = vendor/boto
|
path = vendor/boto
|
||||||
url = https://github.com/boto/boto
|
url = https://github.com/piotrbulinski/boto.git
|
||||||
|
ignore = untracked
|
||||||
|
|
|
@ -220,7 +220,13 @@ if (is_electron_build && !is_component_build) {
|
||||||
":pdfium",
|
":pdfium",
|
||||||
":webkit",
|
":webkit",
|
||||||
":webkitbindings",
|
":webkitbindings",
|
||||||
|
":webkitcore1",
|
||||||
|
":webkitcore2",
|
||||||
|
":webkitcore3",
|
||||||
|
":webkitcore4",
|
||||||
|
":webkitcore5",
|
||||||
":webkitmodules",
|
":webkitmodules",
|
||||||
|
":webkitwtf",
|
||||||
":webrtc",
|
":webrtc",
|
||||||
":v8",
|
":v8",
|
||||||
]
|
]
|
||||||
|
@ -330,6 +336,46 @@ if (is_electron_build && !is_component_build) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static_library("webkitcore1") {
|
||||||
|
complete_static_lib = true
|
||||||
|
sources = []
|
||||||
|
if (defined(obj_webkitcore1)) {
|
||||||
|
sources += obj_webkitcore1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static_library("webkitcore2") {
|
||||||
|
complete_static_lib = true
|
||||||
|
sources = []
|
||||||
|
if (defined(obj_webkitcore2)) {
|
||||||
|
sources += obj_webkitcore2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static_library("webkitcore3") {
|
||||||
|
complete_static_lib = true
|
||||||
|
sources = []
|
||||||
|
if (defined(obj_webkitcore3)) {
|
||||||
|
sources += obj_webkitcore3
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static_library("webkitcore4") {
|
||||||
|
complete_static_lib = true
|
||||||
|
sources = []
|
||||||
|
if (defined(obj_webkitcore4)) {
|
||||||
|
sources += obj_webkitcore4
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static_library("webkitcore5") {
|
||||||
|
complete_static_lib = true
|
||||||
|
sources = []
|
||||||
|
if (defined(obj_webkitcore5)) {
|
||||||
|
sources += obj_webkitcore5
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static_library("webkitmodules") {
|
static_library("webkitmodules") {
|
||||||
complete_static_lib = true
|
complete_static_lib = true
|
||||||
sources = []
|
sources = []
|
||||||
|
@ -338,6 +384,14 @@ if (is_electron_build && !is_component_build) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static_library("webkitwtf") {
|
||||||
|
complete_static_lib = true
|
||||||
|
sources = []
|
||||||
|
if (defined(obj_webkitwtf)) {
|
||||||
|
sources += obj_webkitwtf
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static_library("webrtc") {
|
static_library("webrtc") {
|
||||||
complete_static_lib = true
|
complete_static_lib = true
|
||||||
sources = []
|
sources = []
|
||||||
|
|
|
@ -6,3 +6,4 @@ enable_widevine = true
|
||||||
proprietary_codecs = false
|
proprietary_codecs = false
|
||||||
is_component_ffmpeg = true
|
is_component_ffmpeg = true
|
||||||
ffmpeg_branding = "Chromium"
|
ffmpeg_branding = "Chromium"
|
||||||
|
is_official_build = true
|
||||||
|
|
|
@ -8,4 +8,5 @@ enable_widevine = true
|
||||||
proprietary_codecs = true
|
proprietary_codecs = true
|
||||||
is_component_ffmpeg = true
|
is_component_ffmpeg = true
|
||||||
ffmpeg_branding = "Chrome"
|
ffmpeg_branding = "Chrome"
|
||||||
|
is_official_build = true
|
||||||
v8_promise_internal_field_count = 1 # https://github.com/nodejs/node/pull/13242
|
v8_promise_internal_field_count = 1 # https://github.com/nodejs/node/pull/13242
|
||||||
|
|
|
@ -252,7 +252,6 @@ with open(args.out, 'w') as out:
|
||||||
"obj_webkit",
|
"obj_webkit",
|
||||||
[
|
[
|
||||||
"third_party/WebKit/public",
|
"third_party/WebKit/public",
|
||||||
"third_party/WebKit/Source/core",
|
|
||||||
"third_party/WebKit/Source/platform/heap",
|
"third_party/WebKit/Source/platform/heap",
|
||||||
"third_party/WebKit/Source/platform/blink_common",
|
"third_party/WebKit/Source/platform/blink_common",
|
||||||
"third_party/WebKit/Source/platform/loader",
|
"third_party/WebKit/Source/platform/loader",
|
||||||
|
@ -260,7 +259,67 @@ with open(args.out, 'w') as out:
|
||||||
"third_party/WebKit/Source/platform/platform",
|
"third_party/WebKit/Source/platform/platform",
|
||||||
"third_party/WebKit/Source/platform/wtf/platform_wtf",
|
"third_party/WebKit/Source/platform/wtf/platform_wtf",
|
||||||
"third_party/WebKit/Source/web",
|
"third_party/WebKit/Source/web",
|
||||||
"third_party/WebKit/Source/wtf",
|
])
|
||||||
|
|
||||||
|
gen_list(
|
||||||
|
out,
|
||||||
|
"obj_webkitcore1",
|
||||||
|
[
|
||||||
|
"third_party/WebKit/Source/core/animation",
|
||||||
|
"third_party/WebKit/Source/core/clipboard",
|
||||||
|
"third_party/WebKit/Source/core/core",
|
||||||
|
"third_party/WebKit/Source/core/core_generated",
|
||||||
|
])
|
||||||
|
|
||||||
|
gen_list(
|
||||||
|
out,
|
||||||
|
"obj_webkitcore2",
|
||||||
|
[
|
||||||
|
"third_party/WebKit/Source/core/css",
|
||||||
|
"third_party/WebKit/Source/core/dom",
|
||||||
|
"third_party/WebKit/Source/core/editing",
|
||||||
|
"third_party/WebKit/Source/core/events",
|
||||||
|
"third_party/WebKit/Source/core/fileapi",
|
||||||
|
"third_party/WebKit/Source/core/frame",
|
||||||
|
"third_party/WebKit/Source/core/geometry",
|
||||||
|
])
|
||||||
|
|
||||||
|
gen_list(
|
||||||
|
out,
|
||||||
|
"obj_webkitcore3",
|
||||||
|
[
|
||||||
|
"third_party/WebKit/Source/core/html",
|
||||||
|
"third_party/WebKit/Source/core/imagebitmap",
|
||||||
|
"third_party/WebKit/Source/core/input",
|
||||||
|
"third_party/WebKit/Source/core/inspector",
|
||||||
|
])
|
||||||
|
|
||||||
|
gen_list(
|
||||||
|
out,
|
||||||
|
"obj_webkitcore4",
|
||||||
|
[
|
||||||
|
"third_party/WebKit/Source/core/layout",
|
||||||
|
"third_party/WebKit/Source/core/loader",
|
||||||
|
"third_party/WebKit/Source/core/mojo",
|
||||||
|
"third_party/WebKit/Source/core/offscreencanvas",
|
||||||
|
"third_party/WebKit/Source/core/origin_trials",
|
||||||
|
"third_party/WebKit/Source/core/page",
|
||||||
|
])
|
||||||
|
|
||||||
|
gen_list(
|
||||||
|
out,
|
||||||
|
"obj_webkitcore5",
|
||||||
|
[
|
||||||
|
"third_party/WebKit/Source/core/paint",
|
||||||
|
"third_party/WebKit/Source/core/plugins",
|
||||||
|
"third_party/WebKit/Source/core/probe",
|
||||||
|
"third_party/WebKit/Source/core/streams",
|
||||||
|
"third_party/WebKit/Source/core/style",
|
||||||
|
"third_party/WebKit/Source/core/svg",
|
||||||
|
"third_party/WebKit/Source/core/timing",
|
||||||
|
"third_party/WebKit/Source/core/workers",
|
||||||
|
"third_party/WebKit/Source/core/xml",
|
||||||
|
"third_party/WebKit/Source/core/xmlhttprequest",
|
||||||
])
|
])
|
||||||
|
|
||||||
gen_list(
|
gen_list(
|
||||||
|
@ -277,6 +336,13 @@ with open(args.out, 'w') as out:
|
||||||
"third_party/WebKit/Source/modules",
|
"third_party/WebKit/Source/modules",
|
||||||
])
|
])
|
||||||
|
|
||||||
|
gen_list(
|
||||||
|
out,
|
||||||
|
"obj_webkitwtf",
|
||||||
|
[
|
||||||
|
"third_party/WebKit/Source/wtf",
|
||||||
|
])
|
||||||
|
|
||||||
gen_list(
|
gen_list(
|
||||||
out,
|
out,
|
||||||
"obj_webrtc",
|
"obj_webrtc",
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
diff --git a/content/app/content_main_runner.cc b/content/app/content_main_runner.cc
|
|
||||||
index c283922..397ba80 100644
|
|
||||||
--- a/content/app/content_main_runner.cc
|
|
||||||
+++ b/content/app/content_main_runner.cc
|
|
||||||
@@ -657,7 +657,7 @@ class ContentMainRunnerImpl : public ContentMainRunner {
|
|
||||||
|
|
||||||
InitializeV8IfNeeded(command_line, process_type);
|
|
||||||
|
|
||||||
-#if !defined(OFFICIAL_BUILD)
|
|
||||||
+#if 0
|
|
||||||
#if defined(OS_WIN)
|
|
||||||
bool should_enable_stack_dump = !process_type.empty();
|
|
||||||
#else
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
import contextlib
|
import contextlib
|
||||||
import os
|
import os
|
||||||
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
@ -20,6 +21,9 @@ def main():
|
||||||
# Setup boto.
|
# Setup boto.
|
||||||
with scoped_cwd(os.path.join('vendor', 'boto')):
|
with scoped_cwd(os.path.join('vendor', 'boto')):
|
||||||
subprocess.call([sys.executable, 'setup.py', 'build'])
|
subprocess.call([sys.executable, 'setup.py', 'build'])
|
||||||
|
# On windows python assumes all script names end with .py, if we don't
|
||||||
|
# do so some modules like multiprocessing would break.
|
||||||
|
shutil.copy(os.path.join('bin', 's3put'), os.path.join('bin', 's3put.py'))
|
||||||
|
|
||||||
|
|
||||||
@contextlib.contextmanager
|
@contextlib.contextmanager
|
||||||
|
|
|
@ -216,7 +216,9 @@ def update_clang():
|
||||||
env['PATH']])
|
env['PATH']])
|
||||||
env['DEPOT_TOOLS_WIN_TOOLCHAIN'] = '0'
|
env['DEPOT_TOOLS_WIN_TOOLCHAIN'] = '0'
|
||||||
update = os.path.join(SRC_DIR, 'tools', 'clang', 'scripts', 'update.py')
|
update = os.path.join(SRC_DIR, 'tools', 'clang', 'scripts', 'update.py')
|
||||||
return subprocess.call([sys.executable, update, '--if-needed'], env=env)
|
download_gold = os.path.join(SRC_DIR, 'build', 'download_gold_plugin.py')
|
||||||
|
return (subprocess.call([sys.executable, update, '--if-needed'], env=env) or
|
||||||
|
subprocess.call([sys.executable, download_gold], env=env))
|
||||||
|
|
||||||
|
|
||||||
def run_gn(target_arch, defines):
|
def run_gn(target_arch, defines):
|
||||||
|
|
|
@ -84,6 +84,7 @@ def s3put(bucket, access_key, secret_key, prefix, key_prefix, files):
|
||||||
'--bucket', bucket,
|
'--bucket', bucket,
|
||||||
'--prefix', prefix,
|
'--prefix', prefix,
|
||||||
'--key_prefix', key_prefix,
|
'--key_prefix', key_prefix,
|
||||||
|
'--multipart',
|
||||||
'--grant', 'public-read'
|
'--grant', 'public-read'
|
||||||
] + files
|
] + files
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit f7574aa6cc2c819430c1f05e9a1a1a666ef8169b
|
Subproject commit c3b81eb115e469b9df1ff8c379d3208327da2c84
|
Загрузка…
Ссылка в новой задаче