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/features.gni") | 11 import("//build/config/features.gni") |
12 import("//build/config/sanitizers/sanitizers.gni") | 12 import("//build/config/sanitizers/sanitizers.gni") |
13 import("//build/config/ui.gni") | 13 import("//build/config/ui.gni") |
14 import("//build_overrides/v8.gni") | 14 import("//build_overrides/v8.gni") |
15 import("//media/media_options.gni") | 15 import("//media/media_options.gni") |
| 16 import("//third_party/openh264/openh264_args.gni") |
16 | 17 |
17 if (is_android) { | 18 if (is_android) { |
18 import("//build/config/android/config.gni") | 19 import("//build/config/android/config.gni") |
19 } | 20 } |
20 | 21 |
21 declare_args() { | 22 declare_args() { |
22 # A list of extra dependencies to add to the root target. This allows a | 23 # A list of extra dependencies to add to the root target. This allows a |
23 # checkout to add additional targets without explicitly changing any checked- | 24 # checkout to add additional targets without explicitly changing any checked- |
24 # in files. | 25 # in files. |
25 root_extra_deps = [] | 26 root_extra_deps = [] |
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 ] | 580 ] |
580 } else if (!is_android && !is_ios) { | 581 } else if (!is_android && !is_ios) { |
581 deps += [ | 582 deps += [ |
582 "//breakpad:symupload($host_toolchain)", | 583 "//breakpad:symupload($host_toolchain)", |
583 "//media/cast:cast_unittests", | 584 "//media/cast:cast_unittests", |
584 ] | 585 ] |
585 } | 586 } |
586 if (is_chromecast) { | 587 if (is_chromecast) { |
587 deps += [ "//chromecast:cast_shell" ] | 588 deps += [ "//chromecast:cast_shell" ] |
588 } | 589 } |
| 590 |
| 591 if (use_openh264) { |
| 592 deps += [ |
| 593 "//third_party/openh264:openh264_common", |
| 594 "//third_party/openh264:openh264_processing", |
| 595 "//third_party/openh264:openh264_encoder", |
| 596 "//third_party/openh264:openh264_decoder", |
| 597 ] |
| 598 } |
589 } | 599 } |
590 | 600 |
591 group("gn_only") { | 601 group("gn_only") { |
592 testonly = true | 602 testonly = true |
593 | 603 |
594 deps = [] | 604 deps = [] |
595 | 605 |
596 if (!is_ios && !is_chromecast) { | 606 if (!is_ios && !is_chromecast) { |
597 deps += [ "//mandoline:all" ] | 607 deps += [ "//mandoline:all" ] |
598 } | 608 } |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
840 if (target_cpu == "x86") { | 850 if (target_cpu == "x86") { |
841 deps += [ | 851 deps += [ |
842 # "//content/shell:crash_service_win64", TODO(GYP): crbug.com/537009 | 852 # "//content/shell:crash_service_win64", TODO(GYP): crbug.com/537009 |
843 ] | 853 ] |
844 } | 854 } |
845 } else { | 855 } else { |
846 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ] | 856 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ] |
847 } | 857 } |
848 } | 858 } |
849 } | 859 } |
OLD | NEW |