Ben Murdoch | 097c5b2 | 2016-05-18 11:27:45 +0100 | [diff] [blame^] | 1 | # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | config("client_config") { |
| 6 | include_dirs = [ ".." ] |
| 7 | } |
| 8 | |
| 9 | source_set("client") { |
| 10 | sources = [ |
| 11 | "crash_report_database.cc", |
| 12 | "crash_report_database.h", |
| 13 | "crash_report_database_mac.mm", |
| 14 | "crash_report_database_win.cc", |
| 15 | "crashpad_client.h", |
| 16 | "crashpad_client_mac.cc", |
| 17 | "crashpad_client_win.cc", |
| 18 | "crashpad_info.cc", |
| 19 | "crashpad_info.h", |
| 20 | "prune_crash_reports.cc", |
| 21 | "prune_crash_reports.h", |
| 22 | "settings.cc", |
| 23 | "settings.h", |
| 24 | "simple_address_range_bag.cc", |
| 25 | "simple_address_range_bag.h", |
| 26 | "simple_string_dictionary.cc", |
| 27 | "simple_string_dictionary.h", |
| 28 | "simulate_crash.h", |
| 29 | "simulate_crash_mac.cc", |
| 30 | "simulate_crash_mac.h", |
| 31 | "simulate_crash_win.h", |
| 32 | ] |
| 33 | |
| 34 | if (is_mac) { |
| 35 | sources += [ |
| 36 | "capture_context_mac.S", |
| 37 | "capture_context_mac.h", |
| 38 | ] |
| 39 | } |
| 40 | |
| 41 | public_configs = [ ":client_config" ] |
| 42 | |
| 43 | deps = [ |
| 44 | "//base", |
| 45 | "//third_party/crashpad/crashpad/compat", |
| 46 | "//third_party/crashpad/crashpad/util", |
| 47 | ] |
| 48 | |
| 49 | if (is_win) { |
| 50 | libs = [ "rpcrt4.lib" ] |
| 51 | cflags = [ "/wd4201" ] # nonstandard extension used : nameless struct/union. |
| 52 | } |
| 53 | } |