Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1178)

Unified Diff: content/app/BUILD.gn

Issue 554393009: Make chrome GN build work in component mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undo gyp changes Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/BUILD.gn ('k') | content/browser/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/app/BUILD.gn
diff --git a/content/app/BUILD.gn b/content/app/BUILD.gn
index f636d9f3735c42effbf1d52958ebc64f0d1de25e..d761c4fa172b6a5b47a03a7ef1d20606aaa48cd9 100644
--- a/content/app/BUILD.gn
+++ b/content/app/BUILD.gn
@@ -25,7 +25,7 @@ content_app_deps = [
# picking the allocator.
"//base/allocator",
"//content:export",
- "//content/public/common",
+ "//content/public/common:common_sources",
"//crypto",
"//ui/base",
"//ui/gfx",
@@ -63,55 +63,41 @@ content_app_extra_configs = [
"//content:content_implementation",
]
-if (is_component_build) {
- source_set("app") {
- sources = content_app_sources
- configs += content_app_extra_configs
- deps = content_app_deps
- }
+# This includes the app sources for both the browser and child processes.
+source_set("both") {
+ # Only the public target should depend on this. All other targets (even
+ # internal content ones) should depend on the public one.
+ visibility = [ "//content/public/app:*" ]
- # In the component build, all of these app targets redirect to the content
- # component. The content component in turn references the "app" target above.
- group("browser") {
- deps = [ "//content" ]
- }
- group("child") {
- deps = [ "//content" ]
- }
- group("both") {
- deps = [ "//content" ]
- }
-} else {
- # Non-component build. In this case, we have different versions of
- # "content/app" for the browser and child process.
+ sources = content_app_sources
+ configs += content_app_extra_configs
+ deps = content_app_deps
+}
- # TODO(GYP) enable chrome_multiple_dll support
- is_chrome_multiple_dll = false
+# TODO(GYP) enable chrome_multiple_dll support
+is_chrome_multiple_dll = false
+
+if (is_chrome_multiple_dll) {
+ # It doesn't make sense to do the browser/child dll split in component mode.
+ assert(!is_component_build)
source_set("browser") {
+ visibility = [ "//content/public/app:browser" ]
+
sources = content_app_sources
configs += content_app_extra_configs
deps = content_app_deps
- if (is_chrome_multiple_dll) {
- defines += [ "CHROME_MULTIPLE_DLL_BROWSER" ]
- }
+ defines += [ "CHROME_MULTIPLE_DLL_BROWSER" ]
}
source_set("child") {
- sources = content_app_sources
- configs += content_app_extra_configs
- deps = content_app_deps
-
- if (is_chrome_multiple_dll) {
- defines += [ "CHROME_MULTIPLE_DLL_CHILD" ]
- }
- }
+ visibility = [ "//content/public/app:child" ]
- # Includes both browser and child process app sources.
- source_set("both") {
sources = content_app_sources
configs += content_app_extra_configs
deps = content_app_deps
+
+ defines += [ "CHROME_MULTIPLE_DLL_CHILD" ]
}
}
« no previous file with comments | « content/BUILD.gn ('k') | content/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698