OLD | NEW |
1 # Copyright 2014 The Crashpad Authors. All rights reserved. | 1 # Copyright 2015 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 'includes': [ | 16 'includes': [ |
17 '../build/crashpad.gypi', | 17 '../build/crashpad.gypi', |
18 ], | 18 ], |
19 'targets': [ | 19 'targets': [ |
20 { | 20 { |
21 'target_name': 'crashpad_client', | 21 'target_name': 'crashpad_test', |
22 'type': 'static_library', | 22 'type': 'static_library', |
23 'dependencies': [ | 23 'dependencies': [ |
24 '../compat/compat.gyp:crashpad_compat', | 24 '../compat/compat.gyp:crashpad_compat', |
| 25 '../third_party/gtest/gtest.gyp:gtest', |
25 '../third_party/mini_chromium/mini_chromium.gyp:base', | 26 '../third_party/mini_chromium/mini_chromium.gyp:base', |
26 '../util/util.gyp:crashpad_util', | 27 '../util/util.gyp:crashpad_util', |
27 ], | 28 ], |
28 'include_dirs': [ | 29 'include_dirs': [ |
29 '..', | 30 '..', |
30 ], | 31 ], |
31 'sources': [ | 32 'sources': [ |
32 'capture_context_mac.S', | 33 'errors.cc', |
33 'capture_context_mac.h', | 34 'errors.h', |
34 'crash_report_database.cc', | 35 'gtest_death_check.h', |
35 'crash_report_database.h', | 36 'mac/dyld.h', |
36 'crash_report_database_mac.mm', | 37 'mac/mach_errors.cc', |
37 'crash_report_database_win.cc', | 38 'mac/mach_errors.h', |
38 'crashpad_client.h', | 39 'mac/mach_multiprocess.cc', |
39 'crashpad_client_mac.cc', | 40 'mac/mach_multiprocess.h', |
40 'crashpad_info.cc', | 41 'multiprocess.h', |
41 'crashpad_info.h', | 42 'multiprocess_exec.h', |
42 'settings.cc', | 43 'multiprocess_exec_posix.cc', |
43 'settings.h', | 44 'multiprocess_exec_win.cc', |
44 'simple_string_dictionary.cc', | 45 'multiprocess_posix.cc', |
45 'simple_string_dictionary.h', | 46 'paths.cc', |
46 'simulate_crash.h', | 47 'paths.h', |
47 'simulate_crash_mac.cc', | 48 'paths_mac.cc', |
48 'simulate_crash_mac.h', | 49 'paths_win.cc', |
| 50 'scoped_temp_dir.cc', |
| 51 'scoped_temp_dir.h', |
| 52 'scoped_temp_dir_posix.cc', |
| 53 'scoped_temp_dir_win.cc', |
| 54 'thread.cc', |
| 55 'thread.h', |
| 56 'thread_posix.cc', |
| 57 'thread_win.cc', |
49 ], | 58 ], |
50 'conditions': [ | 59 'conditions': [ |
51 ['OS=="win"', { | 60 ['OS=="mac"', { |
52 'link_settings': { | 61 'link_settings': { |
53 'libraries': [ | 62 'libraries': [ |
54 '-lrpcrt4.lib', | 63 '$(SDKROOT)/usr/lib/libbsm.dylib', |
55 ], | 64 ], |
56 }, | 65 }, |
57 'sources!': [ | |
58 # Port to Win https://code.google.com/p/crashpad/issues/detail?id=13 | |
59 'settings.cc', | |
60 ], | |
61 }], | 66 }], |
62 ], | 67 ], |
63 'direct_dependent_settings': { | |
64 'include_dirs': [ | |
65 '..', | |
66 ], | |
67 }, | |
68 }, | 68 }, |
69 ], | 69 ], |
70 } | 70 } |
OLD | NEW |