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 'includes': [ | 16 'includes': [ |
17 '../build/crashpad.gypi', | 17 '../build/crashpad.gypi', |
18 ], | 18 ], |
19 'targets': [ | 19 'targets': [ |
20 { | 20 { |
21 'target_name': 'crashpad_client', | |
22 'type': 'static_library', | |
23 'dependencies': [ | |
24 '../compat/compat.gyp:crashpad_compat', | |
25 '../third_party/mini_chromium/mini_chromium.gyp:base', | |
26 '../util/util.gyp:crashpad_util', | |
27 ], | |
28 'include_dirs': [ | |
29 '..', | |
30 ], | |
31 'sources': [ | |
32 'capture_context_mac.S', | |
33 'capture_context_mac.h', | |
34 'crash_report_database.cc', | |
35 'crash_report_database.h', | |
36 'crash_report_database_mac.mm', | |
37 'crash_report_database_win.cc', | |
38 'crashpad_client.h', | |
39 'crashpad_client_mac.cc', | |
40 'crashpad_info.cc', | |
41 'crashpad_info.h', | |
42 'settings.cc', | |
43 'settings.h', | |
44 'simple_string_dictionary.cc', | |
45 'simple_string_dictionary.h', | |
46 'simulate_crash.h', | |
47 'simulate_crash_mac.cc', | |
48 'simulate_crash_mac.h', | |
49 ], | |
50 'conditions': [ | |
51 ['OS=="win"', { | |
52 'link_settings': { | |
53 'libraries': [ | |
54 '-lrpcrt4.lib', | |
55 ], | |
56 }, | |
57 'sources!': [ | |
58 # Port to Win https://code.google.com/p/crashpad/issues/detail?id=13 | |
59 'settings.cc', | |
60 ], | |
61 }], | |
62 ], | |
63 'direct_dependent_settings': { | |
64 'include_dirs': [ | |
65 '..', | |
66 ], | |
67 }, | |
68 }, | |
69 { | |
70 'target_name': 'crashpad_client_test', | 21 'target_name': 'crashpad_client_test', |
71 'type': 'executable', | 22 'type': 'executable', |
72 'dependencies': [ | 23 'dependencies': [ |
73 'crashpad_client', | 24 'client.gyp:crashpad_client', |
74 '../compat/compat.gyp:crashpad_compat', | 25 '../compat/compat.gyp:crashpad_compat', |
75 '../third_party/gtest/gtest.gyp:gtest', | 26 '../third_party/gtest/gtest.gyp:gtest', |
76 '../third_party/gtest/gtest.gyp:gtest_main', | 27 '../third_party/gtest/gtest.gyp:gtest_main', |
77 '../third_party/mini_chromium/mini_chromium.gyp:base', | 28 '../third_party/mini_chromium/mini_chromium.gyp:base', |
78 '../util/util.gyp:crashpad_util', | 29 '../util/util.gyp:crashpad_util', |
79 '../util/util.gyp:crashpad_util_test_lib', | 30 '../util/util_test.gyp:crashpad_util_test_lib', |
80 ], | 31 ], |
81 'include_dirs': [ | 32 'include_dirs': [ |
82 '..', | 33 '..', |
83 ], | 34 ], |
84 'sources': [ | 35 'sources': [ |
85 'capture_context_mac_test.cc', | 36 'capture_context_mac_test.cc', |
86 'crash_report_database_test.cc', | 37 'crash_report_database_test.cc', |
87 'settings_test.cc', | 38 'settings_test.cc', |
88 'simple_string_dictionary_test.cc', | 39 'simple_string_dictionary_test.cc', |
89 'simulate_crash_mac_test.cc', | 40 'simulate_crash_mac_test.cc', |
90 ], | 41 ], |
91 'conditions': [ | 42 'conditions': [ |
92 ['OS=="win"', { | 43 ['OS=="win"', { |
93 'sources!': [ | 44 'sources!': [ |
94 # Port to Win https://code.google.com/p/crashpad/issues/detail?id=13 | 45 # Port to Win https://code.google.com/p/crashpad/issues/detail?id=13 |
95 'settings_test.cc', | 46 'settings_test.cc', |
96 ], | 47 ], |
97 }], | 48 }], |
98 ], | 49 ], |
99 }, | 50 }, |
100 ], | 51 ], |
101 } | 52 } |
OLD | NEW |