Exclude TrayIMETest.PerformActionOnDetailedView under valgrind, where it crashes.
[chromium-blink-merge.git] / ui / gl / gl_tests.gyp
blob4f7e2dd865626505637a4e4c7af3754454b969a0
1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
6   'variables': {
7     'chromium_code': 1,
8   },
9   'targets': [
10     {
11       'target_name': 'gl_unittests',
12       'type': '<(gtest_target_type)',
13       'sources': [
14         'test/run_all_unittests.cc',
15         'gpu_timing_unittest.cc',
16         'gl_api_unittest.cc',
17       ],
18       'include_dirs': [
19         '<(DEPTH)/third_party/khronos',
20       ],
21       'dependencies': [
22         '<(DEPTH)/base/base.gyp:base',
23         '<(DEPTH)/base/base.gyp:test_support_base',
24         '<(DEPTH)/testing/gmock.gyp:gmock',
25         '<(DEPTH)/testing/gtest.gyp:gtest',
26         '<(DEPTH)/ui/gl/gl.gyp:gl',
27         '<(DEPTH)/ui/gl/gl.gyp:gl_test_support',
28         '<(DEPTH)/ui/gl/gl.gyp:gl_unittest_utils',
29       ],
30       'conditions': [
31         ['OS == "android"', {
32           'dependencies': [
33             '<(DEPTH)/testing/android/native_test.gyp:native_test_native_code',
34           ],
35         }],
36         ['OS in ("win", "android", "linux")', {
37           'sources': [
38             'egl_api_unittest.cc',
39             'test/egl_initialization_displays_unittest.cc',
40           ],
41         }],
42         ['OS == "linux" and use_x11 == 1', {
43           'sources': [
44             'glx_api_unittest.cc',
45           ],
46         }],
47         ['OS == "win"', {
48           'sources': [
49             'wgl_api_unittest.cc',
50           ],
51         }],
52       ],
53     }
54   ],
55   'conditions': [
56     ['OS == "android"', {
57       'targets': [
58         {
59           'target_name': 'gl_unittests_apk',
60           'type': 'none',
61           'dependencies': [
62             'gl_unittests',
63           ],
64           'variables': {
65             'test_suite_name': 'gl_unittests',
66           },
67           'includes': [ '../../build/apk_test.gypi' ],
68         },
69       ],
70     }],
71     ['test_isolation_mode != "noop"', {
72       'targets': [
73         {
74           'target_name': 'gl_unittests_run',
75           'type': 'none',
76           'dependencies': [
77             'gl_unittests',
78           ],
79           'includes': [
80             '../../build/isolate.gypi',
81           ],
82           'sources': [
83             'gl_unittests.isolate',
84           ],
85           'conditions': [
86             ['use_x11 == 1', {
87               'dependencies': [
88                 '<(DEPTH)/tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
89               ],
90             }],
91           ],
92         },
93       ],
94     }],
95   ],