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

Side by Side Diff: BUILD.gn

Issue 2871033002: merge some duplicated conditions in gn_all (Closed)
Patch Set: Created 3 years, 7 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 | no next file » | 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 "//content/test:content_perftests", 158 "//content/test:content_perftests",
159 "//content/test:content_unittests", 159 "//content/test:content_unittests",
160 "//device:device_unittests", 160 "//device:device_unittests",
161 "//gpu:gpu_unittests", 161 "//gpu:gpu_unittests",
162 "//gpu/ipc/service:gpu_ipc_service_unittests", 162 "//gpu/ipc/service:gpu_ipc_service_unittests",
163 "//ipc:ipc_tests", 163 "//ipc:ipc_tests",
164 "//media:media_unittests", 164 "//media:media_unittests",
165 "//media/capture:capture_unittests", 165 "//media/capture:capture_unittests",
166 "//media/cast:cast_unittests", 166 "//media/cast:cast_unittests",
167 "//media/midi:midi_unittests", 167 "//media/midi:midi_unittests",
168 "//media/mojo:media_mojo_unittests",
168 "//mojo", 169 "//mojo",
169 "//mojo/common:mojo_common_unittests", 170 "//mojo/common:mojo_common_unittests",
170 "//mojo/edk/system:mojo_system_unittests", 171 "//mojo/edk/system:mojo_system_unittests",
171 "//mojo/edk/test:mojo_public_bindings_unittests", 172 "//mojo/edk/test:mojo_public_bindings_unittests",
172 "//mojo/edk/test:mojo_public_system_unittests", 173 "//mojo/edk/test:mojo_public_system_unittests",
173 "//net:net_perftests", 174 "//net:net_perftests",
175 "//services:service_unittests",
174 "//services/service_manager/public/cpp", 176 "//services/service_manager/public/cpp",
175 "//storage:storage_unittests", 177 "//storage:storage_unittests",
176 "//third_party/WebKit/Source/platform:blink_platform_unittests", 178 "//third_party/WebKit/Source/platform:blink_platform_unittests",
177 "//third_party/WebKit/Source/platform/heap:blink_heap_unittests", 179 "//third_party/WebKit/Source/platform/heap:blink_heap_unittests",
178 "//third_party/WebKit/Source/platform/wtf:wtf_unittests", 180 "//third_party/WebKit/Source/platform/wtf:wtf_unittests",
179 "//third_party/WebKit/Source/web:webkit_unit_tests", 181 "//third_party/WebKit/Source/web:webkit_unit_tests",
180 "//third_party/angle/src/tests:angle_end2end_tests", 182 "//third_party/angle/src/tests:angle_end2end_tests",
181 "//third_party/angle/src/tests:angle_unittests", 183 "//third_party/angle/src/tests:angle_unittests",
182 "//third_party/angle/src/tests:angle_white_box_tests", 184 "//third_party/angle/src/tests:angle_white_box_tests",
183 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)", 185 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)",
184 "//third_party/smhasher:pmurhash", 186 "//third_party/smhasher:pmurhash",
185 "//tools/imagediff($host_toolchain)", 187 "//tools/imagediff($host_toolchain)",
186 "//ui/display:display_unittests", 188 "//ui/display:display_unittests",
187 "//ui/events:events_unittests", 189 "//ui/events:events_unittests",
188 "//ui/gl:gl_unittests", 190 "//ui/gl:gl_unittests",
189 "//ui/latency:latency_unittests", 191 "//ui/latency:latency_unittests",
190 "//ui/touch_selection:ui_touch_selection_unittests", 192 "//ui/touch_selection:ui_touch_selection_unittests",
191 "//url/ipc:url_ipc_unittests", 193 "//url/ipc:url_ipc_unittests",
194 "//v8:gn_all",
192 ] 195 ]
193 } else { 196 } else {
194 deps += [ "//ios:all" ] 197 deps += [ "//ios:all" ]
195 } 198 }
196 199
197 deps += root_extra_deps 200 deps += root_extra_deps
198 201
199 if (enable_extensions) { 202 if (enable_extensions) {
200 deps += [ "//extensions/shell:app_shell_unittests" ] 203 deps += [ "//extensions/shell:app_shell_unittests" ]
201 } 204 }
(...skipping 23 matching lines...) Expand all
225 "//ui/aura:aura_unittests", 228 "//ui/aura:aura_unittests",
226 "//ui/aura:demo", 229 "//ui/aura:demo",
227 "//ui/wm:wm_unittests", 230 "//ui/wm:wm_unittests",
228 ] 231 ]
229 } 232 }
230 233
231 if (use_ozone) { 234 if (use_ozone) {
232 deps += [ 235 deps += [
233 "//ui/ozone", 236 "//ui/ozone",
234 "//ui/ozone:ozone_unittests", 237 "//ui/ozone:ozone_unittests",
238 "//ui/ozone/demo",
235 "//ui/ozone/gl:ozone_gl_unittests", 239 "//ui/ozone/gl:ozone_gl_unittests",
236 ] 240 ]
237 } 241 }
238 242
239 if (use_x11 || ozone_platform_x11) { 243 if (use_x11 || ozone_platform_x11) {
240 deps += [ "//tools/xdisplaycheck" ] 244 deps += [ "//tools/xdisplaycheck" ]
241 } 245 }
242 246
243 if (is_win) { 247 if (is_win) {
244 deps += [ 248 deps += [
245 "//chrome/installer/gcapi", 249 "//chrome/installer/gcapi",
246 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy", 250 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
247 ] 251 ]
248 } 252 }
249 253
250 if (is_mac) { 254 if (is_mac) {
251 deps += [ "//chrome/installer/gcapi_mac:gcapi_example" ] 255 deps += [ "//chrome/installer/gcapi_mac:gcapi_example" ]
252 } 256 }
253 257
254 if (is_android) { 258 if (is_android) {
255 deps += [ 259 deps += [
256 "//base:base_junit_tests", 260 "//base:base_junit_tests",
257 "//base/android/linker:chromium_android_linker", 261 "//base/android/linker:chromium_android_linker",
258 "//build/android/gyp/test:hello_world", 262 "//build/android/gyp/test:hello_world",
263 "//build/android/gyp/test:hello_world",
259 "//chrome/android/webapk/shell_apk:webapk", 264 "//chrome/android/webapk/shell_apk:webapk",
265 "//chrome/test/vr/perf:motopho_latency_test",
260 "//components/invalidation/impl:components_invalidation_impl_junit_tests", 266 "//components/invalidation/impl:components_invalidation_impl_junit_tests",
261 "//components/policy/android:components_policy_junit_tests", 267 "//components/policy/android:components_policy_junit_tests",
262 "//content/public/android:content_junit_tests", 268 "//content/public/android:content_junit_tests",
263 "//content/shell/android:content_shell_apk", 269 "//content/shell/android:content_shell_apk",
264 "//media/gpu:video_decode_accelerator_unittest", 270 "//media/gpu:video_decode_accelerator_unittest",
265 "//net/android:net_junit_tests", 271 "//net/android:net_junit_tests",
266 "//testing/android/junit:junit_unit_tests", 272 "//testing/android/junit:junit_unit_tests",
267 "//third_party/android_async_task:android_async_task_java", 273 "//third_party/android_async_task:android_async_task_java",
268 "//third_party/errorprone:chromium_errorprone", 274 "//third_party/errorprone:chromium_errorprone",
269 "//third_party/smhasher:murmurhash3", 275 "//third_party/smhasher:murmurhash3",
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 } 566 }
561 567
562 if (use_openh264) { 568 if (use_openh264) {
563 deps += [ 569 deps += [
564 "//third_party/openh264:common", 570 "//third_party/openh264:common",
565 "//third_party/openh264:encoder", 571 "//third_party/openh264:encoder",
566 "//third_party/openh264:processing", 572 "//third_party/openh264:processing",
567 ] 573 ]
568 } 574 }
569 575
570 if (!is_ios) {
571 deps += [
572 "//media/mojo:media_mojo_unittests",
573 "//services:service_unittests",
574 ]
575 }
576
577 if (!is_android && !is_ios) { 576 if (!is_android && !is_ios) {
578 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ] 577 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ]
579 } 578 }
580 579
581 if (!is_android && !is_ios && !is_chromeos) { 580 if (!is_android && !is_ios && !is_chromeos) {
582 deps += [ "//components/proximity_auth:proximity_auth_unittests" ] 581 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
583 } 582 }
584 583
585 if (is_win || is_linux) { 584 if (is_win || is_linux) {
586 deps += [ 585 deps += [
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
651 deps += [ 650 deps += [
652 "//native_client/src/trusted/platform_qualify:vcpuid", 651 "//native_client/src/trusted/platform_qualify:vcpuid",
653 "//third_party/libjpeg_turbo:simd_asm", 652 "//third_party/libjpeg_turbo:simd_asm",
654 ] 653 ]
655 } 654 }
656 if (is_linux && current_toolchain == host_toolchain) { 655 if (is_linux && current_toolchain == host_toolchain) {
657 deps += [ "//v8:v8_shell" ] 656 deps += [ "//v8:v8_shell" ]
658 } 657 }
659 } 658 }
660 659
661 if (use_ozone) {
662 deps += [ "//ui/ozone/demo" ]
663 }
664
665 if ((is_linux && !is_chromeos && !is_chromecast) || (is_win && use_drfuzz) || 660 if ((is_linux && !is_chromeos && !is_chromecast) || (is_win && use_drfuzz) ||
666 (use_libfuzzer && is_mac)) { 661 (use_libfuzzer && is_mac)) {
667 deps += [ 662 deps += [
668 "//testing/libfuzzer/fuzzers", 663 "//testing/libfuzzer/fuzzers",
669 "//testing/libfuzzer/tests:libfuzzer_tests", 664 "//testing/libfuzzer/tests:libfuzzer_tests",
670 "//third_party/icu/fuzzers", 665 "//third_party/icu/fuzzers",
671 "//third_party/qcms:fuzzers", 666 "//third_party/qcms:fuzzers",
672 ] 667 ]
673 668
674 # TODO(miu): Remove this dependency once the build configuration in 669 # TODO(miu): Remove this dependency once the build configuration in
675 # chrome/browser/BUILD.gn is migrated to chrome/browser/media/BUILD.gn. 670 # chrome/browser/BUILD.gn is migrated to chrome/browser/media/BUILD.gn.
676 # This dependency here only exists to allow GN to discover the 671 # This dependency here only exists to allow GN to discover the
677 # fuzzer_test target there. 672 # fuzzer_test target there.
678 deps += [ "//chrome/browser/media:cast_remoting_connector_fuzzer" ] 673 deps += [ "//chrome/browser/media:cast_remoting_connector_fuzzer" ]
679 } 674 }
680 675
681 if (enable_nacl) { 676 if (enable_nacl) {
682 deps += [ "//native_client_sdk/src:nacl_core_sdk" ] 677 deps += [ "//native_client_sdk/src:nacl_core_sdk" ]
683 } 678 }
684 679
685 if (is_android) {
686 deps += [
687 "//build/android/gyp/test:hello_world",
688 "//chrome/test/vr/perf:motopho_latency_test",
689 ]
690 }
691
692 if (is_linux && use_ozone) { 680 if (is_linux && use_ozone) {
693 deps += [ 681 deps += [
694 "//headless", 682 "//headless",
695 "//headless:headless_tests", 683 "//headless:headless_tests",
696 ] 684 ]
697 } 685 }
698
699 if (!is_ios) {
700 deps += [ "//v8:gn_all" ]
701 }
702 } 686 }
703 687
704 # TODO(GYP_GONE): This target exists for compatibility with GYP, specifically 688 # TODO(GYP_GONE): This target exists for compatibility with GYP, specifically
705 # for the iOS bots and the official builders. 689 # for the iOS bots and the official builders.
706 group("All") { 690 group("All") {
707 testonly = true 691 testonly = true
708 692
709 deps = [ 693 deps = [
710 ":gn_all", 694 ":gn_all",
711 ] 695 ]
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 assert(target_name != "") # Mark as used. 1055 assert(target_name != "") # Mark as used.
1072 sources = invoker.actual_sources 1056 sources = invoker.actual_sources
1073 assert( 1057 assert(
1074 sources == invoker.actual_sources, 1058 sources == invoker.actual_sources,
1075 "Do not use a platform name in your output directory (found \"$root_build_ dir\"). http://crbug.com/548283") 1059 "Do not use a platform name in your output directory (found \"$root_build_ dir\"). http://crbug.com/548283")
1076 } 1060 }
1077 1061
1078 assert_valid_out_dir("_unused") { 1062 assert_valid_out_dir("_unused") {
1079 actual_sources = [ "$root_build_dir/foo" ] 1063 actual_sources = [ "$root_build_dir/foo" ]
1080 } 1064 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698