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

Side by Side Diff: ui/ozone/gl/BUILD.gn

Issue 2254303002: Move GLImageOzoneNativePixmap tests to src/ui/ozone. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try as console test. Created 4 years, 3 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 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 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/linux/pkg_config.gni")
6 import("//testing/test.gni")
7
8 if (target_os == "chromeos") {
9 pkg_config("libdrm") {
10 packages = [ "libdrm" ]
11 }
12 }
13
5 component("gl") { 14 component("gl") {
6 sources = [ 15 sources = [
7 "gl_image_ozone_native_pixmap.cc", 16 "gl_image_ozone_native_pixmap.cc",
8 "gl_image_ozone_native_pixmap.h", 17 "gl_image_ozone_native_pixmap.h",
9 "ozone_gl_export.h", 18 "ozone_gl_export.h",
10 ] 19 ]
11 20
12 defines = [ "OZONE_GL_IMPLEMENTATION" ] 21 defines = [ "OZONE_GL_IMPLEMENTATION" ]
13 22
14 deps = [ 23 deps = [
15 "//ui/gfx", 24 "//ui/gfx",
16 "//ui/gl", 25 "//ui/gl",
17 "//ui/ozone:ozone_base", 26 "//ui/ozone:ozone_base",
18 ] 27 ]
19 } 28 }
29
30 test("ozone_gl_unittests") {
31 sources = [
32 "gl_image_ozone_native_pixmap_unittest.cc",
33 ]
34
35 if (target_os == "chromeos" && target_cpu != "arm") {
36 sources += [ "gl_image_ozone_native_pixmap_drm_unittest.cc" ]
37 }
38
39 deps = [
40 "//base/test:test_support",
41 "//testing/gtest",
42 "//ui/gfx",
43 "//ui/gl:run_all_unittests",
44 "//ui/gl:test_support",
45 "//ui/ozone",
46 ]
47
48 if (target_os == "chromeos") {
49 configs += [ ":libdrm" ]
50 }
51
52 data_deps = [
53 "//third_party/mesa:osmesa",
54 ]
55 }
OLDNEW
« no previous file with comments | « ui/gl/test/run_all_unittests.cc ('k') | ui/ozone/gl/gl_image_ozone_native_pixmap_drm_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698