Split webkitcore into multiple libs

This commit is contained in:
Cheng Zhao 2017-09-28 15:07:59 +09:00
Родитель 135b72e620
Коммит 2be356f8db
2 изменённых файлов: 56 добавлений и 11 удалений

Просмотреть файл

@ -219,8 +219,9 @@ if (is_electron_build && !is_component_build) {
":angle", ":angle",
":pdfium", ":pdfium",
":webkit", ":webkit",
":webkitcore",
":webkitbindings", ":webkitbindings",
":webkitcorecore",
":webkitcoreremainings",
":webkitmodules", ":webkitmodules",
":webkitwtf", ":webkitwtf",
":webrtc", ":webrtc",
@ -324,14 +325,6 @@ if (is_electron_build && !is_component_build) {
} }
} }
static_library("webkitcore") {
complete_static_lib = true
sources = []
if (defined(obj_webkitcore)) {
sources += obj_webkitcore
}
}
static_library("webkitbindings") { static_library("webkitbindings") {
complete_static_lib = true complete_static_lib = true
sources = [] sources = []
@ -340,6 +333,22 @@ if (is_electron_build && !is_component_build) {
} }
} }
static_library("webkitcorecore") {
complete_static_lib = true
sources = []
if (defined(obj_webkitcorecore)) {
sources += obj_webkitcorecore
}
}
static_library("webkitcoreremainings") {
complete_static_lib = true
sources = []
if (defined(obj_webkitcoreremainings)) {
sources += obj_webkitcoreremainings
}
}
static_library("webkitmodules") { static_library("webkitmodules") {
complete_static_lib = true complete_static_lib = true
sources = [] sources = []

Просмотреть файл

@ -263,9 +263,45 @@ with open(args.out, 'w') as out:
gen_list( gen_list(
out, out,
"obj_webkitcore", "obj_webkitcorecore",
[ [
"third_party/WebKit/Source/core", "third_party/WebKit/Source/core/core",
"third_party/WebKit/Source/core/core_generated",
])
gen_list(
out,
"obj_webkitcoreremainings",
[
"third_party/WebKit/Source/core/animation",
"third_party/WebKit/Source/core/clipboard",
"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",
"third_party/WebKit/Source/core/html",
"third_party/WebKit/Source/core/imagebitmap",
"third_party/WebKit/Source/core/input",
"third_party/WebKit/Source/core/inspector",
"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",
"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(