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

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

Issue 986033002: Allow Crashpad to build in the Chromium tree (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Rewrap Created 5 years, 9 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
« no previous file with comments | « snapshot/snapshot.gyp ('k') | third_party/gtest/gtest.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 'targets': [ 16 'includes': [
17 { 17 '../../build/crashpad_in_chromium.gypi',
18 'target_name': 'gmock', 18 ],
19 'type': 'static_library', 19 'conditions': [
20 'dependencies': [ 20 ['crashpad_in_chromium==0', {
21 '../gtest/gtest.gyp:gtest', 21 'targets': [
22 ], 22 {
23 'include_dirs': [ 23 'target_name': 'gmock',
24 'gmock', 24 'type': 'static_library',
25 'gmock/include', 25 'dependencies': [
26 ], 26 '../gtest/gtest.gyp:gtest',
27 'sources': [ 27 ],
28 'gmock/include/gmock/gmock-actions.h', 28 'include_dirs': [
29 'gmock/include/gmock/gmock-cardinalities.h', 29 'gmock',
30 'gmock/include/gmock/gmock-generated-actions.h', 30 'gmock/include',
31 'gmock/include/gmock/gmock-generated-function-mockers.h', 31 ],
32 'gmock/include/gmock/gmock-generated-matchers.h', 32 'sources': [
33 'gmock/include/gmock/gmock-generated-nice-strict.h', 33 'gmock/include/gmock/gmock-actions.h',
34 'gmock/include/gmock/gmock-matchers.h', 34 'gmock/include/gmock/gmock-cardinalities.h',
35 'gmock/include/gmock/gmock-more-actions.h', 35 'gmock/include/gmock/gmock-generated-actions.h',
36 'gmock/include/gmock/gmock-more-matchers.h', 36 'gmock/include/gmock/gmock-generated-function-mockers.h',
37 'gmock/include/gmock/gmock-spec-builders.h', 37 'gmock/include/gmock/gmock-generated-matchers.h',
38 'gmock/include/gmock/gmock.h', 38 'gmock/include/gmock/gmock-generated-nice-strict.h',
39 'gmock/include/gmock/internal/gmock-generated-internal-utils.h', 39 'gmock/include/gmock/gmock-matchers.h',
40 'gmock/include/gmock/internal/gmock-internal-utils.h', 40 'gmock/include/gmock/gmock-more-actions.h',
41 'gmock/include/gmock/internal/gmock-port.h', 41 'gmock/include/gmock/gmock-more-matchers.h',
42 'gmock/src/gmock-all.cc', 42 'gmock/include/gmock/gmock-spec-builders.h',
43 'gmock/src/gmock-cardinalities.cc', 43 'gmock/include/gmock/gmock.h',
44 'gmock/src/gmock-internal-utils.cc', 44 'gmock/include/gmock/internal/gmock-generated-internal-utils.h',
45 'gmock/src/gmock-matchers.cc', 45 'gmock/include/gmock/internal/gmock-internal-utils.h',
46 'gmock/src/gmock-spec-builders.cc', 46 'gmock/include/gmock/internal/gmock-port.h',
47 'gmock/src/gmock.cc', 47 'gmock/src/gmock-all.cc',
48 ], 48 'gmock/src/gmock-cardinalities.cc',
49 'sources!': [ 49 'gmock/src/gmock-internal-utils.cc',
50 'gmock/src/gmock-all.cc', 50 'gmock/src/gmock-matchers.cc',
51 ], 51 'gmock/src/gmock-spec-builders.cc',
52 'gmock/src/gmock.cc',
53 ],
54 'sources!': [
55 'gmock/src/gmock-all.cc',
56 ],
52 57
53 # gmock relies heavily on objects with static storage duration. 58 # gmock relies heavily on objects with static storage duration.
54 'xcode_settings': { 59 'xcode_settings': {
55 'WARNING_CFLAGS!': [ 60 'WARNING_CFLAGS!': [
56 '-Wexit-time-destructors', 61 '-Wexit-time-destructors',
57 ], 62 ],
58 }, 63 },
59 'cflags!': [ 64 'cflags!': [
60 '-Wexit-time-destructors', 65 '-Wexit-time-destructors',
61 ], 66 ],
62 67
63 'direct_dependent_settings': { 68 'direct_dependent_settings': {
64 'include_dirs': [ 69 'include_dirs': [
65 'gmock/include', 70 'gmock/include',
66 ], 71 ],
67 'conditions': [
68 ['clang!=0', {
69 # The MOCK_METHODn() macros do not specify “override”, which
70 # triggers this warning in users: “error: 'Method' overrides a
71 # member function but is not marked 'override'
72 # [-Werror,-Winconsistent-missing-override]”. Suppress these
73 # warnings, and add -Wno-unknown-warning-option because only recent
74 # versions of clang (trunk r220703 and later, version 3.6 and
75 # later) recognize it.
76 'conditions': [ 72 'conditions': [
77 ['OS=="mac"', { 73 ['clang!=0', {
78 'xcode_settings': { 74 # The MOCK_METHODn() macros do not specify “override”, which
79 'WARNING_CFLAGS': [ 75 # triggers this warning in users: “error: 'Method' overrides a
80 '-Wno-inconsistent-missing-override', 76 # member function but is not marked 'override'
81 '-Wno-unknown-warning-option', 77 # [-Werror,-Winconsistent-missing-override]”. Suppress these
82 ], 78 # warnings, and add -Wno-unknown-warning-option because only
83 }, 79 # recent versions of clang (trunk r220703 and later, version
84 }], 80 # 3.6 and later) recognize it.
85 ['OS=="linux"', { 81 'conditions': [
86 'cflags': [ 82 ['OS=="mac"', {
87 '-Wno-inconsistent-missing-override', 83 'xcode_settings': {
88 '-Wno-unknown-warning-option', 84 'WARNING_CFLAGS': [
85 '-Wno-inconsistent-missing-override',
86 '-Wno-unknown-warning-option',
87 ],
88 },
89 }],
90 ['OS=="linux"', {
91 'cflags': [
92 '-Wno-inconsistent-missing-override',
93 '-Wno-unknown-warning-option',
94 ],
95 }],
89 ], 96 ],
90 }], 97 }],
91 ], 98 ],
92 }], 99 },
93 ], 100 'export_dependent_settings': [
94 }, 101 '../gtest/gtest.gyp:gtest',
95 'export_dependent_settings': [ 102 ],
96 '../gtest/gtest.gyp:gtest', 103 },
104 {
105 'target_name': 'gmock_main',
106 'type': 'static_library',
107 'dependencies': [
108 'gmock',
109 '../gtest/gtest.gyp:gtest',
110 ],
111 'sources': [
112 'gmock/src/gmock_main.cc',
113 ],
114 },
115 {
116 'target_name': 'gmock_test_executable',
117 'type': 'none',
118 'dependencies': [
119 'gmock',
120 '../gtest/gtest.gyp:gtest',
121 ],
122 'direct_dependent_settings': {
123 'type': 'executable',
124 'include_dirs': [
125 'gmock',
126 ],
127 },
128 'export_dependent_settings': [
129 'gmock',
130 '../gtest/gtest.gyp:gtest',
131 ],
132 },
133 {
134 'target_name': 'gmock_all_test',
135 'dependencies': [
136 'gmock_test_executable',
137 'gmock_main',
138 ],
139 'sources': [
140 'gmock/test/gmock-actions_test.cc',
141 'gmock/test/gmock-cardinalities_test.cc',
142 'gmock/test/gmock-generated-actions_test.cc',
143 'gmock/test/gmock-generated-function-mockers_test.cc',
144 'gmock/test/gmock-generated-internal-utils_test.cc',
145 'gmock/test/gmock-generated-matchers_test.cc',
146 'gmock/test/gmock-internal-utils_test.cc',
147 'gmock/test/gmock-matchers_test.cc',
148 'gmock/test/gmock-more-actions_test.cc',
149 'gmock/test/gmock-nice-strict_test.cc',
150 'gmock/test/gmock-port_test.cc',
151 'gmock/test/gmock_test.cc',
152 ],
153 },
154 {
155 'target_name': 'gmock_link_test',
156 'dependencies': [
157 'gmock_test_executable',
158 'gmock_main',
159 ],
160 'sources': [
161 'gmock/test/gmock_link_test.cc',
162 'gmock/test/gmock_link_test.h',
163 'gmock/test/gmock_link2_test.cc',
164 ],
165 },
166 {
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',
177 'dependencies': [
178 'gmock_test_executable',
179 ],
180 'sources': [
181 'gmock/test/gmock_stress_test.cc',
182 ],
183 },
184 {
185 'target_name': 'gmock_all_tests',
186 'type': 'none',
187 'dependencies': [
188 'gmock_all_test',
189 'gmock_link_test',
190 'gmock_spec_builders_test',
191 'gmock_stress_test',
192 ],
193 },
97 ], 194 ],
98 }, 195 }, { # else: crashpad_in_chromium!=0
99 { 196 'targets': [
100 'target_name': 'gmock_main', 197 {
101 'type': 'static_library', 198 'target_name': 'gmock',
102 'dependencies': [ 199 'type': 'none',
103 'gmock', 200 'dependencies': [
104 '../gtest/gtest.gyp:gtest', 201 '../../../../../testing/gmock.gyp:gmock',
Robert Sesek 2015/03/09 18:37:19 This would make moving the crashpad project in ups
Mark Mentovai 2015/03/09 19:18:09 Robert Sesek wrote:
202 ],
203 'export_dependent_settings': [
204 '../../../../../testing/gmock.gyp:gmock',
205 ],
206 },
207 {
208 'target_name': 'gmock_main',
209 'type': 'none',
210 'dependencies': [
211 '../../../../../testing/gmock.gyp:gmock_main',
212 ],
213 'export_dependent_settings': [
214 '../../../../../testing/gmock.gyp:gmock_main',
215 ],
216 },
105 ], 217 ],
106 'sources': [ 218 }],
107 'gmock/src/gmock_main.cc',
108 ],
109 },
110 {
111 'target_name': 'gmock_test_executable',
112 'type': 'none',
113 'dependencies': [
114 'gmock',
115 '../gtest/gtest.gyp:gtest',
116 ],
117 'direct_dependent_settings': {
118 'type': 'executable',
119 'include_dirs': [
120 'gmock',
121 ],
122 },
123 'export_dependent_settings': [
124 'gmock',
125 '../gtest/gtest.gyp:gtest',
126 ],
127 },
128 {
129 'target_name': 'gmock_all_test',
130 'dependencies': [
131 'gmock_test_executable',
132 'gmock_main',
133 ],
134 'sources': [
135 'gmock/test/gmock-actions_test.cc',
136 'gmock/test/gmock-cardinalities_test.cc',
137 'gmock/test/gmock-generated-actions_test.cc',
138 'gmock/test/gmock-generated-function-mockers_test.cc',
139 'gmock/test/gmock-generated-internal-utils_test.cc',
140 'gmock/test/gmock-generated-matchers_test.cc',
141 'gmock/test/gmock-internal-utils_test.cc',
142 'gmock/test/gmock-matchers_test.cc',
143 'gmock/test/gmock-more-actions_test.cc',
144 'gmock/test/gmock-nice-strict_test.cc',
145 'gmock/test/gmock-port_test.cc',
146 'gmock/test/gmock_test.cc',
147 ],
148 },
149 {
150 'target_name': 'gmock_link_test',
151 'dependencies': [
152 'gmock_test_executable',
153 'gmock_main',
154 ],
155 'sources': [
156 'gmock/test/gmock_link_test.cc',
157 'gmock/test/gmock_link_test.h',
158 'gmock/test/gmock_link2_test.cc',
159 ],
160 },
161 {
162 'target_name': 'gmock_spec_builders_test',
163 'dependencies': [
164 'gmock_test_executable',
165 ],
166 'sources': [
167 'gmock/test/gmock-spec-builders_test.cc',
168 ],
169 },
170 {
171 'target_name': 'gmock_stress_test',
172 'dependencies': [
173 'gmock_test_executable',
174 ],
175 'sources': [
176 'gmock/test/gmock_stress_test.cc',
177 ],
178 },
179 {
180 'target_name': 'gmock_all_tests',
181 'type': 'none',
182 'dependencies': [
183 'gmock_all_test',
184 'gmock_link_test',
185 'gmock_spec_builders_test',
186 'gmock_stress_test',
187 ],
188 },
189 ], 219 ],
190 } 220 }
OLDNEW
« no previous file with comments | « snapshot/snapshot.gyp ('k') | third_party/gtest/gtest.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698