[email protected] | df3ecfde | 2014-05-20 21:52:34 | [diff] [blame] | 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 |
| 3 | # found in the LICENSE file. |
| 4 | |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 5 | import("//build/config/features.gni") |
| 6 | import("//build/config/ui.gni") |
[email protected] | df3ecfde | 2014-05-20 21:52:34 | [diff] [blame] | 7 | import("//content/common/common.gni") |
blundell | 70fb54767 | 2015-01-19 17:18:33 | [diff] [blame] | 8 | import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") |
[email protected] | df3ecfde | 2014-05-20 21:52:34 | [diff] [blame] | 9 | |
dpranke | 4327621 | 2015-02-20 02:55:19 | [diff] [blame] | 10 | if (is_chromeos && current_cpu != "arm") { |
mukai | f7571f3 | 2014-09-30 19:19:10 | [diff] [blame] | 11 | action("libva_generate_stubs") { |
| 12 | extra_header = "gpu/media/va_stub_header.fragment" |
| 13 | |
| 14 | script = "../../tools/generate_stubs/generate_stubs.py" |
scottmg | 7afc409 | 2014-12-03 19:22:42 | [diff] [blame] | 15 | sources = [ |
| 16 | "gpu/media/va.sigs", |
| 17 | ] |
| 18 | inputs = [ |
| 19 | extra_header, |
| 20 | ] |
lionel.g.landwerlin | 2c653de3 | 2014-12-25 19:05:02 | [diff] [blame] | 21 | if (use_x11) { |
| 22 | sources += [ "gpu/media/va_x11.sigs" ] |
| 23 | } |
lionel.g.landwerlin | b056abc | 2015-01-02 23:50:52 | [diff] [blame] | 24 | if (use_ozone) { |
| 25 | sources += [ "gpu/media/va_drm.sigs" ] |
| 26 | } |
mukai | f7571f3 | 2014-09-30 19:19:10 | [diff] [blame] | 27 | stubs_filename_root = "va_stubs" |
| 28 | |
| 29 | outputs = [ |
| 30 | "$target_gen_dir/gpu/media/$stubs_filename_root.cc", |
| 31 | "$target_gen_dir/gpu/media/$stubs_filename_root.h", |
| 32 | ] |
| 33 | args = [ |
scottmg | 7afc409 | 2014-12-03 19:22:42 | [diff] [blame] | 34 | "-i", |
| 35 | rebase_path("$target_gen_dir/gpu/media", root_build_dir), |
| 36 | "-o", |
| 37 | rebase_path("$target_gen_dir/gpu/media", root_build_dir), |
| 38 | "-t", |
| 39 | "posix_stubs", |
| 40 | "-e", |
| 41 | rebase_path(extra_header, root_build_dir), |
| 42 | "-s", |
| 43 | stubs_filename_root, |
| 44 | "-p", |
| 45 | "content/common/gpu/media", |
mukai | f7571f3 | 2014-09-30 19:19:10 | [diff] [blame] | 46 | ] |
| 47 | |
| 48 | args += rebase_path(sources, root_build_dir) |
| 49 | } |
| 50 | } |
| 51 | |
henryhsu | 5159267 | 2015-02-08 05:01:00 | [diff] [blame] | 52 | if (is_chromeos && use_v4lplugin) { |
| 53 | action("libv4l2_generate_stubs") { |
| 54 | extra_header = "gpu/media/v4l2_stub_header.fragment" |
| 55 | |
| 56 | script = "../../tools/generate_stubs/generate_stubs.py" |
| 57 | sources = [ |
| 58 | "gpu/media/v4l2.sig", |
| 59 | ] |
| 60 | inputs = [ |
| 61 | extra_header, |
| 62 | ] |
| 63 | stubs_filename_root = "v4l2_stubs" |
| 64 | |
| 65 | outputs = [ |
| 66 | "$target_gen_dir/gpu/media/$stubs_filename_root.cc", |
| 67 | "$target_gen_dir/gpu/media/$stubs_filename_root.h", |
| 68 | ] |
| 69 | args = [ |
| 70 | "-i", |
| 71 | rebase_path("$target_gen_dir/gpu/media", root_build_dir), |
| 72 | "-o", |
| 73 | rebase_path("$target_gen_dir/gpu/media", root_build_dir), |
| 74 | "-t", |
| 75 | "posix_stubs", |
| 76 | "-e", |
| 77 | rebase_path(extra_header, root_build_dir), |
| 78 | "-s", |
| 79 | stubs_filename_root, |
| 80 | "-p", |
| 81 | "content/common/gpu/media", |
| 82 | ] |
| 83 | |
| 84 | args += rebase_path(sources, root_build_dir) |
| 85 | } |
| 86 | } |
| 87 | |
dpranke | 380390f | 2014-11-21 06:08:53 | [diff] [blame] | 88 | if (is_mac) { |
| 89 | action("libvt_generate_stubs") { |
| 90 | extra_header = "gpu/media/vt_stubs_header.fragment" |
| 91 | |
| 92 | script = "../../tools/generate_stubs/generate_stubs.py" |
scottmg | 7afc409 | 2014-12-03 19:22:42 | [diff] [blame] | 93 | sources = [ |
| 94 | "gpu/media/vt.sig", |
| 95 | ] |
| 96 | inputs = [ |
| 97 | extra_header, |
| 98 | ] |
dpranke | 380390f | 2014-11-21 06:08:53 | [diff] [blame] | 99 | stubs_filename_root = "vt_stubs" |
| 100 | |
| 101 | outputs = [ |
| 102 | "$target_gen_dir/gpu/media/$stubs_filename_root.cc", |
| 103 | "$target_gen_dir/gpu/media/$stubs_filename_root.h", |
| 104 | ] |
| 105 | args = [ |
scottmg | 7afc409 | 2014-12-03 19:22:42 | [diff] [blame] | 106 | "-i", |
| 107 | rebase_path("$target_gen_dir/gpu/media", root_build_dir), |
| 108 | "-o", |
| 109 | rebase_path("$target_gen_dir/gpu/media", root_build_dir), |
| 110 | "-t", |
| 111 | "posix_stubs", |
| 112 | "-e", |
| 113 | rebase_path(extra_header, root_build_dir), |
| 114 | "-s", |
| 115 | stubs_filename_root, |
| 116 | "-p", |
| 117 | "content/common/gpu/media", |
dpranke | 380390f | 2014-11-21 06:08:53 | [diff] [blame] | 118 | ] |
| 119 | |
| 120 | args += rebase_path(sources, root_build_dir) |
| 121 | } |
| 122 | } |
| 123 | |
[email protected] | df3ecfde | 2014-05-20 21:52:34 | [diff] [blame] | 124 | source_set("common") { |
Brett Wilson | 8f132304 | 2014-09-11 16:58:56 | [diff] [blame] | 125 | # Only the public target should depend on this. All other targets (even |
| 126 | # internal content ones) should depend on the public one. |
| 127 | visibility = [ "//content/public/common:common_sources" ] |
[email protected] | df3ecfde | 2014-05-20 21:52:34 | [diff] [blame] | 128 | |
| 129 | sources = rebase_path(content_common_gypi_values.private_common_sources, |
scottmg | 7afc409 | 2014-12-03 19:22:42 | [diff] [blame] | 130 | ".", |
| 131 | "//content") |
[email protected] | df3ecfde | 2014-05-20 21:52:34 | [diff] [blame] | 132 | |
brettw | 1deb76bc | 2015-02-18 19:28:20 | [diff] [blame] | 133 | configs += [ |
| 134 | "//content:content_implementation", |
| 135 | "//build/config/compiler:no_size_t_to_int_warning", |
| 136 | ] |
[email protected] | df3ecfde | 2014-05-20 21:52:34 | [diff] [blame] | 137 | |
Brett Wilson | e5389527 | 2014-09-23 23:41:46 | [diff] [blame] | 138 | public_deps = [ |
| 139 | "//gpu/command_buffer/common", |
| 140 | "//third_party/WebKit/public:blink_headers", |
| 141 | ] |
[email protected] | df3ecfde | 2014-05-20 21:52:34 | [diff] [blame] | 142 | deps = [ |
| 143 | "//base", |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 144 | "//build/util:webkit_version", |
[email protected] | df3ecfde | 2014-05-20 21:52:34 | [diff] [blame] | 145 | "//components/tracing", |
zhenw | 062a9452 | 2015-06-22 20:55:28 | [diff] [blame] | 146 | "//components/tracing:startup_tracing", |
jbroman | cba3d2fe | 2014-09-16 01:04:24 | [diff] [blame] | 147 | "//gpu/command_buffer/client:gles2_interface", |
brettw | 542f753 | 2015-04-06 22:35:45 | [diff] [blame] | 148 | "//gpu/command_buffer/common:gles2_utils", |
[email protected] | df3ecfde | 2014-05-20 21:52:34 | [diff] [blame] | 149 | "//net", |
| 150 | "//skia", |
| 151 | "//third_party/icu", |
| 152 | "//ui/accessibility", |
[email protected] | 52140d88 | 2014-05-30 19:22:40 | [diff] [blame] | 153 | "//ui/base", |
spang | 1c36fac | 2015-02-05 19:55:12 | [diff] [blame] | 154 | "//ui/base/ime", |
cjhopman | 09981a9 | 2014-10-27 17:11:18 | [diff] [blame] | 155 | "//ui/events/ipc", |
[email protected] | df3ecfde | 2014-05-20 21:52:34 | [diff] [blame] | 156 | "//ui/gfx", |
| 157 | "//ui/gfx/geometry", |
[email protected] | d7e69fa | 2014-07-24 21:19:28 | [diff] [blame] | 158 | "//ui/gfx/ipc", |
[email protected] | a1d7d4f | 2014-07-16 21:33:36 | [diff] [blame] | 159 | "//ui/shell_dialogs", |
[email protected] | df3ecfde | 2014-05-20 21:52:34 | [diff] [blame] | 160 | "//url", |
ajwong | f7b1cb69 | 2014-08-23 21:36:22 | [diff] [blame] | 161 | "//third_party/libjingle", |
[email protected] | df3ecfde | 2014-05-20 21:52:34 | [diff] [blame] | 162 | ] |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 163 | |
| 164 | if (!is_ios) { |
| 165 | deps += [ |
[email protected] | 82428884 | 2014-06-20 05:26:59 | [diff] [blame] | 166 | "//cc", |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 167 | "//ipc", |
[email protected] | 6486088 | 2014-08-04 23:44:17 | [diff] [blame] | 168 | "//ipc/mojo", |
scottmg | 7afc409 | 2014-12-03 19:22:42 | [diff] [blame] | 169 | |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 170 | # TODO: the dependency on gl_in_process_context should be decoupled from |
| 171 | # content and moved to android_webview. See crbug.com/365797. |
tfarina | 13f5f5e5 | 2014-12-20 05:42:04 | [diff] [blame] | 172 | "//gpu/blink", |
[email protected] | 82428884 | 2014-06-20 05:26:59 | [diff] [blame] | 173 | "//gpu/command_buffer/client:gl_in_process_context", |
| 174 | "//gpu/command_buffer/client:gles2_c_lib", |
Brett Wilson | 8f132304 | 2014-09-11 16:58:56 | [diff] [blame] | 175 | "//gpu/command_buffer/client:gles2_cmd_helper", |
[email protected] | 82428884 | 2014-06-20 05:26:59 | [diff] [blame] | 176 | "//gpu/command_buffer/client:gles2_implementation", |
| 177 | "//gpu/command_buffer/service", |
| 178 | "//gpu/ipc", |
[email protected] | d7e69fa | 2014-07-24 21:19:28 | [diff] [blame] | 179 | "//gpu/skia_bindings", |
| 180 | "//media", |
toyoshim | c6475779 | 2015-04-30 14:52:02 | [diff] [blame] | 181 | "//media/midi", |
[email protected] | d7e69fa | 2014-07-24 21:19:28 | [diff] [blame] | 182 | "//media:shared_memory_support", |
jam | 05a3de4 | 2015-05-14 22:56:10 | [diff] [blame] | 183 | "//mojo/application/public/interfaces", |
[email protected] | 22fe91d | 2014-08-12 17:07:12 | [diff] [blame] | 184 | "//mojo/environment:chromium", |
[email protected] | 22fe91d | 2014-08-12 17:07:12 | [diff] [blame] | 185 | "//sandbox", |
pilgrim | 4af8c21 | 2014-09-05 17:30:15 | [diff] [blame] | 186 | "//storage/common", |
[email protected] | d7e69fa | 2014-07-24 21:19:28 | [diff] [blame] | 187 | "//third_party/WebKit/public:blink", |
blundell | 70fb54767 | 2015-01-19 17:18:33 | [diff] [blame] | 188 | "//third_party/mojo/src/mojo/edk/system", |
[email protected] | 82428884 | 2014-06-20 05:26:59 | [diff] [blame] | 189 | "//ui/gl", |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 190 | ] |
| 191 | } |
| 192 | |
[email protected] | 189add5 | 2014-05-28 16:51:44 | [diff] [blame] | 193 | defines = [] |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 194 | include_dirs = [] |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 195 | libs = [] |
| 196 | ldflags = [] |
| 197 | |
| 198 | if (is_android && use_seccomp_bpf) { |
| 199 | set_sources_assignment_filter([]) |
| 200 | sources += [ |
| 201 | "sandbox_linux/sandbox_bpf_base_policy_linux.cc", |
| 202 | "sandbox_linux/sandbox_bpf_base_policy_linux.h", |
| 203 | ] |
| 204 | set_sources_assignment_filter(sources_assignment_filter) |
| 205 | } |
| 206 | |
| 207 | if (is_mac) { |
| 208 | sources += [ |
scottmg | 7afc409 | 2014-12-03 19:22:42 | [diff] [blame] | 209 | "gpu/client/gpu_memory_buffer_impl_io_surface.cc", |
| 210 | "gpu/client/gpu_memory_buffer_impl_io_surface.h", |
jiangj | 2bd42fd | 2015-04-18 13:29:06 | [diff] [blame] | 211 | "gpu/gpu_memory_buffer_factory_io_surface.cc", |
| 212 | "gpu/gpu_memory_buffer_factory_io_surface.h", |
| 213 | "gpu/media/vt.h", |
| 214 | "gpu/media/vt_video_decode_accelerator.cc", |
| 215 | "gpu/media/vt_video_decode_accelerator.h", |
scottmg | 7afc409 | 2014-12-03 19:22:42 | [diff] [blame] | 216 | ] + get_target_outputs(":libvt_generate_stubs") |
dpranke | 380390f | 2014-11-21 06:08:53 | [diff] [blame] | 217 | |
scottmg | 7afc409 | 2014-12-03 19:22:42 | [diff] [blame] | 218 | sources -= [ "plugin_list_posix.cc" ] |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 219 | |
[email protected] | 79ff77e6 | 2014-07-08 10:59:16 | [diff] [blame] | 220 | deps += [ |
dpranke | 380390f | 2014-11-21 06:08:53 | [diff] [blame] | 221 | ":libvt_generate_stubs", |
[email protected] | a9ca8d5 | 2014-08-22 10:21:08 | [diff] [blame] | 222 | "//content/app/resources", |
[email protected] | 79ff77e6 | 2014-07-08 10:59:16 | [diff] [blame] | 223 | "//content:resources", |
erg | a3c614c9 | 2015-04-03 17:47:51 | [diff] [blame] | 224 | "//third_party/WebKit/public:image_resources", |
[email protected] | 4eebe74d | 2014-08-13 02:54:46 | [diff] [blame] | 225 | "//third_party/WebKit/public:resources", |
tapted | 736e144 | 2014-12-01 22:25:46 | [diff] [blame] | 226 | "//ui/accelerated_widget_mac", |
[email protected] | 79ff77e6 | 2014-07-08 10:59:16 | [diff] [blame] | 227 | ] |
jiangj | 2bd42fd | 2015-04-18 13:29:06 | [diff] [blame] | 228 | libs += [ |
| 229 | "IOSurface.framework", |
| 230 | "OpenGL.framework", |
| 231 | "QuartzCore.framework", |
| 232 | ] |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 233 | } |
| 234 | |
| 235 | if (is_android) { |
| 236 | sources += [ |
| 237 | "gpu/client/gpu_memory_buffer_impl_surface_texture.cc", |
| 238 | "gpu/client/gpu_memory_buffer_impl_surface_texture.h", |
reveman | 6f3e365 | 2014-10-10 03:32:00 | [diff] [blame] | 239 | "gpu/gpu_memory_buffer_factory_surface_texture.cc", |
| 240 | "gpu/gpu_memory_buffer_factory_surface_texture.h", |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 241 | ] |
| 242 | |
James Robinson | 060f2e3 | 2014-09-10 22:31:37 | [diff] [blame] | 243 | deps += [ |
| 244 | "//content/public/android:jni", |
| 245 | "//content/public/android:common_aidl", |
| 246 | ] |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 247 | |
| 248 | libs += [ "android" ] |
| 249 | } |
| 250 | |
erg | 85ac931 | 2015-04-16 18:20:53 | [diff] [blame] | 251 | if (is_debug && !is_component_build) { |
| 252 | # Content depends on the PPAPI message logging stuff; if this isn't here, |
| 253 | # some unit test binaries won't compile. This only worked in release mode |
| 254 | # because logging is disabled there. |
| 255 | deps += [ "//ppapi/proxy:ipc_sources" ] |
| 256 | } |
| 257 | |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 258 | if (is_ios) { |
| 259 | sources -= [ "user_agent.cc" ] |
| 260 | assert(false, "Need to add lots of conditions here") |
| 261 | } |
| 262 | |
reveman | bc2de2b | 2014-11-17 03:21:32 | [diff] [blame] | 263 | if (use_ozone) { |
dpranke | acd282e | 2014-11-05 03:54:47 | [diff] [blame] | 264 | deps += [ |
dnicoara | dce73b03 | 2014-11-18 22:15:39 | [diff] [blame] | 265 | "//ui/ozone:ozone", |
| 266 | "//ui/ozone:ozone_base", |
dpranke | acd282e | 2014-11-05 03:54:47 | [diff] [blame] | 267 | "//ui/ozone/gpu", |
| 268 | ] |
reveman | bc2de2b | 2014-11-17 03:21:32 | [diff] [blame] | 269 | } else { |
| 270 | sources -= [ |
| 271 | "cursors/webcursor_ozone.cc", |
| 272 | "font_list_ozone.cc", |
reveman | bc2de2b | 2014-11-17 03:21:32 | [diff] [blame] | 273 | "gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.cc", |
| 274 | "gpu/client/gpu_memory_buffer_impl_ozone_native_buffer.h", |
reveman | 5414514c | 2014-11-25 20:35:28 | [diff] [blame] | 275 | "gpu/gpu_memory_buffer_factory_ozone_native_buffer.cc", |
| 276 | "gpu/gpu_memory_buffer_factory_ozone_native_buffer.h", |
reveman | bc2de2b | 2014-11-17 03:21:32 | [diff] [blame] | 277 | ] |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 278 | } |
| 279 | |
[email protected] | 79ff77e6 | 2014-07-08 10:59:16 | [diff] [blame] | 280 | if (!use_aura) { |
| 281 | sources -= [ "cursors/webcursor_aura.cc" ] |
| 282 | } |
| 283 | |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 284 | if (!use_aura || !use_x11) { |
| 285 | sources -= [ "cursors/webcursor_aurax11.cc" ] |
| 286 | } |
| 287 | |
| 288 | if (use_pango) { |
| 289 | configs += [ "//build/config/linux:pangocairo" ] |
| 290 | if (use_ozone) { |
| 291 | # If we're using pango, never use this ozone file (it was removed in all |
| 292 | # non-ozone cases above). |
| 293 | sources -= [ "font_list_ozone.cc" ] |
| 294 | } |
| 295 | } else { |
scottmg | 7afc409 | 2014-12-03 19:22:42 | [diff] [blame] | 296 | sources -= [ "font_list_pango.cc" ] |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 297 | } |
| 298 | |
| 299 | if (use_x11) { |
brettw | 542f753 | 2015-04-06 22:35:45 | [diff] [blame] | 300 | configs += [ |
| 301 | "//build/config/linux:xcomposite", |
| 302 | "//third_party/khronos:khronos_headers", |
| 303 | ] |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 304 | |
dpranke | 4327621 | 2015-02-20 02:55:19 | [diff] [blame] | 305 | if (current_cpu != "arm" || !is_chromeos) { |
Sadrul Habib Chowdhury | c351e95 | 2015-03-10 01:34:22 | [diff] [blame] | 306 | sources += [ "gpu/x_util.h" ] |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 307 | } |
| 308 | } |
| 309 | |
| 310 | if (enable_plugins) { |
brettw | f7eb6ca | 2015-02-14 01:37:31 | [diff] [blame] | 311 | deps += [ "//ppapi/shared_impl" ] |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 312 | } else { |
| 313 | sources -= [ |
thestig | c4cac8f | 2014-09-04 21:17:50 | [diff] [blame] | 314 | "pepper_file_util.cc", |
| 315 | "pepper_file_util.h", |
| 316 | "pepper_messages.h", |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 317 | "pepper_plugin_list.cc", |
| 318 | "pepper_plugin_list.h", |
thestig | c4cac8f | 2014-09-04 21:17:50 | [diff] [blame] | 319 | "pepper_renderer_instance_data.cc", |
| 320 | "pepper_renderer_instance_data.h", |
| 321 | "plugin_list.cc", |
| 322 | "plugin_list.h", |
| 323 | "plugin_list_posix.cc", |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 324 | "sandbox_util.cc", |
| 325 | ] |
| 326 | } |
| 327 | |
| 328 | if (is_android) { |
| 329 | sources += [ |
| 330 | "gpu/media/android_video_decode_accelerator.cc", |
| 331 | "gpu/media/android_video_decode_accelerator.h", |
| 332 | ] |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 333 | |
| 334 | if (enable_webrtc) { |
| 335 | deps += [ "//third_party/libyuv" ] |
| 336 | } |
| 337 | } |
| 338 | |
lionel.g.landwerlin | 2c653de3 | 2014-12-25 19:05:02 | [diff] [blame] | 339 | if (is_chromeos) { |
posciak | d9ee533e | 2015-04-11 10:32:38 | [diff] [blame] | 340 | sources += [ |
| 341 | "gpu/media/accelerated_video_decoder.h", |
| 342 | "gpu/media/h264_decoder.cc", |
| 343 | "gpu/media/h264_decoder.h", |
| 344 | "gpu/media/h264_dpb.cc", |
| 345 | "gpu/media/h264_dpb.h", |
posciak | ef403af | 2015-05-06 06:32:41 | [diff] [blame] | 346 | "gpu/media/vp8_decoder.cc", |
| 347 | "gpu/media/vp8_decoder.h", |
| 348 | "gpu/media/vp8_picture.cc", |
| 349 | "gpu/media/vp8_picture.h", |
posciak | d9ee533e | 2015-04-11 10:32:38 | [diff] [blame] | 350 | ] |
henryhsu | 5159267 | 2015-02-08 05:01:00 | [diff] [blame] | 351 | if (use_v4lplugin) { |
| 352 | defines += [ "USE_LIBV4L2" ] |
| 353 | sources += get_target_outputs(":libv4l2_generate_stubs") |
| 354 | deps += [ ":libv4l2_generate_stubs" ] |
| 355 | } |
henryhsu | 712f1ac | 2015-01-09 11:25:45 | [diff] [blame] | 356 | if (use_v4l2_codec) { |
| 357 | defines += [ "USE_V4L2_CODEC" ] |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 358 | sources += [ |
emircan | 2090fc2b | 2015-02-26 17:50:43 | [diff] [blame] | 359 | "gpu/media/generic_v4l2_device.cc", |
| 360 | "gpu/media/generic_v4l2_device.h", |
emircan | 2090fc2b | 2015-02-26 17:50:43 | [diff] [blame] | 361 | "gpu/media/v4l2_device.cc", |
| 362 | "gpu/media/v4l2_device.h", |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 363 | "gpu/media/v4l2_image_processor.cc", |
| 364 | "gpu/media/v4l2_image_processor.h", |
henryhsu | 5159267 | 2015-02-08 05:01:00 | [diff] [blame] | 365 | "gpu/media/v4l2_slice_video_decode_accelerator.cc", |
| 366 | "gpu/media/v4l2_slice_video_decode_accelerator.h", |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 367 | "gpu/media/v4l2_video_decode_accelerator.cc", |
| 368 | "gpu/media/v4l2_video_decode_accelerator.h", |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 369 | "gpu/media/v4l2_video_encode_accelerator.cc", |
| 370 | "gpu/media/v4l2_video_encode_accelerator.h", |
| 371 | ] |
scottmg | 7afc409 | 2014-12-03 19:22:42 | [diff] [blame] | 372 | libs = [ |
| 373 | "EGL", |
| 374 | "GLESv2", |
| 375 | ] |
henryhsu | 5159267 | 2015-02-08 05:01:00 | [diff] [blame] | 376 | } |
dpranke | 4327621 | 2015-02-20 02:55:19 | [diff] [blame] | 377 | if (current_cpu == "arm") { |
henryhsu | 5159267 | 2015-02-08 05:01:00 | [diff] [blame] | 378 | sources += [ |
emircan | 2090fc2b | 2015-02-26 17:50:43 | [diff] [blame] | 379 | "gpu/media/tegra_v4l2_device.cc", |
| 380 | "gpu/media/tegra_v4l2_device.h", |
henryhsu | 5159267 | 2015-02-08 05:01:00 | [diff] [blame] | 381 | ] |
lionel.g.landwerlin | 2c653de3 | 2014-12-25 19:05:02 | [diff] [blame] | 382 | } |
dpranke | 4327621 | 2015-02-20 02:55:19 | [diff] [blame] | 383 | if (current_cpu != "arm") { |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 384 | sources += [ |
scottmg | 7afc409 | 2014-12-03 19:22:42 | [diff] [blame] | 385 | "gpu/media/va_surface.h", |
kcwu | 2bdb8a4 | 2015-06-18 10:44:49 | [diff] [blame] | 386 | "gpu/media/vaapi_jpeg_decode_accelerator.cc", |
| 387 | "gpu/media/vaapi_jpeg_decode_accelerator.h", |
| 388 | "gpu/media/vaapi_jpeg_decoder.cc", |
| 389 | "gpu/media/vaapi_jpeg_decoder.h", |
lionel.g.landwerlin | 2c653de3 | 2014-12-25 19:05:02 | [diff] [blame] | 390 | "gpu/media/vaapi_picture.cc", |
| 391 | "gpu/media/vaapi_picture.h", |
scottmg | 7afc409 | 2014-12-03 19:22:42 | [diff] [blame] | 392 | "gpu/media/vaapi_video_decode_accelerator.cc", |
| 393 | "gpu/media/vaapi_video_decode_accelerator.h", |
| 394 | "gpu/media/vaapi_video_encode_accelerator.cc", |
| 395 | "gpu/media/vaapi_video_encode_accelerator.h", |
| 396 | "gpu/media/vaapi_wrapper.cc", |
| 397 | "gpu/media/vaapi_wrapper.h", |
| 398 | ] + get_target_outputs(":libva_generate_stubs") |
mukai | f7571f3 | 2014-09-30 19:19:10 | [diff] [blame] | 399 | configs += [ |
| 400 | "//third_party/libva:libva_config", |
| 401 | "//third_party/libyuv:libyuv_config", |
| 402 | ] |
| 403 | deps += [ |
| 404 | ":libva_generate_stubs", |
| 405 | "//media", |
| 406 | "//third_party/libyuv", |
| 407 | ] |
lionel.g.landwerlin | 2c653de3 | 2014-12-25 19:05:02 | [diff] [blame] | 408 | if (use_x11) { |
| 409 | sources += [ |
| 410 | "gpu/media/vaapi_tfp_picture.cc", |
| 411 | "gpu/media/vaapi_tfp_picture.h", |
| 412 | ] |
| 413 | } |
lionel.g.landwerlin | b056abc | 2015-01-02 23:50:52 | [diff] [blame] | 414 | if (use_ozone) { |
| 415 | sources += [ |
| 416 | "gpu/media/vaapi_drm_picture.cc", |
| 417 | "gpu/media/vaapi_drm_picture.h", |
| 418 | ] |
| 419 | } |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 420 | } |
| 421 | } |
| 422 | |
| 423 | if (is_win) { |
| 424 | sources += [ |
| 425 | "gpu/media/dxva_video_decode_accelerator.cc", |
| 426 | "gpu/media/dxva_video_decode_accelerator.h", |
| 427 | ] |
brettw | 542f753 | 2015-04-06 22:35:45 | [diff] [blame] | 428 | configs += [ "//third_party/khronos:khronos_headers" ] |
scottmg | 7afc409 | 2014-12-03 19:22:42 | [diff] [blame] | 429 | deps += [ "//ui/gl" ] |
vchigrin | fd9bd7de | 2015-01-14 08:35:18 | [diff] [blame] | 430 | libs += [ |
| 431 | "d3d9.lib", |
ananta | 3b01db9 | 2015-02-28 00:39:18 | [diff] [blame] | 432 | "d3d11.lib", |
vchigrin | fd9bd7de | 2015-01-14 08:35:18 | [diff] [blame] | 433 | "dxva2.lib", |
| 434 | "strmiids.lib", |
| 435 | "mf.lib", |
| 436 | "mfplat.lib", |
| 437 | "mfuuid.lib", |
| 438 | ] |
| 439 | ldflags += [ |
| 440 | "/DELAYLOAD:d3d9.dll", |
ananta | 3b01db9 | 2015-02-28 00:39:18 | [diff] [blame] | 441 | "/DELAYLOAD:d3d11.dll", |
vchigrin | fd9bd7de | 2015-01-14 08:35:18 | [diff] [blame] | 442 | "/DELAYLOAD:dxva2.dll", |
| 443 | "/DELAYLOAD:mf.dll", |
| 444 | "/DELAYLOAD:mfplat.dll", |
| 445 | ] |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 446 | |
| 447 | # TODO(GYP): extract_xinput action. |
| 448 | } |
| 449 | |
| 450 | if (!is_win || !use_aura) { |
| 451 | sources -= [ "cursors/webcursor_aurawin.cc" ] |
| 452 | } |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 453 | |
| 454 | if (use_seccomp_bpf) { |
| 455 | defines += [ "USE_SECCOMP_BPF" ] |
| 456 | } else { |
| 457 | if (is_linux) { |
| 458 | sources -= [ |
| 459 | "sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc", |
| 460 | "sandbox_linux/bpf_cros_arm_gpu_policy_linux.h", |
| 461 | "sandbox_linux/bpf_gpu_policy_linux.cc", |
| 462 | "sandbox_linux/bpf_gpu_policy_linux.h", |
| 463 | "sandbox_linux/bpf_ppapi_policy_linux.cc", |
| 464 | "sandbox_linux/bpf_ppapi_policy_linux.h", |
| 465 | "sandbox_linux/bpf_renderer_policy_linux.cc", |
| 466 | "sandbox_linux/bpf_renderer_policy_linux.h", |
[email protected] | 692a954 | 2014-06-25 23:04:47 | [diff] [blame] | 467 | "sandbox_linux/bpf_utility_policy_linux.cc", |
| 468 | "sandbox_linux/bpf_utility_policy_linux.h", |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 469 | "sandbox_linux/sandbox_bpf_base_policy_linux.cc", |
| 470 | "sandbox_linux/sandbox_bpf_base_policy_linux.h", |
| 471 | ] |
| 472 | } |
| 473 | if (is_android) { |
| 474 | sources -= [ |
| 475 | "sandbox_linux/android/sandbox_bpf_base_policy_android.cc", |
| 476 | "sandbox_linux/android/sandbox_bpf_base_policy_android.h", |
| 477 | ] |
| 478 | } |
| 479 | } |
mek | 5086df2 | 2015-06-16 23:42:44 | [diff] [blame] | 480 | |
| 481 | if (is_win && current_cpu == "x64") { |
| 482 | # TODO(jschuh): Remove this after crbug.com/173851 gets fixed. |
| 483 | cflags = [ "/bigobj" ] |
| 484 | } |
[email protected] | df3ecfde | 2014-05-20 21:52:34 | [diff] [blame] | 485 | } |
[email protected] | 7e4c3314 | 2014-05-21 22:01:32 | [diff] [blame] | 486 | |
[email protected] | 189add5 | 2014-05-28 16:51:44 | [diff] [blame] | 487 | mojom("mojo_bindings") { |
| 488 | sources = [ |
rockot | 775ce0d | 2015-01-27 18:35:01 | [diff] [blame] | 489 | "application_setup.mojom", |
iclelland | 53476852 | 2015-04-30 18:32:00 | [diff] [blame] | 490 | "background_sync_service.mojom", |
blundell | c57b93f | 2014-10-29 13:19:57 | [diff] [blame] | 491 | "geolocation_service.mojom", |
halton.huo | ca2eabd | 2015-07-06 08:17:40 | [diff] [blame^] | 492 | "image_downloader/image_downloader.mojom", |
mlamouri | 4ebe69f | 2014-11-14 17:25:21 | [diff] [blame] | 493 | "permission_service.mojom", |
avayvod | bca35fad | 2015-01-29 20:20:57 | [diff] [blame] | 494 | "presentation/presentation_service.mojom", |
rockot | b814a58 | 2015-06-05 00:30:52 | [diff] [blame] | 495 | "process_control.mojom", |
[email protected] | c52a141 | 2014-06-25 06:09:25 | [diff] [blame] | 496 | "render_frame_setup.mojom", |
mek | d4ff9b5 | 2015-06-29 21:02:23 | [diff] [blame] | 497 | "service_port_service.mojom", |
bajones | 0244353 | 2015-06-22 21:17:40 | [diff] [blame] | 498 | "vr_service.mojom", |
[email protected] | 189add5 | 2014-05-28 16:51:44 | [diff] [blame] | 499 | ] |
[email protected] | e205123 | 2014-06-30 17:45:45 | [diff] [blame] | 500 | |
rockot | b814a58 | 2015-06-05 00:30:52 | [diff] [blame] | 501 | import_dirs = [ "//mojo/services" ] |
| 502 | |
[email protected] | e205123 | 2014-06-30 17:45:45 | [diff] [blame] | 503 | deps = [ |
blundell | c57b93f | 2014-10-29 13:19:57 | [diff] [blame] | 504 | "//content/public/common:mojo_bindings", |
jam | 05a3de4 | 2015-05-14 22:56:10 | [diff] [blame] | 505 | "//mojo/application/public/interfaces", |
halton.huo | ca2eabd | 2015-07-06 08:17:40 | [diff] [blame^] | 506 | "//skia/public/interfaces", |
| 507 | "//ui/mojo/geometry:interfaces", |
[email protected] | e205123 | 2014-06-30 17:45:45 | [diff] [blame] | 508 | ] |
[email protected] | 189add5 | 2014-05-28 16:51:44 | [diff] [blame] | 509 | } |