OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//content/browser/browser.gni") | 7 import("//content/browser/browser.gni") |
8 import("//media/media_options.gni") | 8 import("//media/media_options.gni") |
9 import("//mojo/public/mojo_application_manifest.gni") | |
10 | 9 |
11 source_set("browser") { | 10 source_set("browser") { |
12 # Only the public target should depend on this. All other targets (even | 11 # Only the public target should depend on this. All other targets (even |
13 # internal content ones) should depend on the public one. | 12 # internal content ones) should depend on the public one. |
14 visibility = [ | 13 visibility = [ |
15 ":for_content_tests", # See top of //content/BUILD.gn for why. | 14 ":for_content_tests", # See top of //content/BUILD.gn for why. |
16 "//content/public/browser:browser_sources", | 15 "//content/public/browser:browser_sources", |
17 ] | 16 ] |
18 | 17 |
19 configs += [ | 18 configs += [ |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 "//ui/gfx/geometry", | 113 "//ui/gfx/geometry", |
115 "//ui/gl", | 114 "//ui/gl", |
116 "//ui/native_theme", | 115 "//ui/native_theme", |
117 "//ui/resources", | 116 "//ui/resources", |
118 "//ui/shell_dialogs", | 117 "//ui/shell_dialogs", |
119 "//ui/snapshot", | 118 "//ui/snapshot", |
120 "//ui/surface", | 119 "//ui/surface", |
121 "//ui/touch_selection", | 120 "//ui/touch_selection", |
122 ] | 121 ] |
123 | 122 |
124 data_deps = [ | |
125 ":chrome_manifest", | |
126 ":chrome_renderer_manifest", | |
127 ] | |
128 | |
129 sources = rebase_path(content_browser_gypi_values.private_browser_sources, | 123 sources = rebase_path(content_browser_gypi_values.private_browser_sources, |
130 ".", | 124 ".", |
131 "//content") | 125 "//content") |
132 | 126 |
133 # TODO(GYP) these generated files are listed as sources in content_browser. | 127 # TODO(GYP) these generated files are listed as sources in content_browser. |
134 # This is a bit suspicious. The GN grit template will make a source set | 128 # This is a bit suspicious. The GN grit template will make a source set |
135 # containing the generated code so it should be sufficient to just depend | 129 # containing the generated code so it should be sufficient to just depend |
136 # on the grit rule. But maybe some of these will need to be added? | 130 # on the grit rule. But maybe some of these will need to be added? |
137 # | 131 # |
138 # Need this annoying rebase_path call to match what happened with the | 132 # Need this annoying rebase_path call to match what happened with the |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 | 524 |
531 # See comment at the top of //content/BUILD.gn for how this works. | 525 # See comment at the top of //content/BUILD.gn for how this works. |
532 group("for_content_tests") { | 526 group("for_content_tests") { |
533 visibility = [ "//content/test/*" ] | 527 visibility = [ "//content/test/*" ] |
534 if (!is_component_build) { | 528 if (!is_component_build) { |
535 public_deps = [ | 529 public_deps = [ |
536 ":browser", | 530 ":browser", |
537 ] | 531 ] |
538 } | 532 } |
539 } | 533 } |
540 | |
541 mojo_application_manifest("chrome_manifest") { | |
542 type = "exe" | |
543 application_name = "chrome" | |
544 source = "mojo/chrome_manifest.json" | |
545 } | |
546 | |
547 mojo_application_manifest("chrome_renderer_manifest") { | |
548 type = "exe" | |
549 application_name = "chrome_renderer" | |
550 source = "mojo/chrome_renderer_manifest.json" | |
551 } | |
OLD | NEW |