| OLD | NEW |
| 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': 'gtest', | 18 ], |
| 19 'type': 'static_library', | 19 'conditions': [ |
| 20 'include_dirs': [ | 20 ['crashpad_in_chromium==0', { |
| 21 'gtest', | 21 'targets': [ |
| 22 'gtest/include', | 22 { |
| 23 'target_name': 'gtest', |
| 24 'type': 'static_library', |
| 25 'include_dirs': [ |
| 26 'gtest', |
| 27 'gtest/include', |
| 28 ], |
| 29 'sources': [ |
| 30 'gtest/include/gtest/gtest-death-test.h', |
| 31 'gtest/include/gtest/gtest-message.h', |
| 32 'gtest/include/gtest/gtest-param-test.h', |
| 33 'gtest/include/gtest/gtest-printers.h', |
| 34 'gtest/include/gtest/gtest-spi.h', |
| 35 'gtest/include/gtest/gtest-test-part.h', |
| 36 'gtest/include/gtest/gtest-typed-test.h', |
| 37 'gtest/include/gtest/gtest.h', |
| 38 'gtest/include/gtest/gtest_pred_impl.h', |
| 39 'gtest/include/gtest/gtest_prod.h', |
| 40 'gtest/include/gtest/internal/gtest-death-test-internal.h', |
| 41 'gtest/include/gtest/internal/gtest-filepath.h', |
| 42 'gtest/include/gtest/internal/gtest-internal.h', |
| 43 'gtest/include/gtest/internal/gtest-linked_ptr.h', |
| 44 'gtest/include/gtest/internal/gtest-param-util-generated.h', |
| 45 'gtest/include/gtest/internal/gtest-param-util.h', |
| 46 'gtest/include/gtest/internal/gtest-port.h', |
| 47 'gtest/include/gtest/internal/gtest-string.h', |
| 48 'gtest/include/gtest/internal/gtest-tuple.h', |
| 49 'gtest/include/gtest/internal/gtest-type-util.h', |
| 50 'gtest/src/gtest.cc', |
| 51 'gtest/src/gtest-death-test.cc', |
| 52 'gtest/src/gtest-filepath.cc', |
| 53 'gtest/src/gtest-port.cc', |
| 54 'gtest/src/gtest-printers.cc', |
| 55 'gtest/src/gtest-test-part.cc', |
| 56 'gtest/src/gtest-typed-test.cc', |
| 57 ], |
| 58 'sources!': [ |
| 59 'gtest/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 ], |
| 71 |
| 72 'direct_dependent_settings': { |
| 73 'include_dirs': [ |
| 74 'gtest/include', |
| 75 ], |
| 76 }, |
| 77 }, |
| 78 { |
| 79 'target_name': 'gtest_main', |
| 80 'type': 'static_library', |
| 81 'dependencies': [ |
| 82 'gtest', |
| 83 ], |
| 84 'sources': [ |
| 85 'gtest/src/gtest_main.cc', |
| 86 ], |
| 87 }, |
| 88 { |
| 89 'target_name': 'gtest_test_executable', |
| 90 'type': 'none', |
| 91 'dependencies': [ |
| 92 'gtest', |
| 93 ], |
| 94 'direct_dependent_settings': { |
| 95 'type': 'executable', |
| 96 'include_dirs': [ |
| 97 'gtest', |
| 98 ], |
| 99 }, |
| 100 'export_dependent_settings': [ |
| 101 'gtest', |
| 102 ], |
| 103 }, |
| 104 { |
| 105 'target_name': 'gtest_all_test', |
| 106 'dependencies': [ |
| 107 'gtest_test_executable', |
| 108 'gtest_main', |
| 109 ], |
| 110 'sources': [ |
| 111 'gtest/test/gtest-death-test_test.cc', |
| 112 'gtest/test/gtest-filepath_test.cc', |
| 113 'gtest/test/gtest-linked_ptr_test.cc', |
| 114 'gtest/test/gtest-message_test.cc', |
| 115 'gtest/test/gtest-options_test.cc', |
| 116 'gtest/test/gtest-port_test.cc', |
| 117 'gtest/test/gtest-printers_test.cc', |
| 118 'gtest/test/gtest-test-part_test.cc', |
| 119 'gtest/test/gtest-typed-test_test.cc', |
| 120 'gtest/test/gtest-typed-test_test.h', |
| 121 'gtest/test/gtest-typed-test2_test.cc', |
| 122 'gtest/test/gtest_main_unittest.cc', |
| 123 'gtest/test/gtest_pred_impl_unittest.cc', |
| 124 'gtest/test/gtest_prod_test.cc', |
| 125 'gtest/test/gtest_unittest.cc', |
| 126 'gtest/test/production.cc', |
| 127 'gtest/test/production.h', |
| 128 ], |
| 129 }, |
| 130 { |
| 131 'target_name': 'gtest_environment_test', |
| 132 'dependencies': [ |
| 133 'gtest_test_executable', |
| 134 ], |
| 135 'sources': [ |
| 136 'gtest/test/gtest_environment_test.cc', |
| 137 ], |
| 138 }, |
| 139 { |
| 140 'target_name': 'gtest_listener_test', |
| 141 'dependencies': [ |
| 142 'gtest_test_executable', |
| 143 ], |
| 144 'sources': [ |
| 145 'gtest/test/gtest-listener_test.cc', |
| 146 ], |
| 147 }, |
| 148 { |
| 149 'target_name': 'gtest_no_test', |
| 150 'dependencies': [ |
| 151 'gtest_test_executable', |
| 152 ], |
| 153 'sources': [ |
| 154 'gtest/test/gtest_no_test_unittest.cc', |
| 155 ], |
| 156 }, |
| 157 { |
| 158 'target_name': 'gtest_param_test', |
| 159 'dependencies': [ |
| 160 'gtest_test_executable', |
| 161 ], |
| 162 'sources': [ |
| 163 'gtest/test/gtest-param-test_test.cc', |
| 164 'gtest/test/gtest-param-test_test.h', |
| 165 'gtest/test/gtest-param-test2_test.cc', |
| 166 ], |
| 167 }, |
| 168 { |
| 169 'target_name': 'gtest_premature_exit_test', |
| 170 'dependencies': [ |
| 171 'gtest_test_executable', |
| 172 ], |
| 173 'sources': [ |
| 174 'gtest/test/gtest_premature_exit_test.cc', |
| 175 ], |
| 176 }, |
| 177 { |
| 178 'target_name': 'gtest_repeat_test', |
| 179 'dependencies': [ |
| 180 'gtest_test_executable', |
| 181 ], |
| 182 'sources': [ |
| 183 'gtest/test/gtest_repeat_test.cc', |
| 184 ], |
| 185 }, |
| 186 { |
| 187 'target_name': 'gtest_sole_header_test', |
| 188 'dependencies': [ |
| 189 'gtest_test_executable', |
| 190 'gtest_main', |
| 191 ], |
| 192 'sources': [ |
| 193 'gtest/test/gtest_sole_header_test.cc', |
| 194 ], |
| 195 }, |
| 196 { |
| 197 'target_name': 'gtest_stress_test', |
| 198 'dependencies': [ |
| 199 'gtest_test_executable', |
| 200 ], |
| 201 'sources': [ |
| 202 'gtest/test/gtest_stress_test.cc', |
| 203 ], |
| 204 }, |
| 205 { |
| 206 'target_name': 'gtest_unittest_api_test', |
| 207 'dependencies': [ |
| 208 'gtest_test_executable', |
| 209 ], |
| 210 'sources': [ |
| 211 'gtest/test/gtest-unittest-api_test.cc', |
| 212 ], |
| 213 }, |
| 214 { |
| 215 'target_name': 'gtest_all_tests', |
| 216 'type': 'none', |
| 217 'dependencies': [ |
| 218 'gtest_all_test', |
| 219 'gtest_environment_test', |
| 220 'gtest_no_test', |
| 221 'gtest_param_test', |
| 222 'gtest_premature_exit_test', |
| 223 'gtest_repeat_test', |
| 224 'gtest_sole_header_test', |
| 225 'gtest_stress_test', |
| 226 'gtest_unittest_api_test', |
| 227 ], |
| 228 }, |
| 23 ], | 229 ], |
| 24 'sources': [ | 230 }, { # else: crashpad_in_chromium!=0 |
| 25 'gtest/include/gtest/gtest-death-test.h', | 231 'targets': [ |
| 26 'gtest/include/gtest/gtest-message.h', | 232 { |
| 27 'gtest/include/gtest/gtest-param-test.h', | 233 'target_name': 'gtest', |
| 28 'gtest/include/gtest/gtest-printers.h', | 234 'type': 'none', |
| 29 'gtest/include/gtest/gtest-spi.h', | 235 'dependencies': [ |
| 30 'gtest/include/gtest/gtest-test-part.h', | 236 '../../../../../testing/gtest.gyp:gtest', |
| 31 'gtest/include/gtest/gtest-typed-test.h', | 237 ], |
| 32 'gtest/include/gtest/gtest.h', | 238 'export_dependent_settings': [ |
| 33 'gtest/include/gtest/gtest_pred_impl.h', | 239 '../../../../../testing/gtest.gyp:gtest', |
| 34 'gtest/include/gtest/gtest_prod.h', | 240 ], |
| 35 'gtest/include/gtest/internal/gtest-death-test-internal.h', | 241 }, |
| 36 'gtest/include/gtest/internal/gtest-filepath.h', | 242 { |
| 37 'gtest/include/gtest/internal/gtest-internal.h', | 243 'target_name': 'gtest_main', |
| 38 'gtest/include/gtest/internal/gtest-linked_ptr.h', | 244 'type': 'none', |
| 39 'gtest/include/gtest/internal/gtest-param-util-generated.h', | 245 'dependencies': [ |
| 40 'gtest/include/gtest/internal/gtest-param-util.h', | 246 '../../../../../testing/gtest.gyp:gtest_main', |
| 41 'gtest/include/gtest/internal/gtest-port.h', | 247 ], |
| 42 'gtest/include/gtest/internal/gtest-string.h', | 248 'export_dependent_settings': [ |
| 43 'gtest/include/gtest/internal/gtest-tuple.h', | 249 '../../../../../testing/gtest.gyp:gtest_main', |
| 44 'gtest/include/gtest/internal/gtest-type-util.h', | 250 ], |
| 45 'gtest/src/gtest.cc', | 251 }, |
| 46 'gtest/src/gtest-death-test.cc', | |
| 47 'gtest/src/gtest-filepath.cc', | |
| 48 'gtest/src/gtest-port.cc', | |
| 49 'gtest/src/gtest-printers.cc', | |
| 50 'gtest/src/gtest-test-part.cc', | |
| 51 'gtest/src/gtest-typed-test.cc', | |
| 52 ], | 252 ], |
| 53 'sources!': [ | 253 }], |
| 54 'gtest/src/gtest-all.cc', | |
| 55 ], | |
| 56 | |
| 57 # gtest relies heavily on objects with static storage duration. | |
| 58 'xcode_settings': { | |
| 59 'WARNING_CFLAGS!': [ | |
| 60 '-Wexit-time-destructors', | |
| 61 ], | |
| 62 }, | |
| 63 'cflags!': [ | |
| 64 '-Wexit-time-destructors', | |
| 65 ], | |
| 66 | |
| 67 'direct_dependent_settings': { | |
| 68 'include_dirs': [ | |
| 69 'gtest/include', | |
| 70 ], | |
| 71 }, | |
| 72 }, | |
| 73 { | |
| 74 'target_name': 'gtest_main', | |
| 75 'type': 'static_library', | |
| 76 'dependencies': [ | |
| 77 'gtest', | |
| 78 ], | |
| 79 'sources': [ | |
| 80 'gtest/src/gtest_main.cc', | |
| 81 ], | |
| 82 }, | |
| 83 { | |
| 84 'target_name': 'gtest_test_executable', | |
| 85 'type': 'none', | |
| 86 'dependencies': [ | |
| 87 'gtest', | |
| 88 ], | |
| 89 'direct_dependent_settings': { | |
| 90 'type': 'executable', | |
| 91 'include_dirs': [ | |
| 92 'gtest', | |
| 93 ], | |
| 94 }, | |
| 95 'export_dependent_settings': [ | |
| 96 'gtest', | |
| 97 ], | |
| 98 }, | |
| 99 { | |
| 100 'target_name': 'gtest_all_test', | |
| 101 'dependencies': [ | |
| 102 'gtest_test_executable', | |
| 103 'gtest_main', | |
| 104 ], | |
| 105 'sources': [ | |
| 106 'gtest/test/gtest-death-test_test.cc', | |
| 107 'gtest/test/gtest-filepath_test.cc', | |
| 108 'gtest/test/gtest-linked_ptr_test.cc', | |
| 109 'gtest/test/gtest-message_test.cc', | |
| 110 'gtest/test/gtest-options_test.cc', | |
| 111 'gtest/test/gtest-port_test.cc', | |
| 112 'gtest/test/gtest-printers_test.cc', | |
| 113 'gtest/test/gtest-test-part_test.cc', | |
| 114 'gtest/test/gtest-typed-test_test.cc', | |
| 115 'gtest/test/gtest-typed-test_test.h', | |
| 116 'gtest/test/gtest-typed-test2_test.cc', | |
| 117 'gtest/test/gtest_main_unittest.cc', | |
| 118 'gtest/test/gtest_pred_impl_unittest.cc', | |
| 119 'gtest/test/gtest_prod_test.cc', | |
| 120 'gtest/test/gtest_unittest.cc', | |
| 121 'gtest/test/production.cc', | |
| 122 'gtest/test/production.h', | |
| 123 ], | |
| 124 }, | |
| 125 { | |
| 126 'target_name': 'gtest_environment_test', | |
| 127 'dependencies': [ | |
| 128 'gtest_test_executable', | |
| 129 ], | |
| 130 'sources': [ | |
| 131 'gtest/test/gtest_environment_test.cc', | |
| 132 ], | |
| 133 }, | |
| 134 { | |
| 135 'target_name': 'gtest_listener_test', | |
| 136 'dependencies': [ | |
| 137 'gtest_test_executable', | |
| 138 ], | |
| 139 'sources': [ | |
| 140 'gtest/test/gtest-listener_test.cc', | |
| 141 ], | |
| 142 }, | |
| 143 { | |
| 144 'target_name': 'gtest_no_test', | |
| 145 'dependencies': [ | |
| 146 'gtest_test_executable', | |
| 147 ], | |
| 148 'sources': [ | |
| 149 'gtest/test/gtest_no_test_unittest.cc', | |
| 150 ], | |
| 151 }, | |
| 152 { | |
| 153 'target_name': 'gtest_param_test', | |
| 154 'dependencies': [ | |
| 155 'gtest_test_executable', | |
| 156 ], | |
| 157 'sources': [ | |
| 158 'gtest/test/gtest-param-test_test.cc', | |
| 159 'gtest/test/gtest-param-test_test.h', | |
| 160 'gtest/test/gtest-param-test2_test.cc', | |
| 161 ], | |
| 162 }, | |
| 163 { | |
| 164 'target_name': 'gtest_premature_exit_test', | |
| 165 'dependencies': [ | |
| 166 'gtest_test_executable', | |
| 167 ], | |
| 168 'sources': [ | |
| 169 'gtest/test/gtest_premature_exit_test.cc', | |
| 170 ], | |
| 171 }, | |
| 172 { | |
| 173 'target_name': 'gtest_repeat_test', | |
| 174 'dependencies': [ | |
| 175 'gtest_test_executable', | |
| 176 ], | |
| 177 'sources': [ | |
| 178 'gtest/test/gtest_repeat_test.cc', | |
| 179 ], | |
| 180 }, | |
| 181 { | |
| 182 'target_name': 'gtest_sole_header_test', | |
| 183 'dependencies': [ | |
| 184 'gtest_test_executable', | |
| 185 'gtest_main', | |
| 186 ], | |
| 187 'sources': [ | |
| 188 'gtest/test/gtest_sole_header_test.cc', | |
| 189 ], | |
| 190 }, | |
| 191 { | |
| 192 'target_name': 'gtest_stress_test', | |
| 193 'dependencies': [ | |
| 194 'gtest_test_executable', | |
| 195 ], | |
| 196 'sources': [ | |
| 197 'gtest/test/gtest_stress_test.cc', | |
| 198 ], | |
| 199 }, | |
| 200 { | |
| 201 'target_name': 'gtest_unittest_api_test', | |
| 202 'dependencies': [ | |
| 203 'gtest_test_executable', | |
| 204 ], | |
| 205 'sources': [ | |
| 206 'gtest/test/gtest-unittest-api_test.cc', | |
| 207 ], | |
| 208 }, | |
| 209 { | |
| 210 'target_name': 'gtest_all_tests', | |
| 211 'type': 'none', | |
| 212 'dependencies': [ | |
| 213 'gtest_all_test', | |
| 214 'gtest_environment_test', | |
| 215 'gtest_no_test', | |
| 216 'gtest_param_test', | |
| 217 'gtest_premature_exit_test', | |
| 218 'gtest_repeat_test', | |
| 219 'gtest_sole_header_test', | |
| 220 'gtest_stress_test', | |
| 221 'gtest_unittest_api_test', | |
| 222 ], | |
| 223 }, | |
| 224 ], | 254 ], |
| 225 } | 255 } |
| OLD | NEW |