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

Side by Side Diff: third_party/gtest/gmock.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 # gmock 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': 'gmock', 35 'target_name': 'gmock',
24 'type': 'static_library', 36 'type': 'static_library',
25 'dependencies': [ 37 'dependencies': [
26 '../gtest/gtest.gyp:gtest', 38 'gtest.gyp:gtest',
27 ], 39 ],
28 'include_dirs': [ 40 'include_dirs': [
29 'gmock', 41 'gtest/googlemock',
30 'gmock/include', 42 'gtest/googlemock/include',
31 ], 43 ],
32 'sources': [ 44 'sources': [
33 'gmock/include/gmock/gmock-actions.h', 45 'gtest/googlemock/include/gmock/gmock-actions.h',
34 'gmock/include/gmock/gmock-cardinalities.h', 46 'gtest/googlemock/include/gmock/gmock-cardinalities.h',
35 'gmock/include/gmock/gmock-generated-actions.h', 47 'gtest/googlemock/include/gmock/gmock-generated-actions.h',
36 'gmock/include/gmock/gmock-generated-function-mockers.h', 48 'gtest/googlemock/include/gmock/gmock-generated-function-mockers.h',
37 'gmock/include/gmock/gmock-generated-matchers.h', 49 'gtest/googlemock/include/gmock/gmock-generated-matchers.h',
38 'gmock/include/gmock/gmock-generated-nice-strict.h', 50 'gtest/googlemock/include/gmock/gmock-generated-nice-strict.h',
39 'gmock/include/gmock/gmock-matchers.h', 51 'gtest/googlemock/include/gmock/gmock-matchers.h',
40 'gmock/include/gmock/gmock-more-actions.h', 52 'gtest/googlemock/include/gmock/gmock-more-actions.h',
41 'gmock/include/gmock/gmock-more-matchers.h', 53 'gtest/googlemock/include/gmock/gmock-more-matchers.h',
42 'gmock/include/gmock/gmock-spec-builders.h', 54 'gtest/googlemock/include/gmock/gmock-spec-builders.h',
43 'gmock/include/gmock/gmock.h', 55 'gtest/googlemock/include/gmock/gmock.h',
44 'gmock/include/gmock/internal/gmock-generated-internal-utils.h', 56 'gtest/googlemock/include/gmock/internal/custom/gmock-generated-acti ons.h',
45 'gmock/include/gmock/internal/gmock-internal-utils.h', 57 'gtest/googlemock/include/gmock/internal/custom/gmock-matchers.h',
46 'gmock/include/gmock/internal/gmock-port.h', 58 'gtest/googlemock/include/gmock/internal/custom/gmock-port.h',
47 'gmock/src/gmock-all.cc', 59 'gtest/googlemock/include/gmock/internal/gmock-generated-internal-ut ils.h',
48 'gmock/src/gmock-cardinalities.cc', 60 'gtest/googlemock/include/gmock/internal/gmock-internal-utils.h',
49 'gmock/src/gmock-internal-utils.cc', 61 'gtest/googlemock/include/gmock/internal/gmock-port.h',
50 'gmock/src/gmock-matchers.cc', 62 'gtest/googlemock/src/gmock-all.cc',
51 'gmock/src/gmock-spec-builders.cc', 63 'gtest/googlemock/src/gmock-cardinalities.cc',
52 'gmock/src/gmock.cc', 64 'gtest/googlemock/src/gmock-internal-utils.cc',
65 'gtest/googlemock/src/gmock-matchers.cc',
66 'gtest/googlemock/src/gmock-spec-builders.cc',
67 'gtest/googlemock/src/gmock.cc',
53 ], 68 ],
54 'sources!': [ 69 'sources!': [
55 'gmock/src/gmock-all.cc', 70 'gtest/googlemock/src/gmock-all.cc',
56 ],
57
58 # gmock relies heavily on objects with static storage duration.
59 'xcode_settings': {
60 'WARNING_CFLAGS!': [
61 '-Wexit-time-destructors',
62 ],
63 },
64 'cflags!': [
65 '-Wexit-time-destructors',
66 ], 71 ],
67 72
68 'direct_dependent_settings': { 73 'direct_dependent_settings': {
69 'include_dirs': [ 74 'include_dirs': [
70 'gmock/include', 75 'gtest/googlemock/include',
71 ], 76 ],
72 'conditions': [ 77 'conditions': [
73 ['clang!=0', { 78 ['clang!=0', {
74 # The MOCK_METHODn() macros do not specify “override”, which 79 # The MOCK_METHODn() macros do not specify “override”, which
75 # triggers this warning in users: “error: 'Method' overrides a 80 # triggers this warning in users: “error: 'Method' overrides a
76 # member function but is not marked 'override' 81 # member function but is not marked 'override'
77 # [-Werror,-Winconsistent-missing-override]”. Suppress these 82 # [-Werror,-Winconsistent-missing-override]”. Suppress these
78 # warnings, and add -Wno-unknown-warning-option because only 83 # warnings, and add -Wno-unknown-warning-option because only
79 # recent versions of clang (trunk r220703 and later, version 84 # recent versions of clang (trunk r220703 and later, version
80 # 3.6 and later) recognize it. 85 # 3.6 and later) recognize it.
(...skipping 10 matching lines...) Expand all
91 'cflags': [ 96 'cflags': [
92 '-Wno-inconsistent-missing-override', 97 '-Wno-inconsistent-missing-override',
93 '-Wno-unknown-warning-option', 98 '-Wno-unknown-warning-option',
94 ], 99 ],
95 }], 100 }],
96 ], 101 ],
97 }], 102 }],
98 ], 103 ],
99 }, 104 },
100 'export_dependent_settings': [ 105 'export_dependent_settings': [
101 '../gtest/gtest.gyp:gtest', 106 'gtest.gyp:gtest',
102 ], 107 ],
103 }, 108 },
104 { 109 {
105 'target_name': 'gmock_main', 110 'target_name': 'gmock_main',
106 'type': 'static_library', 111 'type': 'static_library',
107 'dependencies': [ 112 'dependencies': [
108 'gmock', 113 'gmock',
109 '../gtest/gtest.gyp:gtest', 114 'gtest.gyp:gtest',
110 ], 115 ],
111 'sources': [ 116 'sources': [
112 'gmock/src/gmock_main.cc', 117 'gtest/googlemock/src/gmock_main.cc',
113 ], 118 ],
114 }, 119 },
115 { 120 {
116 'target_name': 'gmock_test_executable', 121 'target_name': 'gmock_test_executable',
117 'type': 'none', 122 'type': 'none',
118 'dependencies': [ 123 'dependencies': [
119 'gmock', 124 'gmock',
120 '../gtest/gtest.gyp:gtest', 125 'gtest.gyp:gtest',
121 ], 126 ],
122 'direct_dependent_settings': { 127 'direct_dependent_settings': {
123 'type': 'executable', 128 'type': 'executable',
124 'include_dirs': [ 129 'include_dirs': [
125 'gmock', 130 'gtest/googlemock',
126 ], 131 ],
127 }, 132 },
128 'export_dependent_settings': [ 133 'export_dependent_settings': [
129 'gmock', 134 'gmock',
130 '../gtest/gtest.gyp:gtest', 135 'gtest.gyp:gtest',
131 ], 136 ],
132 }, 137 },
133 { 138 {
134 'target_name': 'gmock_all_test', 139 'target_name': 'gmock_all_test',
135 'dependencies': [ 140 'dependencies': [
136 'gmock_test_executable', 141 'gmock_test_executable',
137 'gmock_main', 142 'gmock_main',
138 ], 143 ],
144 'include_dirs': [
145 'gtest/googletest',
146 ],
139 'sources': [ 147 'sources': [
140 'gmock/test/gmock-actions_test.cc', 148 'gtest/googlemock/test/gmock-actions_test.cc',
141 'gmock/test/gmock-cardinalities_test.cc', 149 'gtest/googlemock/test/gmock-cardinalities_test.cc',
142 'gmock/test/gmock-generated-actions_test.cc', 150 'gtest/googlemock/test/gmock-generated-actions_test.cc',
143 'gmock/test/gmock-generated-function-mockers_test.cc', 151 'gtest/googlemock/test/gmock-generated-function-mockers_test.cc',
144 'gmock/test/gmock-generated-internal-utils_test.cc', 152 'gtest/googlemock/test/gmock-generated-internal-utils_test.cc',
145 'gmock/test/gmock-generated-matchers_test.cc', 153 'gtest/googlemock/test/gmock-generated-matchers_test.cc',
146 'gmock/test/gmock-internal-utils_test.cc', 154 'gtest/googlemock/test/gmock-internal-utils_test.cc',
147 'gmock/test/gmock-matchers_test.cc', 155 'gtest/googlemock/test/gmock-matchers_test.cc',
148 'gmock/test/gmock-more-actions_test.cc', 156 'gtest/googlemock/test/gmock-more-actions_test.cc',
149 'gmock/test/gmock-nice-strict_test.cc', 157 'gtest/googlemock/test/gmock-nice-strict_test.cc',
150 'gmock/test/gmock-port_test.cc', 158 'gtest/googlemock/test/gmock-port_test.cc',
151 'gmock/test/gmock_test.cc', 159 'gtest/googlemock/test/gmock-spec-builders_test.cc',
160 'gtest/googlemock/test/gmock_test.cc',
152 ], 161 ],
153 }, 162 },
154 { 163 {
155 'target_name': 'gmock_link_test', 164 'target_name': 'gmock_link_test',
156 'dependencies': [ 165 'dependencies': [
157 'gmock_test_executable', 166 'gmock_test_executable',
158 'gmock_main', 167 'gmock_main',
159 ], 168 ],
160 'sources': [ 169 'sources': [
161 'gmock/test/gmock_link_test.cc', 170 'gtest/googlemock/test/gmock_link_test.cc',
162 'gmock/test/gmock_link_test.h', 171 'gtest/googlemock/test/gmock_link_test.h',
163 'gmock/test/gmock_link2_test.cc', 172 'gtest/googlemock/test/gmock_link2_test.cc',
164 ], 173 ],
165 }, 174 },
166 { 175 {
167 'target_name': 'gmock_spec_builders_test',
168 'dependencies': [
169 'gmock_test_executable',
170 ],
171 'sources': [
172 'gmock/test/gmock-spec-builders_test.cc',
173 ],
174 },
175 {
176 'target_name': 'gmock_stress_test', 176 'target_name': 'gmock_stress_test',
177 'dependencies': [ 177 'dependencies': [
178 'gmock_test_executable', 178 'gmock_test_executable',
179 ], 179 ],
180 'sources': [ 180 'sources': [
181 'gmock/test/gmock_stress_test.cc', 181 'gtest/googlemock/test/gmock_stress_test.cc',
182 ], 182 ],
183 }, 183 },
184 { 184 {
185 'target_name': 'gmock_all_tests', 185 'target_name': 'gmock_all_tests',
186 'type': 'none', 186 'type': 'none',
187 'dependencies': [ 187 'dependencies': [
188 'gmock_all_test', 188 'gmock_all_test',
189 'gmock_link_test', 189 'gmock_link_test',
190 'gmock_spec_builders_test',
191 'gmock_stress_test', 190 'gmock_stress_test',
192 ], 191 ],
193 }, 192 },
194 ], 193 ],
195 }, { # else: crashpad_in_chromium!=0 194 }, { # else: crashpad_in_chromium!=0
196 'targets': [ 195 'targets': [
197 { 196 {
198 'target_name': 'gmock', 197 'target_name': 'gmock',
199 'type': 'none', 198 'type': 'none',
200 'dependencies': [ 199 'dependencies': [
(...skipping 10 matching lines...) Expand all
211 '<(DEPTH)/testing/gmock.gyp:gmock_main', 210 '<(DEPTH)/testing/gmock.gyp:gmock_main',
212 ], 211 ],
213 'export_dependent_settings': [ 212 'export_dependent_settings': [
214 '<(DEPTH)/testing/gmock.gyp:gmock_main', 213 '<(DEPTH)/testing/gmock.gyp:gmock_main',
215 ], 214 ],
216 }, 215 },
217 ], 216 ],
218 }], 217 }],
219 ], 218 ],
220 } 219 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698