Chromium Code Reviews| 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("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") | 8 import("//third_party/mojo/src/mojo/public/tools/bindings/mojom.gni") |
| 9 import("//ui/ozone/ozone.gni") | |
|
brettw
2015/08/24 21:53:38
A better way to do this would be to add a config
/
dshwang
2015/08/26 14:18:02
AFAIK, there is no way to inherit DEFINE value fro
brettw
2015/08/26 22:27:49
In ui/ozone/BUILD.gn:
config("vgem_map") {
i
dshwang
2015/08/27 12:47:09
Oh, there is a way. Thank you for explaining!
Now
| |
| 10 | |
| 9 if (is_mac) { | 11 if (is_mac) { |
| 10 import("//build/config/mac/mac_sdk.gni") | 12 import("//build/config/mac/mac_sdk.gni") |
| 11 } | 13 } |
| 12 | 14 |
| 13 if (is_chromeos && current_cpu != "arm") { | 15 if (is_chromeos && current_cpu != "arm") { |
| 14 action("libva_generate_stubs") { | 16 action("libva_generate_stubs") { |
| 15 extra_header = "gpu/media/va_stub_header.fragment" | 17 extra_header = "gpu/media/va_stub_header.fragment" |
| 16 | 18 |
| 17 script = "../../tools/generate_stubs/generate_stubs.py" | 19 script = "../../tools/generate_stubs/generate_stubs.py" |
| 18 sources = [ | 20 sources = [ |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 456 | 458 |
| 457 # TODO(GYP): extract_xinput action. | 459 # TODO(GYP): extract_xinput action. |
| 458 } | 460 } |
| 459 | 461 |
| 460 if (!is_win || !use_aura) { | 462 if (!is_win || !use_aura) { |
| 461 sources -= [ "cursors/webcursor_aurawin.cc" ] | 463 sources -= [ "cursors/webcursor_aurawin.cc" ] |
| 462 } | 464 } |
| 463 | 465 |
| 464 if (use_seccomp_bpf) { | 466 if (use_seccomp_bpf) { |
| 465 defines += [ "USE_SECCOMP_BPF" ] | 467 defines += [ "USE_SECCOMP_BPF" ] |
| 468 | |
| 469 if (use_vgem_map) { | |
| 470 defines += [ "USE_VGEM_MAP" ] | |
| 471 } | |
| 466 } else { | 472 } else { |
| 467 if (is_linux) { | 473 if (is_linux) { |
| 468 sources -= [ | 474 sources -= [ |
| 469 "sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc", | 475 "sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc", |
| 470 "sandbox_linux/bpf_cros_arm_gpu_policy_linux.h", | 476 "sandbox_linux/bpf_cros_arm_gpu_policy_linux.h", |
| 471 "sandbox_linux/bpf_gpu_policy_linux.cc", | 477 "sandbox_linux/bpf_gpu_policy_linux.cc", |
| 472 "sandbox_linux/bpf_gpu_policy_linux.h", | 478 "sandbox_linux/bpf_gpu_policy_linux.h", |
| 473 "sandbox_linux/bpf_ppapi_policy_linux.cc", | 479 "sandbox_linux/bpf_ppapi_policy_linux.cc", |
| 474 "sandbox_linux/bpf_ppapi_policy_linux.h", | 480 "sandbox_linux/bpf_ppapi_policy_linux.h", |
| 475 "sandbox_linux/bpf_renderer_policy_linux.cc", | 481 "sandbox_linux/bpf_renderer_policy_linux.cc", |
| (...skipping 30 matching lines...) Expand all Loading... | |
| 506 | 512 |
| 507 import_dirs = [ "//mojo/services" ] | 513 import_dirs = [ "//mojo/services" ] |
| 508 | 514 |
| 509 deps = [ | 515 deps = [ |
| 510 "//content/public/common:mojo_bindings", | 516 "//content/public/common:mojo_bindings", |
| 511 "//mojo/application/public/interfaces", | 517 "//mojo/application/public/interfaces", |
| 512 "//skia/public/interfaces", | 518 "//skia/public/interfaces", |
| 513 "//ui/mojo/geometry:interfaces", | 519 "//ui/mojo/geometry:interfaces", |
| 514 ] | 520 ] |
| 515 } | 521 } |
| OLD | NEW |