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

Side by Side Diff: third_party/gtest/gtest.gyp

Issue 1404033002: Switch googletest and googlemock to pull from the GitHub git repository (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: 71a26ac68b28 Created 5 years, 1 month 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 2014 The Crashpad Authors. All rights reserved. 1 # Copyright 2014 The Crashpad Authors. All rights reserved.
2 # 2 #
3 # Licensed under the Apache License, Version 2.0 (the "License"); 3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License. 4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at 5 # You may obtain a copy of the License at
6 # 6 #
7 # http://www.apache.org/licenses/LICENSE-2.0 7 # http://www.apache.org/licenses/LICENSE-2.0
8 # 8 #
9 # Unless required by applicable law or agreed to in writing, software 9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS, 10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and 12 # See the License for the specific language governing permissions and
13 # limitations under the License. 13 # limitations under the License.
14 14
15 { 15 {
16 'includes': [ 16 'includes': [
17 '../../build/crashpad_in_chromium.gypi', 17 '../../build/crashpad_in_chromium.gypi',
18 ], 18 ],
19 'conditions': [ 19 'conditions': [
20 ['crashpad_in_chromium==0', { 20 ['crashpad_in_chromium==0', {
21 'target_defaults': {
22 # gtest relies heavily on objects with static storage duration.
23 'xcode_settings': {
24 'WARNING_CFLAGS!': [
25 '-Wexit-time-destructors',
26 ],
27 },
28 'cflags!': [
29 '-Wexit-time-destructors',
30 ],
31 },
32
21 'targets': [ 33 'targets': [
22 { 34 {
23 'target_name': 'gtest', 35 'target_name': 'gtest',
24 'type': 'static_library', 36 'type': 'static_library',
25 'include_dirs': [ 37 'include_dirs': [
26 'gtest', 38 'gtest/googletest',
27 'gtest/include', 39 'gtest/googletest/include',
28 ], 40 ],
29 'sources': [ 41 'sources': [
30 'gtest/include/gtest/gtest-death-test.h', 42 'gtest/googletest/include/gtest/gtest-death-test.h',
31 'gtest/include/gtest/gtest-message.h', 43 'gtest/googletest/include/gtest/gtest-message.h',
32 'gtest/include/gtest/gtest-param-test.h', 44 'gtest/googletest/include/gtest/gtest-param-test.h',
33 'gtest/include/gtest/gtest-printers.h', 45 'gtest/googletest/include/gtest/gtest-printers.h',
34 'gtest/include/gtest/gtest-spi.h', 46 'gtest/googletest/include/gtest/gtest-spi.h',
35 'gtest/include/gtest/gtest-test-part.h', 47 'gtest/googletest/include/gtest/gtest-test-part.h',
36 'gtest/include/gtest/gtest-typed-test.h', 48 'gtest/googletest/include/gtest/gtest-typed-test.h',
37 'gtest/include/gtest/gtest.h', 49 'gtest/googletest/include/gtest/gtest.h',
38 'gtest/include/gtest/gtest_pred_impl.h', 50 'gtest/googletest/include/gtest/gtest_pred_impl.h',
39 'gtest/include/gtest/gtest_prod.h', 51 'gtest/googletest/include/gtest/gtest_prod.h',
40 'gtest/include/gtest/internal/gtest-death-test-internal.h', 52 'gtest/googletest/include/gtest/internal/custom/gtest-port.h',
41 'gtest/include/gtest/internal/gtest-filepath.h', 53 'gtest/googletest/include/gtest/internal/custom/gtest-printers.h',
42 'gtest/include/gtest/internal/gtest-internal.h', 54 'gtest/googletest/include/gtest/internal/custom/gtest.h',
43 'gtest/include/gtest/internal/gtest-linked_ptr.h', 55 'gtest/googletest/include/gtest/internal/gtest-death-test-internal.h ',
44 'gtest/include/gtest/internal/gtest-param-util-generated.h', 56 'gtest/googletest/include/gtest/internal/gtest-filepath.h',
45 'gtest/include/gtest/internal/gtest-param-util.h', 57 'gtest/googletest/include/gtest/internal/gtest-internal.h',
46 'gtest/include/gtest/internal/gtest-port.h', 58 'gtest/googletest/include/gtest/internal/gtest-linked_ptr.h',
47 'gtest/include/gtest/internal/gtest-string.h', 59 'gtest/googletest/include/gtest/internal/gtest-param-util-generated. h',
48 'gtest/include/gtest/internal/gtest-tuple.h', 60 'gtest/googletest/include/gtest/internal/gtest-param-util.h',
49 'gtest/include/gtest/internal/gtest-type-util.h', 61 'gtest/googletest/include/gtest/internal/gtest-port-arch.h',
50 'gtest/src/gtest.cc', 62 'gtest/googletest/include/gtest/internal/gtest-port.h',
51 'gtest/src/gtest-death-test.cc', 63 'gtest/googletest/include/gtest/internal/gtest-string.h',
52 'gtest/src/gtest-filepath.cc', 64 'gtest/googletest/include/gtest/internal/gtest-tuple.h',
53 'gtest/src/gtest-port.cc', 65 'gtest/googletest/include/gtest/internal/gtest-type-util.h',
54 'gtest/src/gtest-printers.cc', 66 'gtest/googletest/src/gtest-all.cc',
55 'gtest/src/gtest-test-part.cc', 67 'gtest/googletest/src/gtest-death-test.cc',
56 'gtest/src/gtest-typed-test.cc', 68 'gtest/googletest/src/gtest-filepath.cc',
69 'gtest/googletest/src/gtest-internal-inl.h',
70 'gtest/googletest/src/gtest-port.cc',
71 'gtest/googletest/src/gtest-printers.cc',
72 'gtest/googletest/src/gtest-test-part.cc',
73 'gtest/googletest/src/gtest-typed-test.cc',
74 'gtest/googletest/src/gtest.cc',
57 ], 75 ],
58 'sources!': [ 76 'sources!': [
59 'gtest/src/gtest-all.cc', 77 'gtest/googletest/src/gtest-all.cc',
60 ],
61
62 # gtest relies heavily on objects with static storage duration.
63 'xcode_settings': {
64 'WARNING_CFLAGS!': [
65 '-Wexit-time-destructors',
66 ],
67 },
68 'cflags!': [
69 '-Wexit-time-destructors',
70 ], 78 ],
71 79
72 'direct_dependent_settings': { 80 'direct_dependent_settings': {
73 'include_dirs': [ 81 'include_dirs': [
74 'gtest/include', 82 'gtest/googletest/include',
75 ], 83 ],
76 }, 84 },
77 }, 85 },
78 { 86 {
79 'target_name': 'gtest_main', 87 'target_name': 'gtest_main',
80 'type': 'static_library', 88 'type': 'static_library',
81 'dependencies': [ 89 'dependencies': [
82 'gtest', 90 'gtest',
83 ], 91 ],
84 'sources': [ 92 'sources': [
85 'gtest/src/gtest_main.cc', 93 'gtest/googletest/src/gtest_main.cc',
86 ], 94 ],
87 }, 95 },
88 { 96 {
89 'target_name': 'gtest_test_executable', 97 'target_name': 'gtest_test_executable',
90 'type': 'none', 98 'type': 'none',
91 'dependencies': [ 99 'dependencies': [
92 'gtest', 100 'gtest',
93 ], 101 ],
94 'direct_dependent_settings': { 102 'direct_dependent_settings': {
95 'type': 'executable', 103 'type': 'executable',
96 'include_dirs': [ 104 'include_dirs': [
97 'gtest', 105 'gtest/googletest',
98 ], 106 ],
99 }, 107 },
100 'export_dependent_settings': [ 108 'export_dependent_settings': [
101 'gtest', 109 'gtest',
102 ], 110 ],
103 }, 111 },
104 { 112 {
105 'target_name': 'gtest_all_test', 113 'target_name': 'gtest_all_test',
106 'dependencies': [ 114 'dependencies': [
107 'gtest_test_executable', 115 'gtest_test_executable',
108 'gtest_main', 116 'gtest_main',
109 ], 117 ],
110 'sources': [ 118 'sources': [
111 'gtest/test/gtest-death-test_test.cc', 119 'gtest/googletest/test/gtest-death-test_test.cc',
112 'gtest/test/gtest-filepath_test.cc', 120 'gtest/googletest/test/gtest-filepath_test.cc',
113 'gtest/test/gtest-linked_ptr_test.cc', 121 'gtest/googletest/test/gtest-linked_ptr_test.cc',
114 'gtest/test/gtest-message_test.cc', 122 'gtest/googletest/test/gtest-message_test.cc',
115 'gtest/test/gtest-options_test.cc', 123 'gtest/googletest/test/gtest-options_test.cc',
116 'gtest/test/gtest-port_test.cc', 124 'gtest/googletest/test/gtest-port_test.cc',
117 'gtest/test/gtest-printers_test.cc', 125 'gtest/googletest/test/gtest-printers_test.cc',
118 'gtest/test/gtest-test-part_test.cc', 126 'gtest/googletest/test/gtest-test-part_test.cc',
119 'gtest/test/gtest-typed-test_test.cc', 127 'gtest/googletest/test/gtest-typed-test2_test.cc',
120 'gtest/test/gtest-typed-test_test.h', 128 'gtest/googletest/test/gtest-typed-test_test.cc',
121 'gtest/test/gtest-typed-test2_test.cc', 129 'gtest/googletest/test/gtest-typed-test_test.h',
122 'gtest/test/gtest_main_unittest.cc', 130 'gtest/googletest/test/gtest_main_unittest.cc',
123 'gtest/test/gtest_pred_impl_unittest.cc', 131 'gtest/googletest/test/gtest_pred_impl_unittest.cc',
124 'gtest/test/gtest_prod_test.cc', 132 'gtest/googletest/test/gtest_prod_test.cc',
125 'gtest/test/gtest_unittest.cc', 133 'gtest/googletest/test/gtest_unittest.cc',
126 'gtest/test/production.cc', 134 'gtest/googletest/test/production.cc',
127 'gtest/test/production.h', 135 'gtest/googletest/test/production.h',
128 ], 136 ],
129 }, 137 },
130 { 138 {
131 'target_name': 'gtest_environment_test', 139 'target_name': 'gtest_environment_test',
132 'dependencies': [ 140 'dependencies': [
133 'gtest_test_executable', 141 'gtest_test_executable',
134 ], 142 ],
135 'sources': [ 143 'sources': [
136 'gtest/test/gtest_environment_test.cc', 144 'gtest/googletest/test/gtest_environment_test.cc',
137 ], 145 ],
138 }, 146 },
139 { 147 {
140 'target_name': 'gtest_listener_test', 148 'target_name': 'gtest_listener_test',
141 'dependencies': [ 149 'dependencies': [
142 'gtest_test_executable', 150 'gtest_test_executable',
143 ], 151 ],
144 'sources': [ 152 'sources': [
145 'gtest/test/gtest-listener_test.cc', 153 'gtest/googletest/test/gtest-listener_test.cc',
146 ], 154 ],
147 }, 155 },
148 { 156 {
149 'target_name': 'gtest_no_test', 157 'target_name': 'gtest_no_test',
150 'dependencies': [ 158 'dependencies': [
151 'gtest_test_executable', 159 'gtest_test_executable',
152 ], 160 ],
153 'sources': [ 161 'sources': [
154 'gtest/test/gtest_no_test_unittest.cc', 162 'gtest/googletest/test/gtest_no_test_unittest.cc',
155 ], 163 ],
156 }, 164 },
157 { 165 {
158 'target_name': 'gtest_param_test', 166 'target_name': 'gtest_param_test',
159 'dependencies': [ 167 'dependencies': [
160 'gtest_test_executable', 168 'gtest_test_executable',
161 ], 169 ],
162 'sources': [ 170 'sources': [
163 'gtest/test/gtest-param-test_test.cc', 171 'gtest/googletest/test/gtest-param-test2_test.cc',
164 'gtest/test/gtest-param-test_test.h', 172 'gtest/googletest/test/gtest-param-test_test.cc',
165 'gtest/test/gtest-param-test2_test.cc', 173 'gtest/googletest/test/gtest-param-test_test.h',
166 ], 174 ],
167 }, 175 },
168 { 176 {
169 'target_name': 'gtest_premature_exit_test', 177 'target_name': 'gtest_premature_exit_test',
170 'dependencies': [ 178 'dependencies': [
171 'gtest_test_executable', 179 'gtest_test_executable',
172 ], 180 ],
173 'sources': [ 181 'sources': [
174 'gtest/test/gtest_premature_exit_test.cc', 182 'gtest/googletest/test/gtest_premature_exit_test.cc',
175 ], 183 ],
176 }, 184 },
177 { 185 {
178 'target_name': 'gtest_repeat_test', 186 'target_name': 'gtest_repeat_test',
179 'dependencies': [ 187 'dependencies': [
180 'gtest_test_executable', 188 'gtest_test_executable',
181 ], 189 ],
182 'sources': [ 190 'sources': [
183 'gtest/test/gtest_repeat_test.cc', 191 'gtest/googletest/test/gtest_repeat_test.cc',
184 ], 192 ],
185 }, 193 },
186 { 194 {
187 'target_name': 'gtest_sole_header_test', 195 'target_name': 'gtest_sole_header_test',
188 'dependencies': [ 196 'dependencies': [
189 'gtest_test_executable', 197 'gtest_test_executable',
190 'gtest_main', 198 'gtest_main',
191 ], 199 ],
192 'sources': [ 200 'sources': [
193 'gtest/test/gtest_sole_header_test.cc', 201 'gtest/googletest/test/gtest_sole_header_test.cc',
194 ], 202 ],
195 }, 203 },
196 { 204 {
197 'target_name': 'gtest_stress_test', 205 'target_name': 'gtest_stress_test',
198 'dependencies': [ 206 'dependencies': [
199 'gtest_test_executable', 207 'gtest_test_executable',
200 ], 208 ],
201 'sources': [ 209 'sources': [
202 'gtest/test/gtest_stress_test.cc', 210 'gtest/googletest/test/gtest_stress_test.cc',
203 ], 211 ],
204 }, 212 },
205 { 213 {
206 'target_name': 'gtest_unittest_api_test', 214 'target_name': 'gtest_unittest_api_test',
207 'dependencies': [ 215 'dependencies': [
208 'gtest_test_executable', 216 'gtest_test_executable',
209 ], 217 ],
210 'sources': [ 218 'sources': [
211 'gtest/test/gtest-unittest-api_test.cc', 219 'gtest/googletest/test/gtest-unittest-api_test.cc',
212 ], 220 ],
213 }, 221 },
214 { 222 {
215 'target_name': 'gtest_all_tests', 223 'target_name': 'gtest_all_tests',
216 'type': 'none', 224 'type': 'none',
217 'dependencies': [ 225 'dependencies': [
218 'gtest_all_test', 226 'gtest_all_test',
219 'gtest_environment_test', 227 'gtest_environment_test',
228 'gtest_listener_test',
220 'gtest_no_test', 229 'gtest_no_test',
221 'gtest_param_test', 230 'gtest_param_test',
222 'gtest_premature_exit_test', 231 'gtest_premature_exit_test',
223 'gtest_repeat_test', 232 'gtest_repeat_test',
224 'gtest_sole_header_test', 233 'gtest_sole_header_test',
225 'gtest_stress_test', 234 'gtest_stress_test',
226 'gtest_unittest_api_test', 235 'gtest_unittest_api_test',
227 ], 236 ],
228 }, 237 },
229 ], 238 ],
(...skipping 16 matching lines...) Expand all
246 '<(DEPTH)/testing/gtest.gyp:gtest_main', 255 '<(DEPTH)/testing/gtest.gyp:gtest_main',
247 ], 256 ],
248 'export_dependent_settings': [ 257 'export_dependent_settings': [
249 '<(DEPTH)/testing/gtest.gyp:gtest_main', 258 '<(DEPTH)/testing/gtest.gyp:gtest_main',
250 ], 259 ],
251 }, 260 },
252 ], 261 ],
253 }], 262 }],
254 ], 263 ],
255 } 264 }
OLDNEW
« client/client_test.gyp ('K') | « third_party/gtest/gmock.gyp ('k') | util/util_test.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698