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

Side by Side Diff: BUILD.gn

Issue 1950003002: gn BUILD fixes for disabling enable_extensions and use_ash feature flags. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebasing on latest master Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | build/config/features.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 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 # This is the root build file for GN. GN will start processing by loading this 5 # This is the root build file for GN. GN will start processing by loading this
6 # file, and recursively load all dependencies until all dependencies are either 6 # file, and recursively load all dependencies until all dependencies are either
7 # resolved or known not to exist (which will cause the build to fail). So if 7 # resolved or known not to exist (which will cause the build to fail). So if
8 # you add a new build file, there must be some path of dependencies from this 8 # you add a new build file, there must be some path of dependencies from this
9 # file to your new one or GN won't know about it. 9 # file to your new one or GN won't know about it.
10 10
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 ] 136 ]
137 } 137 }
138 138
139 if (!is_ios && !is_android && !is_chromecast) { 139 if (!is_ios && !is_android && !is_chromecast) {
140 deps += [ 140 deps += [
141 "//chrome", 141 "//chrome",
142 "//chrome/test:browser_tests", 142 "//chrome/test:browser_tests",
143 "//chrome/test:interactive_ui_tests", 143 "//chrome/test:interactive_ui_tests",
144 "//chrome/test:sync_integration_tests", 144 "//chrome/test:sync_integration_tests",
145 "//chrome/test/chromedriver:chromedriver_unittests", 145 "//chrome/test/chromedriver:chromedriver_unittests",
146 "//extensions:extensions_browsertests",
147 "//extensions:extensions_unittests",
148 "//gpu/gles2_conform_support:gles2_conform_test", 146 "//gpu/gles2_conform_support:gles2_conform_test",
149 "//gpu/khronos_glcts_support:khronos_glcts_test", 147 "//gpu/khronos_glcts_support:khronos_glcts_test",
150 "//jingle:jingle_unittests", 148 "//jingle:jingle_unittests",
151 "//net:hpack_example_generator", 149 "//net:hpack_example_generator",
152 "//net:hpack_fuzz_mutator", 150 "//net:hpack_fuzz_mutator",
153 "//net:hpack_fuzz_wrapper", 151 "//net:hpack_fuzz_wrapper",
154 "//ppapi:ppapi_unittests", 152 "//ppapi:ppapi_unittests",
155 "//ppapi/examples/2d", 153 "//ppapi/examples/2d",
156 "//ppapi/examples/audio", 154 "//ppapi/examples/audio",
157 "//ppapi/examples/audio_input", 155 "//ppapi/examples/audio_input",
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 "//ui/touch_selection:ui_touch_selection_unittests", 233 "//ui/touch_selection:ui_touch_selection_unittests",
236 "//url/ipc:url_ipc_unittests", 234 "//url/ipc:url_ipc_unittests",
237 ] 235 ]
238 } else { 236 } else {
239 deps += [ "//ios:all" ] 237 deps += [ "//ios:all" ]
240 } 238 }
241 239
242 deps += root_extra_deps 240 deps += root_extra_deps
243 241
244 if (enable_extensions) { 242 if (enable_extensions) {
245 deps += [ "//extensions/shell:app_shell_unittests" ] 243 deps += [
244 "//extensions:extensions_browsertests",
245 "//extensions:extensions_unittests",
246 "//extensions/shell:app_shell",
247 "//extensions/shell:app_shell_unittests",
248 ]
246 } 249 }
247 250
248 if (enable_media_router) { 251 if (enable_media_router) {
249 deps += [ "//chrome/browser/media/router" ] 252 deps += [ "//chrome/browser/media/router" ]
250 } 253 }
251 254
252 if (enable_remoting) { 255 if (enable_remoting) {
253 deps += [ "//remoting:remoting_all" ] 256 deps += [ "//remoting:remoting_all" ]
254 } 257 }
255 258
256 if (toolkit_views) { 259 if (toolkit_views) {
257 deps += [ "//ui/views:views_unittests" ] 260 deps += [ "//ui/views:views_unittests" ]
258 } 261 }
259 262
260 if (use_aura) { 263 if (use_aura) {
261 deps += [ 264 deps += [
262 "//ash:ash_shell_with_content",
263 "//ash:ash_unittests",
264 "//ui/app_list:app_list_unittests", 265 "//ui/app_list:app_list_unittests",
265 "//ui/app_list/presenter:app_list_presenter_unittests", 266 "//ui/app_list/presenter:app_list_presenter_unittests",
266 "//ui/aura:aura_unittests", 267 "//ui/aura:aura_unittests",
267 "//ui/aura:demo", 268 "//ui/aura:demo",
268 "//ui/wm:wm_unittests", 269 "//ui/wm:wm_unittests",
269 ] 270 ]
271 if (use_ash) {
272 deps += [
273 "//ash:ash_shell_with_content",
274 "//ash:ash_unittests",
275 ]
276 }
270 } 277 }
271 278
272 if (use_ozone) { 279 if (use_ozone) {
273 deps += [ "//ui/ozone" ] 280 deps += [ "//ui/ozone" ]
274 } 281 }
275 282
276 if (use_x11) { 283 if (use_x11) {
277 deps += [ "//tools/xdisplaycheck" ] 284 deps += [ "//tools/xdisplaycheck" ]
278 } 285 }
279 286
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 "//net:stress_cache", 480 "//net:stress_cache",
474 "//net:tld_cleanup", 481 "//net:tld_cleanup",
475 "//ppapi:pepper_hash_for_uma", 482 "//ppapi:pepper_hash_for_uma",
476 "//ppapi:ppapi_perftests", 483 "//ppapi:ppapi_perftests",
477 "//third_party/angle/src/tests:angle_end2end_tests", 484 "//third_party/angle/src/tests:angle_end2end_tests",
478 "//third_party/leveldatabase:env_chromium_unittests", 485 "//third_party/leveldatabase:env_chromium_unittests",
479 "//third_party/libaddressinput:libaddressinput_unittests", 486 "//third_party/libaddressinput:libaddressinput_unittests",
480 ] 487 ]
481 } 488 }
482 489
483 if (enable_extensions) {
484 deps += [ "//extensions/shell:app_shell" ]
485 }
486
487 if (enable_nacl) { 490 if (enable_nacl) {
488 deps += [ "//components/nacl/loader:nacl_loader_unittests" ] 491 deps += [ "//components/nacl/loader:nacl_loader_unittests" ]
489 492
490 if (is_linux) { 493 if (is_linux) {
491 # TODO(dpranke): Figure out what platforms should actually have this. 494 # TODO(dpranke): Figure out what platforms should actually have this.
492 deps += [ 495 deps += [
493 "//components/nacl/loader:helper_nonsfi", 496 "//components/nacl/loader:helper_nonsfi",
494 "//components/nacl/loader:nacl_helper", 497 "//components/nacl/loader:nacl_helper",
495 "//components/nacl/loader:nacl_helper_nonsfi_unittests", 498 "//components/nacl/loader:nacl_helper_nonsfi_unittests",
496 ] 499 ]
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
940 assert(target_name != "") # Mark as used. 943 assert(target_name != "") # Mark as used.
941 sources = invoker.actual_sources 944 sources = invoker.actual_sources
942 assert( 945 assert(
943 sources == invoker.actual_sources, 946 sources == invoker.actual_sources,
944 "Do not use a platform name in your output directory (found \"$root_build_ dir\"). http://crbug.com/548283") 947 "Do not use a platform name in your output directory (found \"$root_build_ dir\"). http://crbug.com/548283")
945 } 948 }
946 949
947 assert_valid_out_dir("_unused") { 950 assert_valid_out_dir("_unused") {
948 actual_sources = [ "$root_build_dir/foo" ] 951 actual_sources = [ "$root_build_dir/foo" ]
949 } 952 }
OLDNEW
« no previous file with comments | « no previous file | build/config/features.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698