| OLD | NEW |
| (Empty) |
| 1 # Copyright 2014 The Crashpad Authors. All rights reserved. | |
| 2 # | |
| 3 # Licensed under the Apache License, Version 2.0 (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 | |
| 6 # | |
| 7 # http://www.apache.org/licenses/LICENSE-2.0 | |
| 8 # | |
| 9 # Unless required by applicable law or agreed to in writing, software | |
| 10 # distributed under the License is distributed on an "AS IS" BASIS, | |
| 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 12 # See the License for the specific language governing permissions and | |
| 13 # limitations under the License. | |
| 14 | |
| 15 { | |
| 16 'includes': [ | |
| 17 '../../build/crashpad_in_chromium.gypi', | |
| 18 ], | |
| 19 'conditions': [ | |
| 20 ['crashpad_in_chromium==0', { | |
| 21 'targets': [ | |
| 22 { | |
| 23 'target_name': 'gmock', | |
| 24 'type': 'static_library', | |
| 25 'dependencies': [ | |
| 26 '../gtest/gtest.gyp:gtest', | |
| 27 ], | |
| 28 'include_dirs': [ | |
| 29 'gmock', | |
| 30 'gmock/include', | |
| 31 ], | |
| 32 'sources': [ | |
| 33 'gmock/include/gmock/gmock-actions.h', | |
| 34 'gmock/include/gmock/gmock-cardinalities.h', | |
| 35 'gmock/include/gmock/gmock-generated-actions.h', | |
| 36 'gmock/include/gmock/gmock-generated-function-mockers.h', | |
| 37 'gmock/include/gmock/gmock-generated-matchers.h', | |
| 38 'gmock/include/gmock/gmock-generated-nice-strict.h', | |
| 39 'gmock/include/gmock/gmock-matchers.h', | |
| 40 'gmock/include/gmock/gmock-more-actions.h', | |
| 41 'gmock/include/gmock/gmock-more-matchers.h', | |
| 42 'gmock/include/gmock/gmock-spec-builders.h', | |
| 43 'gmock/include/gmock/gmock.h', | |
| 44 'gmock/include/gmock/internal/gmock-generated-internal-utils.h', | |
| 45 'gmock/include/gmock/internal/gmock-internal-utils.h', | |
| 46 'gmock/include/gmock/internal/gmock-port.h', | |
| 47 'gmock/src/gmock-all.cc', | |
| 48 'gmock/src/gmock-cardinalities.cc', | |
| 49 'gmock/src/gmock-internal-utils.cc', | |
| 50 'gmock/src/gmock-matchers.cc', | |
| 51 'gmock/src/gmock-spec-builders.cc', | |
| 52 'gmock/src/gmock.cc', | |
| 53 ], | |
| 54 'sources!': [ | |
| 55 'gmock/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 ], | |
| 67 | |
| 68 'direct_dependent_settings': { | |
| 69 'include_dirs': [ | |
| 70 'gmock/include', | |
| 71 ], | |
| 72 'conditions': [ | |
| 73 ['clang!=0', { | |
| 74 # The MOCK_METHODn() macros do not specify “override”, which | |
| 75 # triggers this warning in users: “error: 'Method' overrides a | |
| 76 # member function but is not marked 'override' | |
| 77 # [-Werror,-Winconsistent-missing-override]”. Suppress these | |
| 78 # warnings, and add -Wno-unknown-warning-option because only | |
| 79 # recent versions of clang (trunk r220703 and later, version | |
| 80 # 3.6 and later) recognize it. | |
| 81 'conditions': [ | |
| 82 ['OS=="mac"', { | |
| 83 'xcode_settings': { | |
| 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 }], | |
| 96 ], | |
| 97 }], | |
| 98 ], | |
| 99 }, | |
| 100 'export_dependent_settings': [ | |
| 101 '../gtest/gtest.gyp:gtest', | |
| 102 ], | |
| 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 }, | |
| 194 ], | |
| 195 }, { # else: crashpad_in_chromium!=0 | |
| 196 'targets': [ | |
| 197 { | |
| 198 'target_name': 'gmock', | |
| 199 'type': 'none', | |
| 200 'dependencies': [ | |
| 201 '<(DEPTH)/testing/gmock.gyp:gmock', | |
| 202 ], | |
| 203 'export_dependent_settings': [ | |
| 204 '<(DEPTH)/testing/gmock.gyp:gmock', | |
| 205 ], | |
| 206 }, | |
| 207 { | |
| 208 'target_name': 'gmock_main', | |
| 209 'type': 'none', | |
| 210 'dependencies': [ | |
| 211 '<(DEPTH)/testing/gmock.gyp:gmock_main', | |
| 212 ], | |
| 213 'export_dependent_settings': [ | |
| 214 '<(DEPTH)/testing/gmock.gyp:gmock_main', | |
| 215 ], | |
| 216 }, | |
| 217 ], | |
| 218 }], | |
| 219 ], | |
| 220 } | |
| OLD | NEW |