| 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("//media/media_options.gni") | 8 import("//media/media_options.gni") |
| 9 import("//mojo/public/tools/bindings/mojom.gni") | 9 import("//mojo/public/tools/bindings/mojom.gni") |
| 10 if (is_mac) { | 10 if (is_mac) { |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 "//gpu/blink", | 166 "//gpu/blink", |
| 167 "//gpu/command_buffer/client:gl_in_process_context", | 167 "//gpu/command_buffer/client:gl_in_process_context", |
| 168 "//gpu/command_buffer/client:gles2_c_lib", | 168 "//gpu/command_buffer/client:gles2_c_lib", |
| 169 "//gpu/command_buffer/client:gles2_cmd_helper", | 169 "//gpu/command_buffer/client:gles2_cmd_helper", |
| 170 "//gpu/command_buffer/client:gles2_implementation", | 170 "//gpu/command_buffer/client:gles2_implementation", |
| 171 "//gpu/command_buffer/client:gles2_interface", | 171 "//gpu/command_buffer/client:gles2_interface", |
| 172 "//gpu/command_buffer/common:gles2_utils", | 172 "//gpu/command_buffer/common:gles2_utils", |
| 173 "//gpu/command_buffer/service", | 173 "//gpu/command_buffer/service", |
| 174 "//gpu/ipc/client", | 174 "//gpu/ipc/client", |
| 175 "//gpu/ipc/common", | 175 "//gpu/ipc/common", |
| 176 |
| 177 # TODO(markdittmer): This should be removed once content/common/gpu/media |
| 178 # is refactored into media/ipc. |
| 179 "//gpu/ipc/service", |
| 176 "//gpu/skia_bindings", | 180 "//gpu/skia_bindings", |
| 177 "//ipc", | 181 "//ipc", |
| 178 "//ipc/mojo", | 182 "//ipc/mojo", |
| 179 "//media", | 183 "//media", |
| 180 "//media:shared_memory_support", | 184 "//media:shared_memory_support", |
| 181 "//media/gpu/ipc/client", | 185 "//media/gpu/ipc/client", |
| 182 "//media/gpu/ipc/common", | 186 "//media/gpu/ipc/common", |
| 183 "//media/midi", | 187 "//media/midi", |
| 184 "//mojo/common:common_base", | 188 "//mojo/common:common_base", |
| 185 "//mojo/converters/network", | 189 "//mojo/converters/network", |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 set_sources_assignment_filter([]) | 224 set_sources_assignment_filter([]) |
| 221 sources += [ | 225 sources += [ |
| 222 "sandbox_linux/sandbox_bpf_base_policy_linux.cc", | 226 "sandbox_linux/sandbox_bpf_base_policy_linux.cc", |
| 223 "sandbox_linux/sandbox_bpf_base_policy_linux.h", | 227 "sandbox_linux/sandbox_bpf_base_policy_linux.h", |
| 224 ] | 228 ] |
| 225 set_sources_assignment_filter(sources_assignment_filter) | 229 set_sources_assignment_filter(sources_assignment_filter) |
| 226 } | 230 } |
| 227 | 231 |
| 228 if (is_mac) { | 232 if (is_mac) { |
| 229 sources += [ | 233 sources += [ |
| 230 "gpu/gpu_memory_buffer_factory_io_surface.cc", | |
| 231 "gpu/gpu_memory_buffer_factory_io_surface.h", | |
| 232 "gpu/media/vt_mac.h", | 234 "gpu/media/vt_mac.h", |
| 233 "gpu/media/vt_video_decode_accelerator_mac.cc", | 235 "gpu/media/vt_video_decode_accelerator_mac.cc", |
| 234 "gpu/media/vt_video_decode_accelerator_mac.h", | 236 "gpu/media/vt_video_decode_accelerator_mac.h", |
| 235 "gpu/media/vt_video_encode_accelerator_mac.cc", | 237 "gpu/media/vt_video_encode_accelerator_mac.cc", |
| 236 "gpu/media/vt_video_encode_accelerator_mac.h", | 238 "gpu/media/vt_video_encode_accelerator_mac.h", |
| 237 ] + get_target_outputs(":libvt_generate_stubs") | 239 ] + get_target_outputs(":libvt_generate_stubs") |
| 238 | 240 |
| 239 deps += [ | 241 deps += [ |
| 240 ":libvt_generate_stubs", | 242 ":libvt_generate_stubs", |
| 241 "//content:resources", | 243 "//content:resources", |
| 242 "//content/app/resources", | 244 "//content/app/resources", |
| 243 "//third_party/WebKit/public:image_resources", | 245 "//third_party/WebKit/public:image_resources", |
| 244 "//third_party/WebKit/public:resources", | 246 "//third_party/WebKit/public:resources", |
| 245 "//ui/accelerated_widget_mac", | 247 "//ui/accelerated_widget_mac", |
| 246 ] | 248 ] |
| 247 lib_dirs = [ "$mac_sdk_path/usr/lib" ] | 249 lib_dirs = [ "$mac_sdk_path/usr/lib" ] |
| 248 libs += [ | 250 libs += [ |
| 249 "AVFoundation.framework", | 251 "AVFoundation.framework", |
| 250 "CoreMedia.framework", | 252 "CoreMedia.framework", |
| 251 "CoreVideo.framework", | 253 "CoreVideo.framework", |
| 252 "IOSurface.framework", | 254 "IOSurface.framework", |
| 253 "OpenGL.framework", | 255 "OpenGL.framework", |
| 254 "QuartzCore.framework", | 256 "QuartzCore.framework", |
| 255 "sandbox", | 257 "sandbox", |
| 256 ] | 258 ] |
| 257 } | 259 } |
| 258 | 260 |
| 259 if (is_android) { | 261 if (is_android) { |
| 260 sources += [ | |
| 261 "gpu/gpu_memory_buffer_factory_surface_texture.cc", | |
| 262 "gpu/gpu_memory_buffer_factory_surface_texture.h", | |
| 263 ] | |
| 264 | |
| 265 deps += [ | 262 deps += [ |
| 266 "//content/public/android:common_aidl", | 263 "//content/public/android:common_aidl", |
| 267 "//content/public/android:jni", | 264 "//content/public/android:jni", |
| 268 ] | 265 ] |
| 269 | 266 |
| 270 libs += [ "android" ] | 267 libs += [ "android" ] |
| 271 } | 268 } |
| 272 | 269 |
| 273 if (is_debug && !is_component_build && enable_plugins) { | 270 if (is_debug && !is_component_build && enable_plugins) { |
| 274 # Content depends on the PPAPI message logging stuff; if this isn't here, | 271 # Content depends on the PPAPI message logging stuff; if this isn't here, |
| 275 # some unit test binaries won't compile. This only worked in release mode | 272 # some unit test binaries won't compile. This only worked in release mode |
| 276 # because logging is disabled there. | 273 # because logging is disabled there. |
| 277 deps += [ "//ppapi/proxy:ipc_sources" ] | 274 deps += [ "//ppapi/proxy:ipc_sources" ] |
| 278 } | 275 } |
| 279 | 276 |
| 280 if (use_ozone) { | 277 if (use_ozone) { |
| 281 deps += [ "//ui/ozone" ] | 278 deps += [ "//ui/ozone" ] |
| 282 } else { | 279 } else { |
| 283 sources -= [ | 280 sources -= [ |
| 284 "cursors/webcursor_ozone.cc", | 281 "cursors/webcursor_ozone.cc", |
| 285 "font_list_ozone.cc", | 282 "font_list_ozone.cc", |
| 286 "gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc", | |
| 287 "gpu/gpu_memory_buffer_factory_ozone_native_pixmap.h", | |
| 288 ] | 283 ] |
| 289 } | 284 } |
| 290 | 285 |
| 291 if (!use_aura || is_android) { | 286 if (!use_aura || is_android) { |
| 292 sources -= [ "cursors/webcursor_aura.cc" ] | 287 sources -= [ "cursors/webcursor_aura.cc" ] |
| 293 } | 288 } |
| 294 | 289 |
| 295 if (!use_aura || !use_x11) { | 290 if (!use_aura || !use_x11) { |
| 296 sources -= [ "cursors/webcursor_aurax11.cc" ] | 291 sources -= [ "cursors/webcursor_aurax11.cc" ] |
| 297 } | 292 } |
| 298 | 293 |
| 299 if (use_pango) { | 294 if (use_pango) { |
| 300 configs += [ "//build/config/linux:pangocairo" ] | 295 configs += [ "//build/config/linux:pangocairo" ] |
| 301 if (use_ozone) { | 296 if (use_ozone) { |
| 302 # If we're using pango, never use this ozone file (it was removed in all | 297 # If we're using pango, never use this ozone file (it was removed in all |
| 303 # non-ozone cases above). | 298 # non-ozone cases above). |
| 304 sources -= [ "font_list_ozone.cc" ] | 299 sources -= [ "font_list_ozone.cc" ] |
| 305 } | 300 } |
| 306 } else { | 301 } else { |
| 307 sources -= [ "font_list_pango.cc" ] | 302 sources -= [ "font_list_pango.cc" ] |
| 308 } | 303 } |
| 309 | 304 |
| 310 if (use_x11) { | |
| 311 configs += [ | |
| 312 "//build/config/linux:xcomposite", | |
| 313 "//third_party/khronos:khronos_headers", | |
| 314 ] | |
| 315 | |
| 316 if (current_cpu != "arm" || !is_chromeos) { | |
| 317 sources += [ "gpu/x_util.h" ] | |
| 318 } | |
| 319 } | |
| 320 | |
| 321 if (enable_plugins) { | 305 if (enable_plugins) { |
| 322 deps += [ "//ppapi/shared_impl" ] | 306 deps += [ "//ppapi/shared_impl" ] |
| 323 } else { | 307 } else { |
| 324 sources -= [ | 308 sources -= [ |
| 325 "pepper_file_util.cc", | 309 "pepper_file_util.cc", |
| 326 "pepper_file_util.h", | 310 "pepper_file_util.h", |
| 327 "pepper_messages.h", | 311 "pepper_messages.h", |
| 328 "pepper_plugin_list.cc", | 312 "pepper_plugin_list.cc", |
| 329 "pepper_plugin_list.h", | 313 "pepper_plugin_list.h", |
| 330 "pepper_renderer_instance_data.cc", | 314 "pepper_renderer_instance_data.cc", |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 "//components/leveldb/public/interfaces", | 538 "//components/leveldb/public/interfaces", |
| 555 "//components/mus/public/interfaces", | 539 "//components/mus/public/interfaces", |
| 556 "//content/public/common:mojo_bindings", | 540 "//content/public/common:mojo_bindings", |
| 557 "//mojo/shell/public/interfaces", | 541 "//mojo/shell/public/interfaces", |
| 558 "//skia/public/interfaces", | 542 "//skia/public/interfaces", |
| 559 "//third_party/WebKit/public:mojo_bindings", | 543 "//third_party/WebKit/public:mojo_bindings", |
| 560 "//ui/mojo/geometry:interfaces", | 544 "//ui/mojo/geometry:interfaces", |
| 561 "//url/mojo:url_mojom_origin", | 545 "//url/mojo:url_mojom_origin", |
| 562 ] | 546 ] |
| 563 } | 547 } |
| OLD | NEW |