build: fix building with enable_ppapi = false (#35988)
This commit is contained in:
parent
b6eadf2414
commit
eb97ce1931
2 changed files with 19 additions and 8 deletions
11
BUILD.gn
11
BUILD.gn
|
@ -404,9 +404,6 @@ source_set("electron_lib") {
|
||||||
"//media/mojo/mojom",
|
"//media/mojo/mojom",
|
||||||
"//net:extras",
|
"//net:extras",
|
||||||
"//net:net_resources",
|
"//net:net_resources",
|
||||||
"//ppapi/host",
|
|
||||||
"//ppapi/proxy",
|
|
||||||
"//ppapi/shared_impl",
|
|
||||||
"//printing/buildflags",
|
"//printing/buildflags",
|
||||||
"//services/device/public/cpp/geolocation",
|
"//services/device/public/cpp/geolocation",
|
||||||
"//services/device/public/cpp/hid",
|
"//services/device/public/cpp/hid",
|
||||||
|
@ -625,6 +622,14 @@ source_set("electron_lib") {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (enable_ppapi) {
|
||||||
|
deps += [
|
||||||
|
"//ppapi/host",
|
||||||
|
"//ppapi/proxy",
|
||||||
|
"//ppapi/shared_impl",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
if (enable_run_as_node) {
|
if (enable_run_as_node) {
|
||||||
sources += [
|
sources += [
|
||||||
"shell/app/node_main.cc",
|
"shell/app/node_main.cc",
|
||||||
|
|
|
@ -6,6 +6,7 @@ import("//build/config/ozone.gni")
|
||||||
import("//build/config/ui.gni")
|
import("//build/config/ui.gni")
|
||||||
import("//components/spellcheck/spellcheck_build_features.gni")
|
import("//components/spellcheck/spellcheck_build_features.gni")
|
||||||
import("//electron/buildflags/buildflags.gni")
|
import("//electron/buildflags/buildflags.gni")
|
||||||
|
import("//ppapi/buildflags/buildflags.gni")
|
||||||
import("//printing/buildflags/buildflags.gni")
|
import("//printing/buildflags/buildflags.gni")
|
||||||
import("//third_party/widevine/cdm/widevine.gni")
|
import("//third_party/widevine/cdm/widevine.gni")
|
||||||
|
|
||||||
|
@ -372,16 +373,21 @@ source_set("plugins") {
|
||||||
deps += [
|
deps += [
|
||||||
"//components/strings",
|
"//components/strings",
|
||||||
"//media:media_buildflags",
|
"//media:media_buildflags",
|
||||||
|
"//services/device/public/mojom",
|
||||||
|
"//skia",
|
||||||
|
"//storage/browser",
|
||||||
|
]
|
||||||
|
|
||||||
|
if (enable_ppapi) {
|
||||||
|
deps += [
|
||||||
"//ppapi/buildflags",
|
"//ppapi/buildflags",
|
||||||
"//ppapi/host",
|
"//ppapi/host",
|
||||||
"//ppapi/proxy",
|
"//ppapi/proxy",
|
||||||
"//ppapi/proxy:ipc",
|
"//ppapi/proxy:ipc",
|
||||||
"//ppapi/shared_impl",
|
"//ppapi/shared_impl",
|
||||||
"//services/device/public/mojom",
|
|
||||||
"//skia",
|
|
||||||
"//storage/browser",
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# This source set is just so we don't have to depend on all of //chrome/browser
|
# This source set is just so we don't have to depend on all of //chrome/browser
|
||||||
# You may have to add new files here during the upgrade if //chrome/browser/spellchecker
|
# You may have to add new files here during the upgrade if //chrome/browser/spellchecker
|
||||||
|
|
Loading…
Add table
Reference in a new issue