| 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/buildflag_header.gni") | 5 import("//build/buildflag_header.gni") |
| 6 import("//build/config/chrome_build.gni") | 6 import("//build/config/chrome_build.gni") |
| 7 import("//build/config/linux/pkg_config.gni") | 7 import("//build/config/linux/pkg_config.gni") |
| 8 import("//build/config/ui.gni") | 8 import("//build/config/ui.gni") |
| 9 import("//ui/ozone/ozone.gni") | 9 import("//ui/ozone/ozone.gni") |
| 10 import("//testing/test.gni") | 10 import("//testing/test.gni") |
| 11 | 11 |
| 12 declare_args() { | 12 declare_args() { |
| 13 enable_swiftshader = is_win | 13 enable_swiftshader = (is_win || (is_linux && !is_chromeos && use_x11)) && |
| 14 (target_cpu == "x86" || target_cpu == "x64") |
| 14 } | 15 } |
| 15 | 16 |
| 16 use_egl = is_win || is_android || is_linux | 17 use_egl = is_win || is_android || is_linux |
| 17 use_glx = use_x11 || ozone_platform_x11 | 18 use_glx = use_x11 || ozone_platform_x11 |
| 18 | 19 |
| 19 if (is_android) { | 20 if (is_android) { |
| 20 import("//build/config/android/config.gni") | 21 import("//build/config/android/config.gni") |
| 21 import("//build/config/android/rules.gni") | 22 import("//build/config/android/rules.gni") |
| 22 } | 23 } |
| 23 | 24 |
| (...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 sources = [ | 452 sources = [ |
| 452 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", | 453 "../android/java/src/org/chromium/ui/gl/SurfaceTextureListener.java", |
| 453 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
", | 454 "../android/java/src/org/chromium/ui/gl/SurfaceTexturePlatformWrapper.java
", |
| 454 ] | 455 ] |
| 455 public_deps = [ | 456 public_deps = [ |
| 456 ":surface_jni_headers", | 457 ":surface_jni_headers", |
| 457 ] | 458 ] |
| 458 jni_package = "ui/gl" | 459 jni_package = "ui/gl" |
| 459 } | 460 } |
| 460 } | 461 } |
| OLD | NEW |