Upstream version 5.34.92.0
[platform/framework/web/crosswalk.git] / src / third_party / angle / tests / tests.gyp
1 # Copyright (c) 2012 The ANGLE Project 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.
4
5 {
6     'targets':
7     [
8         {
9             'target_name': 'gtest',
10             'type': 'static_library',
11             'include_dirs':
12             [
13                 'third_party/googletest',
14                 'third_party/googletest/include',
15             ],
16             'sources':
17             [
18                 'third_party/googletest/src/gtest-all.cc',
19             ],
20             'defines':
21             [
22                 '_VARIADIC_MAX=10',
23             ],
24             'direct_dependent_settings':
25             {
26                 'defines':
27                 [
28                     '_VARIADIC_MAX=10',
29                 ],
30             },
31         },
32
33         {
34             'target_name': 'gmock',
35             'type': 'static_library',
36             'include_dirs':
37             [
38                 'third_party/googlemock',
39                 'third_party/googlemock/include',
40                 'third_party/googletest/include',
41             ],
42             'sources':
43             [
44                 'third_party/googlemock/src/gmock-all.cc',
45             ],
46             'defines':
47             [
48                 '_VARIADIC_MAX=10',
49             ],
50             'direct_dependent_settings':
51             {
52                 'defines':
53                 [
54                     '_VARIADIC_MAX=10',
55                 ],
56             },
57         },
58
59         {
60             'target_name': 'preprocessor_tests',
61             'type': 'executable',
62             'dependencies':
63             [
64                 '../src/angle.gyp:preprocessor',
65                 'gtest',
66                 'gmock',
67             ],
68             'include_dirs':
69             [
70                 '../src/compiler/preprocessor',
71                 'third_party/googletest/include',
72                 'third_party/googlemock/include',
73             ],
74             'sources':
75             [
76                 '<!@(python enumerate_files.py preprocessor_tests -types *.cpp *.h)'
77             ],
78         },
79
80         {
81             'target_name': 'compiler_tests',
82             'type': 'executable',
83             'dependencies':
84             [
85                 '../src/angle.gyp:translator_static',
86                 'gtest',
87                 'gmock',
88             ],
89             'include_dirs':
90             [
91                 '../include',
92                 '../src',
93                 'third_party/googletest/include',
94                 'third_party/googlemock/include',
95             ],
96             'sources':
97             [
98                 '<!@(python enumerate_files.py compiler_tests -types *.cpp *.h)'
99             ],
100         },
101     ],
102 }