| OLD | NEW |
| 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 |
| 11 import("//build/config/compiler/compiler.gni") | 11 import("//build/config/compiler/compiler.gni") |
| 12 import("//build/config/features.gni") | 12 import("//build/config/features.gni") |
| 13 import("//build/config/sanitizers/sanitizers.gni") | 13 import("//build/config/sanitizers/sanitizers.gni") |
| 14 import("//build/config/ui.gni") | 14 import("//build/config/ui.gni") |
| 15 import("//build_overrides/v8.gni") | 15 import("//build_overrides/v8.gni") |
| 16 import("//extensions/features/features.gni") | 16 import("//extensions/features/features.gni") |
| 17 import("//media/media_options.gni") | 17 import("//media/media_options.gni") |
| 18 import("//remoting/remoting_enable.gni") | 18 import("//remoting/remoting_enable.gni") |
| 19 import("//third_party/openh264/openh264_args.gni") | 19 import("//third_party/openh264/openh264_args.gni") |
| 20 import("//tools/ipc_fuzzer/ipc_fuzzer.gni") | 20 import("//tools/ipc_fuzzer/ipc_fuzzer.gni") |
| 21 import("//ui/ozone/ozone.gni") |
| 21 import("//v8/gni/v8.gni") | 22 import("//v8/gni/v8.gni") |
| 22 import("//v8/snapshot_toolchain.gni") | 23 import("//v8/snapshot_toolchain.gni") |
| 23 | 24 |
| 24 if (is_android) { | 25 if (is_android) { |
| 25 import("//build/config/android/config.gni") | 26 import("//build/config/android/config.gni") |
| 26 } | 27 } |
| 27 | 28 |
| 28 declare_args() { | 29 declare_args() { |
| 29 # A list of extra dependencies to add to the root target. This allows a | 30 # A list of extra dependencies to add to the root target. This allows a |
| 30 # checkout to add additional targets without explicitly changing any checked- | 31 # checkout to add additional targets without explicitly changing any checked- |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 } | 367 } |
| 367 | 368 |
| 368 if (use_ozone) { | 369 if (use_ozone) { |
| 369 deps += [ | 370 deps += [ |
| 370 "//ui/ozone", | 371 "//ui/ozone", |
| 371 "//ui/ozone:ozone_unittests", | 372 "//ui/ozone:ozone_unittests", |
| 372 "//ui/ozone/gl:ozone_gl_unittests", | 373 "//ui/ozone/gl:ozone_gl_unittests", |
| 373 ] | 374 ] |
| 374 } | 375 } |
| 375 | 376 |
| 376 if (use_x11) { | 377 if (use_x11 || ozone_platform_x11) { |
| 377 deps += [ "//tools/xdisplaycheck" ] | 378 deps += [ "//tools/xdisplaycheck" ] |
| 378 } | 379 } |
| 379 | 380 |
| 380 if (enable_configuration_policy) { | 381 if (enable_configuration_policy) { |
| 381 deps += [ "//components/policy:policy_templates" ] | 382 deps += [ "//components/policy:policy_templates" ] |
| 382 } | 383 } |
| 383 | 384 |
| 384 if (v8_use_external_startup_data) { | 385 if (v8_use_external_startup_data) { |
| 385 deps += [ "//gin:gin_v8_snapshot_fingerprint" ] | 386 deps += [ "//gin:gin_v8_snapshot_fingerprint" ] |
| 386 } | 387 } |
| (...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1078 assert(target_name != "") # Mark as used. | 1079 assert(target_name != "") # Mark as used. |
| 1079 sources = invoker.actual_sources | 1080 sources = invoker.actual_sources |
| 1080 assert( | 1081 assert( |
| 1081 sources == invoker.actual_sources, | 1082 sources == invoker.actual_sources, |
| 1082 "Do not use a platform name in your output directory (found \"$root_build_
dir\"). http://crbug.com/548283") | 1083 "Do not use a platform name in your output directory (found \"$root_build_
dir\"). http://crbug.com/548283") |
| 1083 } | 1084 } |
| 1084 | 1085 |
| 1085 assert_valid_out_dir("_unused") { | 1086 assert_valid_out_dir("_unused") { |
| 1086 actual_sources = [ "$root_build_dir/foo" ] | 1087 actual_sources = [ "$root_build_dir/foo" ] |
| 1087 } | 1088 } |
| OLD | NEW |