| 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 source_set("common") { | 10 source_set("common") { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 "//build/util:webkit_version", | 29 "//build/util:webkit_version", |
| 30 "//components/tracing", | 30 "//components/tracing", |
| 31 "//gpu/command_buffer/common", | 31 "//gpu/command_buffer/common", |
| 32 "//net", | 32 "//net", |
| 33 "//skia", | 33 "//skia", |
| 34 "//third_party/icu", | 34 "//third_party/icu", |
| 35 "//ui/accessibility", | 35 "//ui/accessibility", |
| 36 "//ui/base", | 36 "//ui/base", |
| 37 "//ui/gfx", | 37 "//ui/gfx", |
| 38 "//ui/gfx/geometry", | 38 "//ui/gfx/geometry", |
| 39 "//ui/gfx/ipc", |
| 39 "//ui/shell_dialogs", | 40 "//ui/shell_dialogs", |
| 40 "//url", | 41 "//url", |
| 41 "//third_party/WebKit/public:blink_headers", | 42 "//third_party/WebKit/public:blink_headers", |
| 42 # TODO(GYP) convert these dependencies. | 43 # TODO(GYP) convert these dependencies. |
| 43 #'../third_party/libjingle/libjingle.gyp:libjingle', | 44 #'../third_party/libjingle/libjingle.gyp:libjingle', |
| 44 ] | 45 ] |
| 45 | 46 |
| 46 if (!is_ios) { | 47 if (!is_ios) { |
| 47 deps += [ | 48 deps += [ |
| 48 "//cc", | 49 "//cc", |
| 49 "//ipc", | 50 "//ipc", |
| 50 "//mojo/environment:chromium", | 51 "//mojo/environment:chromium", |
| 51 "//mojo/system", | 52 "//mojo/system", |
| 52 # TODO: the dependency on gl_in_process_context should be decoupled from | 53 # TODO: the dependency on gl_in_process_context should be decoupled from |
| 53 # content and moved to android_webview. See crbug.com/365797. | 54 # content and moved to android_webview. See crbug.com/365797. |
| 54 "//gpu/command_buffer/client:gl_in_process_context", | 55 "//gpu/command_buffer/client:gl_in_process_context", |
| 55 "//gpu/command_buffer/client:gles2_c_lib", | 56 "//gpu/command_buffer/client:gles2_c_lib", |
| 56 "//gpu/command_buffer/client:gles2_implementation", | 57 "//gpu/command_buffer/client:gles2_implementation", |
| 57 "//gpu/command_buffer/service", | 58 "//gpu/command_buffer/service", |
| 58 "//gpu/ipc", | 59 "//gpu/ipc", |
| 60 "//gpu/skia_bindings", |
| 61 "//media", |
| 62 "//media:shared_memory_support", |
| 59 "//mojo/public/interfaces/service_provider", | 63 "//mojo/public/interfaces/service_provider", |
| 64 "//third_party/WebKit/public:blink", |
| 60 "//ui/gl", | 65 "//ui/gl", |
| 61 "//webkit/browser:storage", | 66 "//webkit/browser:storage", |
| 62 "//webkit/common", | 67 "//webkit/common", |
| 63 "//webkit/common:storage", | 68 "//webkit/common:storage", |
| 64 "//webkit/common/gpu", | 69 "//webkit/common/gpu", |
| 65 #'../gpu/gpu.gyp:gl_in_process_context', | |
| 66 #'../gpu/skia_bindings/skia_bindings.gyp:gpu_skia_bindings', | |
| 67 #'../media/media.gyp:media', | |
| 68 #'../media/media.gyp:shared_memory_support', | |
| 69 #'../third_party/WebKit/public/blink.gyp:blink', | |
| 70 ] | 70 ] |
| 71 } | 71 } |
| 72 | 72 |
| 73 defines = [] | 73 defines = [] |
| 74 include_dirs = [] | 74 include_dirs = [] |
| 75 libs = [] | 75 libs = [] |
| 76 ldflags = [] | 76 ldflags = [] |
| 77 | 77 |
| 78 if (is_android && use_seccomp_bpf) { | 78 if (is_android && use_seccomp_bpf) { |
| 79 set_sources_assignment_filter([]) | 79 set_sources_assignment_filter([]) |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 # non-ozone cases above). | 143 # non-ozone cases above). |
| 144 sources -= [ "font_list_ozone.cc" ] | 144 sources -= [ "font_list_ozone.cc" ] |
| 145 } | 145 } |
| 146 } else { | 146 } else { |
| 147 sources -= [ | 147 sources -= [ |
| 148 "font_list_pango.cc", | 148 "font_list_pango.cc", |
| 149 ] | 149 ] |
| 150 } | 150 } |
| 151 | 151 |
| 152 if (use_x11) { | 152 if (use_x11) { |
| 153 sources += [ |
| 154 "gpu/gpu_memory_buffer_factory_x11_pixmap.cc", |
| 155 "common/gpu/gpu_memory_buffer_factory_x11_pixmap.h", |
| 156 ] |
| 153 include_dirs += [ "//third_party/khronos" ] | 157 include_dirs += [ "//third_party/khronos" ] |
| 154 configs += [ "//build/config/linux:xcomposite" ] | 158 configs += [ "//build/config/linux:xcomposite" ] |
| 155 | 159 |
| 156 if (cpu_arch != "arm" || !is_chromeos) { | 160 if (cpu_arch != "arm" || !is_chromeos) { |
| 157 sources +=[ | 161 sources +=[ |
| 158 "gpu/x_util.cc", | 162 "gpu/x_util.cc", |
| 159 "gpu/x_util.h", | 163 "gpu/x_util.h", |
| 160 ] | 164 ] |
| 161 } | 165 } |
| 162 } | 166 } |
| 163 | 167 |
| 164 if (enable_plugins) { | 168 if (enable_plugins) { |
| 165 deps += [ | 169 deps += [ |
| 166 "//ppapi:ppapi_shared", | 170 "//ppapi:ppapi_shared", |
| 167 ] | 171 ] |
| 168 } else { | 172 } else { |
| 169 sources -= [ | 173 sources -= [ |
| 170 "pepper_plugin_list.cc", | 174 "pepper_plugin_list.cc", |
| 171 "pepper_plugin_list.h", | 175 "pepper_plugin_list.h", |
| 172 "sandbox_util.cc", | 176 "sandbox_util.cc", |
| 173 ] | 177 ] |
| 174 } | 178 } |
| 175 | 179 |
| 176 if (is_android) { | 180 if (is_android) { |
| 177 sources += [ | 181 sources += [ |
| 178 "gpu/media/android_video_decode_accelerator.cc", | 182 "gpu/media/android_video_decode_accelerator.cc", |
| 179 "gpu/media/android_video_decode_accelerator.h", | 183 "gpu/media/android_video_decode_accelerator.h", |
| 180 ] | 184 ] |
| 181 deps += [ | |
| 182 # TODO(GYP) enable once supported in the GN build. | |
| 183 #"//media", | |
| 184 ] | |
| 185 | 185 |
| 186 if (enable_webrtc) { | 186 if (enable_webrtc) { |
| 187 deps += [ "//third_party/libyuv" ] | 187 deps += [ "//third_party/libyuv" ] |
| 188 } | 188 } |
| 189 } | 189 } |
| 190 | 190 |
| 191 if (is_chromeos && use_x11) { | 191 if (is_chromeos && use_x11) { |
| 192 if (cpu_arch == "arm") { | 192 if (cpu_arch == "arm") { |
| 193 sources += [ | 193 sources += [ |
| 194 "gpu/media/exynos_v4l2_video_device.cc", | 194 "gpu/media/exynos_v4l2_video_device.cc", |
| 195 "gpu/media/exynos_v4l2_video_device.h", | 195 "gpu/media/exynos_v4l2_video_device.h", |
| 196 "gpu/media/tegra_v4l2_video_device.cc", | 196 "gpu/media/tegra_v4l2_video_device.cc", |
| 197 "gpu/media/tegra_v4l2_video_device.h", | 197 "gpu/media/tegra_v4l2_video_device.h", |
| 198 "gpu/media/v4l2_image_processor.cc", | 198 "gpu/media/v4l2_image_processor.cc", |
| 199 "gpu/media/v4l2_image_processor.h", | 199 "gpu/media/v4l2_image_processor.h", |
| 200 "gpu/media/v4l2_video_decode_accelerator.cc", | 200 "gpu/media/v4l2_video_decode_accelerator.cc", |
| 201 "gpu/media/v4l2_video_decode_accelerator.h", | 201 "gpu/media/v4l2_video_decode_accelerator.h", |
| 202 "gpu/media/v4l2_video_device.cc", | 202 "gpu/media/v4l2_video_device.cc", |
| 203 "gpu/media/v4l2_video_device.h", | 203 "gpu/media/v4l2_video_device.h", |
| 204 "gpu/media/v4l2_video_encode_accelerator.cc", | 204 "gpu/media/v4l2_video_encode_accelerator.cc", |
| 205 "gpu/media/v4l2_video_encode_accelerator.h", | 205 "gpu/media/v4l2_video_encode_accelerator.h", |
| 206 ] | 206 ] |
| 207 # TODO(GYP) enable once supported in the GN build. | |
| 208 #deps += [ "//media" ] | |
| 209 libs = [ "EGL", "GLESv2" ] | 207 libs = [ "EGL", "GLESv2" ] |
| 210 } else { # !arm | 208 } else { # !arm |
| 211 sources += [ | 209 sources += [ |
| 212 "gpu/media/h264_dpb.cc", | 210 "gpu/media/h264_dpb.cc", |
| 213 "gpu/media/h264_dpb.h", | 211 "gpu/media/h264_dpb.h", |
| 214 "gpu/media/va_surface.h", | 212 "gpu/media/va_surface.h", |
| 215 "gpu/media/vaapi_h264_decoder.cc", | 213 "gpu/media/vaapi_h264_decoder.cc", |
| 216 "gpu/media/vaapi_h264_decoder.h", | 214 "gpu/media/vaapi_h264_decoder.h", |
| 217 "gpu/media/vaapi_video_decode_accelerator.cc", | 215 "gpu/media/vaapi_video_decode_accelerator.cc", |
| 218 "gpu/media/vaapi_video_decode_accelerator.h", | 216 "gpu/media/vaapi_video_decode_accelerator.h", |
| 219 "gpu/media/vaapi_wrapper.cc", | 217 "gpu/media/vaapi_wrapper.cc", |
| 220 "gpu/media/vaapi_wrapper.h", | 218 "gpu/media/vaapi_wrapper.h", |
| 221 ] | 219 ] |
| 222 assert(false, "Implement generate_stubs for libva") | 220 assert(false, "Implement generate_stubs for libva") |
| 223 } | 221 } |
| 224 } | 222 } |
| 225 | 223 |
| 226 if (is_win) { | 224 if (is_win) { |
| 227 sources += [ | 225 sources += [ |
| 228 "gpu/media/dxva_video_decode_accelerator.cc", | 226 "gpu/media/dxva_video_decode_accelerator.cc", |
| 229 "gpu/media/dxva_video_decode_accelerator.h", | 227 "gpu/media/dxva_video_decode_accelerator.h", |
| 230 ] | 228 ] |
| 231 include_dirs += [ "//third_party/khronos" ] | 229 include_dirs += [ "//third_party/khronos" ] |
| 232 deps += [ | 230 deps += [ |
| 233 # TODO(GYP) enable once supported in the GN build. | |
| 234 #"//media", | |
| 235 "//ui/gl", | 231 "//ui/gl", |
| 236 ] | 232 ] |
| 237 | 233 |
| 238 # TODO(GYP): extract_xinput action. | 234 # TODO(GYP): extract_xinput action. |
| 239 } | 235 } |
| 240 | 236 |
| 241 if (!is_win || !use_aura) { | 237 if (!is_win || !use_aura) { |
| 242 sources -= [ "cursors/webcursor_aurawin.cc" ] | 238 sources -= [ "cursors/webcursor_aurawin.cc" ] |
| 243 } | 239 } |
| 244 | 240 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 272 | 268 |
| 273 mojom("mojo_bindings") { | 269 mojom("mojo_bindings") { |
| 274 sources = [ | 270 sources = [ |
| 275 "render_frame_setup.mojom", | 271 "render_frame_setup.mojom", |
| 276 ] | 272 ] |
| 277 | 273 |
| 278 deps = [ | 274 deps = [ |
| 279 "//mojo/public/interfaces/service_provider:service_provider", | 275 "//mojo/public/interfaces/service_provider:service_provider", |
| 280 ] | 276 ] |
| 281 } | 277 } |
| OLD | NEW |