| 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("//content/common/common.gni") | 7 import("//content/common/common.gni") |
| 8 import("//mojo/public/tools/bindings/mojom.gni") | 8 import("//mojo/public/tools/bindings/mojom.gni") |
| 9 | 9 |
| 10 if (is_chromeos && use_x11 && cpu_arch != "arm") { | 10 if (is_chromeos && use_x11 && cpu_arch != "arm") { |
| 11 action("libva_generate_stubs") { | 11 action("libva_generate_stubs") { |
| 12 extra_header = "gpu/media/va_stub_header.fragment" | 12 extra_header = "gpu/media/va_stub_header.fragment" |
| 13 | 13 |
| 14 script = "../../tools/generate_stubs/generate_stubs.py" | 14 script = "../../tools/generate_stubs/generate_stubs.py" |
| 15 sources = [ "gpu/media/va.sigs" ] | 15 sources = [ |
| 16 inputs = [ extra_header ] | 16 "gpu/media/va.sigs", |
| 17 ] |
| 18 inputs = [ |
| 19 extra_header, |
| 20 ] |
| 17 stubs_filename_root = "va_stubs" | 21 stubs_filename_root = "va_stubs" |
| 18 | 22 |
| 19 outputs = [ | 23 outputs = [ |
| 20 "$target_gen_dir/gpu/media/$stubs_filename_root.cc", | 24 "$target_gen_dir/gpu/media/$stubs_filename_root.cc", |
| 21 "$target_gen_dir/gpu/media/$stubs_filename_root.h", | 25 "$target_gen_dir/gpu/media/$stubs_filename_root.h", |
| 22 ] | 26 ] |
| 23 args = [ | 27 args = [ |
| 24 "-i", rebase_path("$target_gen_dir/gpu/media", root_build_dir), | 28 "-i", |
| 25 "-o", rebase_path("$target_gen_dir/gpu/media", root_build_dir), | 29 rebase_path("$target_gen_dir/gpu/media", root_build_dir), |
| 26 "-t", "posix_stubs", | 30 "-o", |
| 27 "-e", rebase_path(extra_header, root_build_dir), | 31 rebase_path("$target_gen_dir/gpu/media", root_build_dir), |
| 28 "-s", stubs_filename_root, | 32 "-t", |
| 29 "-p", "content/common/gpu/media", | 33 "posix_stubs", |
| 34 "-e", |
| 35 rebase_path(extra_header, root_build_dir), |
| 36 "-s", |
| 37 stubs_filename_root, |
| 38 "-p", |
| 39 "content/common/gpu/media", |
| 30 ] | 40 ] |
| 31 | 41 |
| 32 args += rebase_path(sources, root_build_dir) | 42 args += rebase_path(sources, root_build_dir) |
| 33 } | 43 } |
| 34 } | 44 } |
| 35 | 45 |
| 36 if (is_mac) { | 46 if (is_mac) { |
| 37 action("libvt_generate_stubs") { | 47 action("libvt_generate_stubs") { |
| 38 extra_header = "gpu/media/vt_stubs_header.fragment" | 48 extra_header = "gpu/media/vt_stubs_header.fragment" |
| 39 | 49 |
| 40 script = "../../tools/generate_stubs/generate_stubs.py" | 50 script = "../../tools/generate_stubs/generate_stubs.py" |
| 41 sources = [ "gpu/media/vt.sig" ] | 51 sources = [ |
| 42 inputs = [ extra_header ] | 52 "gpu/media/vt.sig", |
| 53 ] |
| 54 inputs = [ |
| 55 extra_header, |
| 56 ] |
| 43 stubs_filename_root = "vt_stubs" | 57 stubs_filename_root = "vt_stubs" |
| 44 | 58 |
| 45 outputs = [ | 59 outputs = [ |
| 46 "$target_gen_dir/gpu/media/$stubs_filename_root.cc", | 60 "$target_gen_dir/gpu/media/$stubs_filename_root.cc", |
| 47 "$target_gen_dir/gpu/media/$stubs_filename_root.h", | 61 "$target_gen_dir/gpu/media/$stubs_filename_root.h", |
| 48 ] | 62 ] |
| 49 args = [ | 63 args = [ |
| 50 "-i", rebase_path("$target_gen_dir/gpu/media", root_build_dir), | 64 "-i", |
| 51 "-o", rebase_path("$target_gen_dir/gpu/media", root_build_dir), | 65 rebase_path("$target_gen_dir/gpu/media", root_build_dir), |
| 52 "-t", "posix_stubs", | 66 "-o", |
| 53 "-e", rebase_path(extra_header, root_build_dir), | 67 rebase_path("$target_gen_dir/gpu/media", root_build_dir), |
| 54 "-s", stubs_filename_root, | 68 "-t", |
| 55 "-p", "content/common/gpu/media", | 69 "posix_stubs", |
| 70 "-e", |
| 71 rebase_path(extra_header, root_build_dir), |
| 72 "-s", |
| 73 stubs_filename_root, |
| 74 "-p", |
| 75 "content/common/gpu/media", |
| 56 ] | 76 ] |
| 57 | 77 |
| 58 args += rebase_path(sources, root_build_dir) | 78 args += rebase_path(sources, root_build_dir) |
| 59 } | 79 } |
| 60 } | 80 } |
| 61 | 81 |
| 62 source_set("common") { | 82 source_set("common") { |
| 63 # Only the public target should depend on this. All other targets (even | 83 # Only the public target should depend on this. All other targets (even |
| 64 # internal content ones) should depend on the public one. | 84 # internal content ones) should depend on the public one. |
| 65 visibility = [ "//content/public/common:common_sources" ] | 85 visibility = [ "//content/public/common:common_sources" ] |
| 66 | 86 |
| 67 sources = rebase_path(content_common_gypi_values.private_common_sources, | 87 sources = rebase_path(content_common_gypi_values.private_common_sources, |
| 68 ".", "//content") | 88 ".", |
| 89 "//content") |
| 69 | 90 |
| 70 configs += [ | 91 configs += [ "//content:content_implementation" ] |
| 71 "//content:content_implementation", | |
| 72 ] | |
| 73 | 92 |
| 74 public_deps = [ | 93 public_deps = [ |
| 75 "//gpu/command_buffer/common", | 94 "//gpu/command_buffer/common", |
| 76 "//third_party/WebKit/public:blink_headers", | 95 "//third_party/WebKit/public:blink_headers", |
| 77 ] | 96 ] |
| 78 deps = [ | 97 deps = [ |
| 79 "//base", | 98 "//base", |
| 80 "//build/util:webkit_version", | 99 "//build/util:webkit_version", |
| 81 "//components/tracing", | 100 "//components/tracing", |
| 82 "//gpu/command_buffer/client:gles2_interface", | 101 "//gpu/command_buffer/client:gles2_interface", |
| (...skipping 10 matching lines...) Expand all Loading... |
| 93 "//ui/shell_dialogs", | 112 "//ui/shell_dialogs", |
| 94 "//url", | 113 "//url", |
| 95 "//third_party/libjingle", | 114 "//third_party/libjingle", |
| 96 ] | 115 ] |
| 97 | 116 |
| 98 if (!is_ios) { | 117 if (!is_ios) { |
| 99 deps += [ | 118 deps += [ |
| 100 "//cc", | 119 "//cc", |
| 101 "//ipc", | 120 "//ipc", |
| 102 "//ipc/mojo", | 121 "//ipc/mojo", |
| 122 |
| 103 # TODO: the dependency on gl_in_process_context should be decoupled from | 123 # TODO: the dependency on gl_in_process_context should be decoupled from |
| 104 # content and moved to android_webview. See crbug.com/365797. | 124 # content and moved to android_webview. See crbug.com/365797. |
| 105 "//gpu/command_buffer/client:gl_in_process_context", | 125 "//gpu/command_buffer/client:gl_in_process_context", |
| 106 "//gpu/command_buffer/client:gles2_c_lib", | 126 "//gpu/command_buffer/client:gles2_c_lib", |
| 107 "//gpu/command_buffer/client:gles2_cmd_helper", | 127 "//gpu/command_buffer/client:gles2_cmd_helper", |
| 108 "//gpu/command_buffer/client:gles2_implementation", | 128 "//gpu/command_buffer/client:gles2_implementation", |
| 109 "//gpu/command_buffer/service", | 129 "//gpu/command_buffer/service", |
| 110 "//gpu/ipc", | 130 "//gpu/ipc", |
| 111 "//gpu/skia_bindings", | 131 "//gpu/skia_bindings", |
| 112 "//media", | 132 "//media", |
| (...skipping 19 matching lines...) Expand all Loading... |
| 132 set_sources_assignment_filter([]) | 152 set_sources_assignment_filter([]) |
| 133 sources += [ | 153 sources += [ |
| 134 "sandbox_linux/sandbox_bpf_base_policy_linux.cc", | 154 "sandbox_linux/sandbox_bpf_base_policy_linux.cc", |
| 135 "sandbox_linux/sandbox_bpf_base_policy_linux.h", | 155 "sandbox_linux/sandbox_bpf_base_policy_linux.h", |
| 136 ] | 156 ] |
| 137 set_sources_assignment_filter(sources_assignment_filter) | 157 set_sources_assignment_filter(sources_assignment_filter) |
| 138 } | 158 } |
| 139 | 159 |
| 140 if (is_mac) { | 160 if (is_mac) { |
| 141 sources += [ | 161 sources += [ |
| 142 "gpu/client/gpu_memory_buffer_impl_io_surface.cc", | 162 "gpu/client/gpu_memory_buffer_impl_io_surface.cc", |
| 143 "gpu/client/gpu_memory_buffer_impl_io_surface.h", | 163 "gpu/client/gpu_memory_buffer_impl_io_surface.h", |
| 144 ] + get_target_outputs(":libvt_generate_stubs") | 164 ] + get_target_outputs(":libvt_generate_stubs") |
| 145 | 165 |
| 146 sources -= [ | 166 sources -= [ "plugin_list_posix.cc" ] |
| 147 "plugin_list_posix.cc", | |
| 148 ] | |
| 149 | 167 |
| 150 deps += [ | 168 deps += [ |
| 151 ":libvt_generate_stubs", | 169 ":libvt_generate_stubs", |
| 152 "//content/app/resources", | 170 "//content/app/resources", |
| 153 "//content:resources", | 171 "//content:resources", |
| 154 "//third_party/WebKit/public:resources", | 172 "//third_party/WebKit/public:resources", |
| 155 ] | 173 ] |
| 156 libs += [ "QuartzCore.framework" ] | 174 libs += [ "QuartzCore.framework" ] |
| 157 } | 175 } |
| 158 | 176 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 } | 221 } |
| 204 | 222 |
| 205 if (use_pango) { | 223 if (use_pango) { |
| 206 configs += [ "//build/config/linux:pangocairo" ] | 224 configs += [ "//build/config/linux:pangocairo" ] |
| 207 if (use_ozone) { | 225 if (use_ozone) { |
| 208 # If we're using pango, never use this ozone file (it was removed in all | 226 # If we're using pango, never use this ozone file (it was removed in all |
| 209 # non-ozone cases above). | 227 # non-ozone cases above). |
| 210 sources -= [ "font_list_ozone.cc" ] | 228 sources -= [ "font_list_ozone.cc" ] |
| 211 } | 229 } |
| 212 } else { | 230 } else { |
| 213 sources -= [ | 231 sources -= [ "font_list_pango.cc" ] |
| 214 "font_list_pango.cc", | |
| 215 ] | |
| 216 } | 232 } |
| 217 | 233 |
| 218 if (use_x11) { | 234 if (use_x11) { |
| 219 include_dirs += [ "//third_party/khronos" ] | 235 include_dirs += [ "//third_party/khronos" ] |
| 220 configs += [ "//build/config/linux:xcomposite" ] | 236 configs += [ "//build/config/linux:xcomposite" ] |
| 221 | 237 |
| 222 if (cpu_arch != "arm" || !is_chromeos) { | 238 if (cpu_arch != "arm" || !is_chromeos) { |
| 223 sources +=[ | 239 sources += [ |
| 224 "gpu/x_util.cc", | 240 "gpu/x_util.cc", |
| 225 "gpu/x_util.h", | 241 "gpu/x_util.h", |
| 226 ] | 242 ] |
| 227 } | 243 } |
| 228 } | 244 } |
| 229 | 245 |
| 230 if (enable_plugins) { | 246 if (enable_plugins) { |
| 231 deps += [ | 247 deps += [ "//ppapi:ppapi_shared" ] |
| 232 "//ppapi:ppapi_shared", | |
| 233 ] | |
| 234 } else { | 248 } else { |
| 235 sources -= [ | 249 sources -= [ |
| 236 "pepper_file_util.cc", | 250 "pepper_file_util.cc", |
| 237 "pepper_file_util.h", | 251 "pepper_file_util.h", |
| 238 "pepper_messages.h", | 252 "pepper_messages.h", |
| 239 "pepper_plugin_list.cc", | 253 "pepper_plugin_list.cc", |
| 240 "pepper_plugin_list.h", | 254 "pepper_plugin_list.h", |
| 241 "pepper_renderer_instance_data.cc", | 255 "pepper_renderer_instance_data.cc", |
| 242 "pepper_renderer_instance_data.h", | 256 "pepper_renderer_instance_data.h", |
| 243 "plugin_list.cc", | 257 "plugin_list.cc", |
| (...skipping 23 matching lines...) Expand all Loading... |
| 267 "gpu/media/tegra_v4l2_video_device.h", | 281 "gpu/media/tegra_v4l2_video_device.h", |
| 268 "gpu/media/v4l2_image_processor.cc", | 282 "gpu/media/v4l2_image_processor.cc", |
| 269 "gpu/media/v4l2_image_processor.h", | 283 "gpu/media/v4l2_image_processor.h", |
| 270 "gpu/media/v4l2_video_decode_accelerator.cc", | 284 "gpu/media/v4l2_video_decode_accelerator.cc", |
| 271 "gpu/media/v4l2_video_decode_accelerator.h", | 285 "gpu/media/v4l2_video_decode_accelerator.h", |
| 272 "gpu/media/v4l2_video_device.cc", | 286 "gpu/media/v4l2_video_device.cc", |
| 273 "gpu/media/v4l2_video_device.h", | 287 "gpu/media/v4l2_video_device.h", |
| 274 "gpu/media/v4l2_video_encode_accelerator.cc", | 288 "gpu/media/v4l2_video_encode_accelerator.cc", |
| 275 "gpu/media/v4l2_video_encode_accelerator.h", | 289 "gpu/media/v4l2_video_encode_accelerator.h", |
| 276 ] | 290 ] |
| 277 libs = [ "EGL", "GLESv2" ] | 291 libs = [ |
| 292 "EGL", |
| 293 "GLESv2", |
| 294 ] |
| 278 } else { # !arm | 295 } else { # !arm |
| 279 sources += [ | 296 sources += [ |
| 280 "gpu/media/h264_dpb.cc", | 297 "gpu/media/h264_dpb.cc", |
| 281 "gpu/media/h264_dpb.h", | 298 "gpu/media/h264_dpb.h", |
| 282 "gpu/media/va_surface.h", | 299 "gpu/media/va_surface.h", |
| 283 "gpu/media/vaapi_h264_decoder.cc", | 300 "gpu/media/vaapi_h264_decoder.cc", |
| 284 "gpu/media/vaapi_h264_decoder.h", | 301 "gpu/media/vaapi_h264_decoder.h", |
| 285 "gpu/media/vaapi_video_decode_accelerator.cc", | 302 "gpu/media/vaapi_video_decode_accelerator.cc", |
| 286 "gpu/media/vaapi_video_decode_accelerator.h", | 303 "gpu/media/vaapi_video_decode_accelerator.h", |
| 287 "gpu/media/vaapi_video_encode_accelerator.cc", | 304 "gpu/media/vaapi_video_encode_accelerator.cc", |
| 288 "gpu/media/vaapi_video_encode_accelerator.h", | 305 "gpu/media/vaapi_video_encode_accelerator.h", |
| 289 "gpu/media/vaapi_wrapper.cc", | 306 "gpu/media/vaapi_wrapper.cc", |
| 290 "gpu/media/vaapi_wrapper.h", | 307 "gpu/media/vaapi_wrapper.h", |
| 291 ] + get_target_outputs(":libva_generate_stubs") | 308 ] + get_target_outputs(":libva_generate_stubs") |
| 292 configs += [ | 309 configs += [ |
| 293 "//third_party/libva:libva_config", | 310 "//third_party/libva:libva_config", |
| 294 "//third_party/libyuv:libyuv_config", | 311 "//third_party/libyuv:libyuv_config", |
| 295 ] | 312 ] |
| 296 deps += [ | 313 deps += [ |
| 297 ":libva_generate_stubs", | 314 ":libva_generate_stubs", |
| 298 "//media", | 315 "//media", |
| 299 "//third_party/libyuv", | 316 "//third_party/libyuv", |
| 300 ] | 317 ] |
| 301 } | 318 } |
| 302 } | 319 } |
| 303 | 320 |
| 304 if (is_win) { | 321 if (is_win) { |
| 305 sources += [ | 322 sources += [ |
| 306 "gpu/media/dxva_video_decode_accelerator.cc", | 323 "gpu/media/dxva_video_decode_accelerator.cc", |
| 307 "gpu/media/dxva_video_decode_accelerator.h", | 324 "gpu/media/dxva_video_decode_accelerator.h", |
| 308 ] | 325 ] |
| 309 include_dirs += [ "//third_party/khronos" ] | 326 include_dirs += [ "//third_party/khronos" ] |
| 310 deps += [ | 327 deps += [ "//ui/gl" ] |
| 311 "//ui/gl", | |
| 312 ] | |
| 313 | 328 |
| 314 # TODO(GYP): extract_xinput action. | 329 # TODO(GYP): extract_xinput action. |
| 315 } | 330 } |
| 316 | 331 |
| 317 if (!is_win || !use_aura) { | 332 if (!is_win || !use_aura) { |
| 318 sources -= [ "cursors/webcursor_aurawin.cc" ] | 333 sources -= [ "cursors/webcursor_aurawin.cc" ] |
| 319 } | 334 } |
| 320 | 335 |
| 321 if (use_seccomp_bpf) { | 336 if (use_seccomp_bpf) { |
| 322 defines += [ "USE_SECCOMP_BPF" ] | 337 defines += [ "USE_SECCOMP_BPF" ] |
| (...skipping 28 matching lines...) Expand all Loading... |
| 351 "geolocation_service.mojom", | 366 "geolocation_service.mojom", |
| 352 "permission_service.mojom", | 367 "permission_service.mojom", |
| 353 "render_frame_setup.mojom", | 368 "render_frame_setup.mojom", |
| 354 ] | 369 ] |
| 355 | 370 |
| 356 deps = [ | 371 deps = [ |
| 357 "//content/public/common:mojo_bindings", | 372 "//content/public/common:mojo_bindings", |
| 358 "//mojo/public/interfaces/application:application", | 373 "//mojo/public/interfaces/application:application", |
| 359 ] | 374 ] |
| 360 } | 375 } |
| OLD | NEW |