| 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 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 "//gpu", | 165 "//gpu", |
| 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/common", | 174 "//gpu/ipc/common", |
| 175 |
| 176 # TODO(markdittmer): This should be removed once content/common/gpu/media |
| 177 # is refactored into media/ipc. |
| 178 "//gpu/ipc/service", |
| 175 "//gpu/skia_bindings", | 179 "//gpu/skia_bindings", |
| 176 "//ipc", | 180 "//ipc", |
| 177 "//ipc/mojo", | 181 "//ipc/mojo", |
| 178 "//media", | 182 "//media", |
| 179 "//media:shared_memory_support", | 183 "//media:shared_memory_support", |
| 180 "//media/midi", | 184 "//media/midi", |
| 181 "//mojo/common:common_base", | 185 "//mojo/common:common_base", |
| 182 "//mojo/converters/network", | 186 "//mojo/converters/network", |
| 183 "//mojo/edk/system", | 187 "//mojo/edk/system", |
| 184 "//mojo/shell", | 188 "//mojo/shell", |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 "sandbox_linux/sandbox_bpf_base_policy_linux.cc", | 222 "sandbox_linux/sandbox_bpf_base_policy_linux.cc", |
| 219 "sandbox_linux/sandbox_bpf_base_policy_linux.h", | 223 "sandbox_linux/sandbox_bpf_base_policy_linux.h", |
| 220 ] | 224 ] |
| 221 set_sources_assignment_filter(sources_assignment_filter) | 225 set_sources_assignment_filter(sources_assignment_filter) |
| 222 } | 226 } |
| 223 | 227 |
| 224 if (is_mac) { | 228 if (is_mac) { |
| 225 sources += [ | 229 sources += [ |
| 226 "gpu/client/gpu_memory_buffer_impl_io_surface.cc", | 230 "gpu/client/gpu_memory_buffer_impl_io_surface.cc", |
| 227 "gpu/client/gpu_memory_buffer_impl_io_surface.h", | 231 "gpu/client/gpu_memory_buffer_impl_io_surface.h", |
| 228 "gpu/gpu_memory_buffer_factory_io_surface.cc", | |
| 229 "gpu/gpu_memory_buffer_factory_io_surface.h", | |
| 230 "gpu/media/vt_mac.h", | 232 "gpu/media/vt_mac.h", |
| 231 "gpu/media/vt_video_decode_accelerator_mac.cc", | 233 "gpu/media/vt_video_decode_accelerator_mac.cc", |
| 232 "gpu/media/vt_video_decode_accelerator_mac.h", | 234 "gpu/media/vt_video_decode_accelerator_mac.h", |
| 233 "gpu/media/vt_video_encode_accelerator_mac.cc", | 235 "gpu/media/vt_video_encode_accelerator_mac.cc", |
| 234 "gpu/media/vt_video_encode_accelerator_mac.h", | 236 "gpu/media/vt_video_encode_accelerator_mac.h", |
| 235 ] + get_target_outputs(":libvt_generate_stubs") | 237 ] + get_target_outputs(":libvt_generate_stubs") |
| 236 | 238 |
| 237 sources -= [ "plugin_list_posix.cc" ] | 239 sources -= [ "plugin_list_posix.cc" ] |
| 238 | 240 |
| 239 deps += [ | 241 deps += [ |
| (...skipping 13 matching lines...) Expand all Loading... |
| 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 += [ | 262 sources += [ |
| 261 "gpu/client/gpu_memory_buffer_impl_surface_texture.cc", | 263 "gpu/client/gpu_memory_buffer_impl_surface_texture.cc", |
| 262 "gpu/client/gpu_memory_buffer_impl_surface_texture.h", | 264 "gpu/client/gpu_memory_buffer_impl_surface_texture.h", |
| 263 "gpu/gpu_memory_buffer_factory_surface_texture.cc", | |
| 264 "gpu/gpu_memory_buffer_factory_surface_texture.h", | |
| 265 ] | 265 ] |
| 266 | 266 |
| 267 deps += [ | 267 deps += [ |
| 268 "//content/public/android:common_aidl", | 268 "//content/public/android:common_aidl", |
| 269 "//content/public/android:jni", | 269 "//content/public/android:jni", |
| 270 ] | 270 ] |
| 271 | 271 |
| 272 libs += [ "android" ] | 272 libs += [ "android" ] |
| 273 } | 273 } |
| 274 | 274 |
| 275 if (is_debug && !is_component_build && enable_plugins) { | 275 if (is_debug && !is_component_build && enable_plugins) { |
| 276 # Content depends on the PPAPI message logging stuff; if this isn't here, | 276 # Content depends on the PPAPI message logging stuff; if this isn't here, |
| 277 # some unit test binaries won't compile. This only worked in release mode | 277 # some unit test binaries won't compile. This only worked in release mode |
| 278 # because logging is disabled there. | 278 # because logging is disabled there. |
| 279 deps += [ "//ppapi/proxy:ipc_sources" ] | 279 deps += [ "//ppapi/proxy:ipc_sources" ] |
| 280 } | 280 } |
| 281 | 281 |
| 282 if (use_ozone) { | 282 if (use_ozone) { |
| 283 deps += [ "//ui/ozone" ] | 283 deps += [ "//ui/ozone" ] |
| 284 } else { | 284 } else { |
| 285 sources -= [ | 285 sources -= [ |
| 286 "cursors/webcursor_ozone.cc", | 286 "cursors/webcursor_ozone.cc", |
| 287 "font_list_ozone.cc", | 287 "font_list_ozone.cc", |
| 288 "gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc", | 288 "gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.cc", |
| 289 "gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.h", | 289 "gpu/client/gpu_memory_buffer_impl_ozone_native_pixmap.h", |
| 290 "gpu/gpu_memory_buffer_factory_ozone_native_pixmap.cc", | |
| 291 "gpu/gpu_memory_buffer_factory_ozone_native_pixmap.h", | |
| 292 ] | 290 ] |
| 293 } | 291 } |
| 294 | 292 |
| 295 if (!use_aura || is_android) { | 293 if (!use_aura || is_android) { |
| 296 sources -= [ "cursors/webcursor_aura.cc" ] | 294 sources -= [ "cursors/webcursor_aura.cc" ] |
| 297 } | 295 } |
| 298 | 296 |
| 299 if (!use_aura || !use_x11) { | 297 if (!use_aura || !use_x11) { |
| 300 sources -= [ "cursors/webcursor_aurax11.cc" ] | 298 sources -= [ "cursors/webcursor_aurax11.cc" ] |
| 301 } | 299 } |
| 302 | 300 |
| 303 if (use_pango) { | 301 if (use_pango) { |
| 304 configs += [ "//build/config/linux:pangocairo" ] | 302 configs += [ "//build/config/linux:pangocairo" ] |
| 305 if (use_ozone) { | 303 if (use_ozone) { |
| 306 # If we're using pango, never use this ozone file (it was removed in all | 304 # If we're using pango, never use this ozone file (it was removed in all |
| 307 # non-ozone cases above). | 305 # non-ozone cases above). |
| 308 sources -= [ "font_list_ozone.cc" ] | 306 sources -= [ "font_list_ozone.cc" ] |
| 309 } | 307 } |
| 310 } else { | 308 } else { |
| 311 sources -= [ "font_list_pango.cc" ] | 309 sources -= [ "font_list_pango.cc" ] |
| 312 } | 310 } |
| 313 | 311 |
| 314 if (use_x11) { | |
| 315 configs += [ | |
| 316 "//build/config/linux:xcomposite", | |
| 317 "//third_party/khronos:khronos_headers", | |
| 318 ] | |
| 319 | |
| 320 if (current_cpu != "arm" || !is_chromeos) { | |
| 321 sources += [ "gpu/x_util.h" ] | |
| 322 } | |
| 323 } | |
| 324 | |
| 325 if (enable_plugins) { | 312 if (enable_plugins) { |
| 326 deps += [ "//ppapi/shared_impl" ] | 313 deps += [ "//ppapi/shared_impl" ] |
| 327 } else { | 314 } else { |
| 328 sources -= [ | 315 sources -= [ |
| 329 "pepper_file_util.cc", | 316 "pepper_file_util.cc", |
| 330 "pepper_file_util.h", | 317 "pepper_file_util.h", |
| 331 "pepper_messages.h", | 318 "pepper_messages.h", |
| 332 "pepper_plugin_list.cc", | 319 "pepper_plugin_list.cc", |
| 333 "pepper_plugin_list.h", | 320 "pepper_plugin_list.h", |
| 334 "pepper_renderer_instance_data.cc", | 321 "pepper_renderer_instance_data.cc", |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 "//components/leveldb/public/interfaces", | 549 "//components/leveldb/public/interfaces", |
| 563 "//components/mus/public/interfaces", | 550 "//components/mus/public/interfaces", |
| 564 "//content/public/common:mojo_bindings", | 551 "//content/public/common:mojo_bindings", |
| 565 "//mojo/shell/public/interfaces", | 552 "//mojo/shell/public/interfaces", |
| 566 "//skia/public/interfaces", | 553 "//skia/public/interfaces", |
| 567 "//third_party/WebKit/public:mojo_bindings", | 554 "//third_party/WebKit/public:mojo_bindings", |
| 568 "//ui/mojo/geometry:interfaces", | 555 "//ui/mojo/geometry:interfaces", |
| 569 "//url/mojo:url_mojom_origin", | 556 "//url/mojo:url_mojom_origin", |
| 570 ] | 557 ] |
| 571 } | 558 } |
| OLD | NEW |