Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Side by Side Diff: content/common/BUILD.gn

Issue 913373002: Update Chomium's build files to work w/ latest GN binaries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn_cpu_arch_changes
Patch Set: cleanup / review Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") 8 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni")
9 9
10 if (is_chromeos && cpu_arch != "arm") { 10 if (is_chromeos && current_cpu != "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 = [ 15 sources = [
16 "gpu/media/va.sigs", 16 "gpu/media/va.sigs",
17 ] 17 ]
18 inputs = [ 18 inputs = [
19 extra_header, 19 extra_header,
20 ] 20 ]
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 sources -= [ "font_list_ozone.cc" ] 236 sources -= [ "font_list_ozone.cc" ]
237 } 237 }
238 } else { 238 } else {
239 sources -= [ "font_list_pango.cc" ] 239 sources -= [ "font_list_pango.cc" ]
240 } 240 }
241 241
242 if (use_x11) { 242 if (use_x11) {
243 include_dirs += [ "//third_party/khronos" ] 243 include_dirs += [ "//third_party/khronos" ]
244 configs += [ "//build/config/linux:xcomposite" ] 244 configs += [ "//build/config/linux:xcomposite" ]
245 245
246 if (cpu_arch != "arm" || !is_chromeos) { 246 if (current_cpu != "arm" || !is_chromeos) {
247 sources += [ 247 sources += [
248 "gpu/x_util.cc", 248 "gpu/x_util.cc",
249 "gpu/x_util.h", 249 "gpu/x_util.h",
250 ] 250 ]
251 } 251 }
252 } 252 }
253 253
254 if (enable_plugins) { 254 if (enable_plugins) {
255 deps += [ "//ppapi:ppapi_shared" ] 255 deps += [ "//ppapi:ppapi_shared" ]
256 } else { 256 } else {
(...skipping 20 matching lines...) Expand all
277 277
278 if (enable_webrtc) { 278 if (enable_webrtc) {
279 deps += [ "//third_party/libyuv" ] 279 deps += [ "//third_party/libyuv" ]
280 } 280 }
281 } 281 }
282 282
283 if (is_chromeos) { 283 if (is_chromeos) {
284 if (use_v4l2_codec) { 284 if (use_v4l2_codec) {
285 defines += [ "USE_V4L2_CODEC" ] 285 defines += [ "USE_V4L2_CODEC" ]
286 } 286 }
287 if (cpu_arch == "arm" || (use_ozone && use_v4l2_codec)) { 287 if (current_cpu == "arm" || (use_ozone && use_v4l2_codec)) {
288 sources += [ 288 sources += [
289 "gpu/media/generic_v4l2_video_device.cc", 289 "gpu/media/generic_v4l2_video_device.cc",
290 "gpu/media/generic_v4l2_video_device.h", 290 "gpu/media/generic_v4l2_video_device.h",
291 "gpu/media/v4l2_image_processor.cc", 291 "gpu/media/v4l2_image_processor.cc",
292 "gpu/media/v4l2_image_processor.h", 292 "gpu/media/v4l2_image_processor.h",
293 "gpu/media/v4l2_video_decode_accelerator.cc", 293 "gpu/media/v4l2_video_decode_accelerator.cc",
294 "gpu/media/v4l2_video_decode_accelerator.h", 294 "gpu/media/v4l2_video_decode_accelerator.h",
295 "gpu/media/v4l2_video_device.cc", 295 "gpu/media/v4l2_video_device.cc",
296 "gpu/media/v4l2_video_device.h", 296 "gpu/media/v4l2_video_device.h",
297 "gpu/media/v4l2_video_encode_accelerator.cc", 297 "gpu/media/v4l2_video_encode_accelerator.cc",
298 "gpu/media/v4l2_video_encode_accelerator.h", 298 "gpu/media/v4l2_video_encode_accelerator.h",
299 ] 299 ]
300 libs = [ 300 libs = [
301 "EGL", 301 "EGL",
302 "GLESv2", 302 "GLESv2",
303 ] 303 ]
304 if (cpu_arch == "arm") { 304 if (current_cpu == "arm") {
305 sources += [ 305 sources += [
306 "gpu/media/tegra_v4l2_video_device.cc", 306 "gpu/media/tegra_v4l2_video_device.cc",
307 "gpu/media/tegra_v4l2_video_device.h", 307 "gpu/media/tegra_v4l2_video_device.h",
308 ] 308 ]
309 } 309 }
310 } 310 }
311 if (cpu_arch != "arm") { 311 if (current_cpu != "arm") {
312 sources += [ 312 sources += [
313 "gpu/media/va_surface.h", 313 "gpu/media/va_surface.h",
314 "gpu/media/vaapi_h264_decoder.cc", 314 "gpu/media/vaapi_h264_decoder.cc",
315 "gpu/media/vaapi_h264_decoder.h", 315 "gpu/media/vaapi_h264_decoder.h",
316 "gpu/media/vaapi_h264_dpb.cc", 316 "gpu/media/vaapi_h264_dpb.cc",
317 "gpu/media/vaapi_h264_dpb.h", 317 "gpu/media/vaapi_h264_dpb.h",
318 "gpu/media/vaapi_picture.cc", 318 "gpu/media/vaapi_picture.cc",
319 "gpu/media/vaapi_picture.h", 319 "gpu/media/vaapi_picture.h",
320 "gpu/media/vaapi_video_decode_accelerator.cc", 320 "gpu/media/vaapi_video_decode_accelerator.cc",
321 "gpu/media/vaapi_video_decode_accelerator.h", 321 "gpu/media/vaapi_video_decode_accelerator.h",
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 "permission_service.mojom", 412 "permission_service.mojom",
413 "presentation/presentation_service.mojom", 413 "presentation/presentation_service.mojom",
414 "render_frame_setup.mojom", 414 "render_frame_setup.mojom",
415 ] 415 ]
416 416
417 deps = [ 417 deps = [
418 "//content/public/common:mojo_bindings", 418 "//content/public/common:mojo_bindings",
419 "//third_party/mojo/src/mojo/public/interfaces/application:application", 419 "//third_party/mojo/src/mojo/public/interfaces/application:application",
420 ] 420 ]
421 } 421 }
OLDNEW
« no previous file with comments | « components/policy/BUILD.gn ('k') | content/gpu/BUILD.gn » ('j') | ppapi/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698