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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
580 } else if (!is_android && !is_ios) { | 581 } else if (!is_android && !is_ios) { |
581 deps += [ "//breakpad:symupload($host_toolchain)" ] | 582 deps += [ "//breakpad:symupload($host_toolchain)" ] |
582 } | 583 } |
583 if (is_chromecast) { | 584 if (is_chromecast) { |
584 deps += [ "//chromecast:cast_shell" ] | 585 deps += [ "//chromecast:cast_shell" ] |
585 } | 586 } |
586 | 587 |
587 if (is_ios || is_mac) { | 588 if (is_ios || is_mac) { |
588 deps += [ "//media/cast:cast_h264_vt_encoder_unittests" ] | 589 deps += [ "//media/cast:cast_h264_vt_encoder_unittests" ] |
589 } | 590 } |
| 591 |
| 592 if (use_openh264) { |
| 593 deps += [ |
| 594 "//third_party/openh264:common", |
| 595 "//third_party/openh264:encoder", |
| 596 "//third_party/openh264:processing", |
| 597 ] |
| 598 } |
590 } | 599 } |
591 | 600 |
592 group("gn_only") { | 601 group("gn_only") { |
593 testonly = true | 602 testonly = true |
594 | 603 |
595 deps = [] | 604 deps = [] |
596 | 605 |
597 if (!is_ios && !is_chromecast) { | 606 if (!is_ios && !is_chromecast) { |
598 deps += [ "//mandoline:all" ] | 607 deps += [ "//mandoline:all" ] |
599 } | 608 } |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
848 ] | 857 ] |
849 | 858 |
850 if (target_cpu == "x86") { | 859 if (target_cpu == "x86") { |
851 deps += [ "//chrome/tools/crash_service:crash_service_win64" ] | 860 deps += [ "//chrome/tools/crash_service:crash_service_win64" ] |
852 } | 861 } |
853 } else { | 862 } else { |
854 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ] | 863 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ] |
855 } | 864 } |
856 } | 865 } |
857 } | 866 } |
OLD | NEW |