OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//build/config/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//build/buildflag_header.gni") | |
8 import("//content/renderer/renderer.gni") | 7 import("//content/renderer/renderer.gni") |
9 import("//media/media_options.gni") | 8 import("//media/media_options.gni") |
10 import("//third_party/webrtc/build/webrtc.gni") | |
11 | 9 |
12 source_set("renderer") { | 10 source_set("renderer") { |
13 # Only the public target should depend on this. All other targets (even | 11 # Only the public target should depend on this. All other targets (even |
14 # internal content ones) should depend on the public one. | 12 # internal content ones) should depend on the public one. |
15 visibility = [ "//content/public/renderer:renderer_sources" ] | 13 visibility = [ "//content/public/renderer:renderer_sources" ] |
16 | 14 |
17 sources = rebase_path(content_renderer_gypi_values.private_renderer_sources, | 15 sources = rebase_path(content_renderer_gypi_values.private_renderer_sources, |
18 ".", | 16 ".", |
19 "//content") | 17 "//content") |
20 | 18 |
21 configs += [ | 19 configs += [ |
22 "//content:content_implementation", | 20 "//content:content_implementation", |
23 "//build/config/compiler:no_size_t_to_int_warning", | 21 "//build/config/compiler:no_size_t_to_int_warning", |
24 "//content/public/common:mojo_shell_client", | 22 "//content/public/common:mojo_shell_client", |
25 ] | 23 ] |
26 defines = [] | 24 defines = [] |
27 | 25 |
28 deps = [ | 26 deps = [ |
29 ":renderer_features", | |
30 "//base:i18n", | 27 "//base:i18n", |
31 "//cc", | 28 "//cc", |
32 "//cc/blink", | 29 "//cc/blink", |
33 "//cc/proto", | 30 "//cc/proto", |
34 "//cc/surfaces", | 31 "//cc/surfaces", |
35 "//cc/surfaces:surface_id", | 32 "//cc/surfaces:surface_id", |
36 "//components/scheduler:scheduler", | 33 "//components/scheduler:scheduler", |
37 "//components/url_formatter", | 34 "//components/url_formatter", |
38 "//components/webusb", | 35 "//components/webusb", |
39 "//content:resources", | 36 "//content:resources", |
40 "//content/common:mojo_bindings", | 37 "//content/common:mojo_bindings", |
41 "//content/public/child:child_sources", | 38 "//content/public/child:child_sources", |
| 39 "//content/public/common:common_features", |
42 "//content/public/common:common_sources", | 40 "//content/public/common:common_sources", |
| 41 "//content/public/common:feature_h264_with_openh264_ffmpeg", |
43 "//content/public/common:mojo_bindings", | 42 "//content/public/common:mojo_bindings", |
44 "//crypto:platform", | 43 "//crypto:platform", |
45 "//device/battery:mojo_bindings", | 44 "//device/battery:mojo_bindings", |
46 "//device/bluetooth", | 45 "//device/bluetooth", |
47 "//device/usb/public/interfaces", | 46 "//device/usb/public/interfaces", |
48 "//device/vibration:mojo_bindings", | 47 "//device/vibration:mojo_bindings", |
49 "//gin", | 48 "//gin", |
50 "//gpu", | 49 "//gpu", |
51 "//gpu/blink", | 50 "//gpu/blink", |
52 "//gpu/command_buffer/client:gles2_interface", | 51 "//gpu/command_buffer/client:gles2_interface", |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 } | 236 } |
238 | 237 |
239 if (use_seccomp_bpf) { | 238 if (use_seccomp_bpf) { |
240 defines += [ "USE_SECCOMP_BPF" ] | 239 defines += [ "USE_SECCOMP_BPF" ] |
241 } | 240 } |
242 | 241 |
243 if (use_ozone) { | 242 if (use_ozone) { |
244 deps += [ "//ui/ozone" ] | 243 deps += [ "//ui/ozone" ] |
245 } | 244 } |
246 } | 245 } |
247 | |
248 buildflag_header("renderer_features") { | |
249 header = "renderer_features.h" | |
250 | |
251 flags = [ "RTC_USE_H264=$rtc_use_h264" ] | |
252 } | |
OLD | NEW |