| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 assert(!is_ios) |
| 5 if (is_android) { | 6 if (is_android) { |
| 6 import("//build/config/android/config.gni") | 7 import("//build/config/android/config.gni") |
| 7 } | 8 } |
| 8 | 9 |
| 9 source_set("lib") { | 10 source_set("lib") { |
| 10 sources = [ | 11 sources = [ |
| 11 "crash_keys_win.cc", | 12 "crash_keys_win.cc", |
| 12 "crash_keys_win.h", | 13 "crash_keys_win.h", |
| 13 "crash_reporter_client.cc", | 14 "crash_reporter_client.cc", |
| 14 "crash_reporter_client.h", | 15 "crash_reporter_client.h", |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 if (is_mac) { | 181 if (is_mac) { |
| 181 deps += [ "//breakpad" ] | 182 deps += [ "//breakpad" ] |
| 182 } | 183 } |
| 183 | 184 |
| 184 if (is_win) { | 185 if (is_win) { |
| 185 deps += [ "//breakpad:breakpad_handler" ] | 186 deps += [ "//breakpad:breakpad_handler" ] |
| 186 libs = [ "userenv.lib" ] | 187 libs = [ "userenv.lib" ] |
| 187 } | 188 } |
| 188 } | 189 } |
| 189 } | 190 } |
| 191 |
| 192 if (is_mac) { |
| 193 source_set("breakpad_stubs") { |
| 194 sources = [ |
| 195 "breakpad_mac.h", |
| 196 "breakpad_mac_stubs.mm", |
| 197 "crash_reporter_client.cc", |
| 198 "crash_reporter_client.h", |
| 199 ] |
| 200 deps = [ |
| 201 "//base", |
| 202 ] |
| 203 } |
| 204 } |
| 205 |
| 206 source_set("unit_tests") { |
| 207 testonly = true |
| 208 sources = [ |
| 209 "crash_keys_win_unittest.cc", |
| 210 ] |
| 211 deps = [ |
| 212 ":lib", |
| 213 "//base", |
| 214 "//testing/gmock", |
| 215 "//testing/gtest", |
| 216 ] |
| 217 |
| 218 if (is_win) { |
| 219 deps += [ "//breakpad:client" ] |
| 220 } |
| 221 } |
| OLD | NEW |