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

Unified Diff: ui/gl/BUILD.gn

Issue 2060753004: gl: Build drm dependent test only when target_os == "chromeos". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/BUILD.gn
diff --git a/ui/gl/BUILD.gn b/ui/gl/BUILD.gn
index 348129dfec19edc27288b79d75e8260a97f6d8b0..4830ec3aef7f55199cea72b0b55f174d46c91c03 100644
--- a/ui/gl/BUILD.gn
+++ b/ui/gl/BUILD.gn
@@ -14,7 +14,7 @@ if (is_android) {
import("//build/config/android/rules.gni")
}
-if (is_chromeos) {
+if (target_os == "chromeos") {
pkg_config("libdrm") {
packages = [ "libdrm" ]
}
@@ -359,7 +359,7 @@ test("gl_unittests") {
if (use_ozone) {
sources += [ "gl_image_ozone_native_pixmap_unittest.cc" ]
- if (is_chromeos && target_cpu != "arm") {
+ if (target_os == "chromeos" && target_cpu != "arm") {
sources += [ "gl_image_ozone_native_pixmap_drm_unittest.cc" ]
}
}
@@ -388,7 +388,7 @@ test("gl_unittests") {
"//ui/gl/init",
]
- if (is_chromeos) {
+ if (target_os == "chromeos") {
configs += [ ":libdrm" ]
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698