OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 if (is_mac) { | 5 if (is_mac) { |
6 import("//build/config/sysroot.gni") | 6 import("//build/config/sysroot.gni") |
7 } | 7 } |
8 | 8 |
9 # Allows the source set to inject ldflags for targets that link to it. | 9 # Allows the source set to inject ldflags for targets that link to it. |
10 config("util_link_config") { | 10 config("util_link_config") { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 "file/string_file.h", | 51 "file/string_file.h", |
52 "mac/checked_mach_address_range.h", | 52 "mac/checked_mach_address_range.h", |
53 "mac/launchd.h", | 53 "mac/launchd.h", |
54 "mac/launchd.mm", | 54 "mac/launchd.mm", |
55 "mac/mac_util.cc", | 55 "mac/mac_util.cc", |
56 "mac/mac_util.h", | 56 "mac/mac_util.h", |
57 "mac/service_management.cc", | 57 "mac/service_management.cc", |
58 "mac/service_management.h", | 58 "mac/service_management.h", |
59 "mac/xattr.cc", | 59 "mac/xattr.cc", |
60 "mac/xattr.h", | 60 "mac/xattr.h", |
| 61 "mach/child_port_handshake.cc", |
| 62 "mach/child_port_handshake.h", |
| 63 "mach/child_port_server.cc", |
| 64 "mach/child_port_server.h", |
| 65 "mach/child_port_types.h", |
| 66 "mach/composite_mach_message_server.cc", |
| 67 "mach/composite_mach_message_server.h", |
| 68 "mach/exc_client_variants.cc", |
| 69 "mach/exc_client_variants.h", |
| 70 "mach/exc_server_variants.cc", |
| 71 "mach/exc_server_variants.h", |
| 72 "mach/exception_behaviors.cc", |
| 73 "mach/exception_behaviors.h", |
| 74 "mach/exception_ports.cc", |
| 75 "mach/exception_ports.h", |
| 76 "mach/exception_types.cc", |
| 77 "mach/exception_types.h", |
| 78 "mach/mach_extensions.cc", |
| 79 "mach/mach_extensions.h", |
| 80 "mach/mach_message.cc", |
| 81 "mach/mach_message.h", |
| 82 "mach/mach_message_server.cc", |
| 83 "mach/mach_message_server.h", |
| 84 "mach/notify_server.cc", |
| 85 "mach/notify_server.h", |
| 86 "mach/scoped_task_suspend.cc", |
| 87 "mach/scoped_task_suspend.h", |
| 88 "mach/symbolic_constants_mach.cc", |
| 89 "mach/symbolic_constants_mach.h", |
| 90 "mach/task_for_pid.cc", |
| 91 "mach/task_for_pid.h", |
| 92 "mach/task_memory.cc", |
| 93 "mach/task_memory.h", |
61 "misc/clock.h", | 94 "misc/clock.h", |
62 "misc/clock_mac.cc", | 95 "misc/clock_mac.cc", |
63 "misc/clock_posix.cc", | 96 "misc/clock_posix.cc", |
64 "misc/clock_win.cc", | 97 "misc/clock_win.cc", |
65 "misc/implicit_cast.h", | 98 "misc/implicit_cast.h", |
66 "misc/initialization_state.h", | 99 "misc/initialization_state.h", |
67 "misc/initialization_state_dcheck.cc", | 100 "misc/initialization_state_dcheck.cc", |
68 "misc/initialization_state_dcheck.h", | 101 "misc/initialization_state_dcheck.h", |
69 "misc/pdb_structures.cc", | 102 "misc/pdb_structures.cc", |
70 "misc/pdb_structures.h", | 103 "misc/pdb_structures.h", |
71 "misc/random_string.cc", | |
72 "misc/random_string.h", | |
73 "misc/scoped_forbid_return.cc", | 104 "misc/scoped_forbid_return.cc", |
74 "misc/scoped_forbid_return.h", | 105 "misc/scoped_forbid_return.h", |
75 "misc/symbolic_constants_common.h", | 106 "misc/symbolic_constants_common.h", |
76 "misc/tri_state.h", | 107 "misc/tri_state.h", |
77 "misc/uuid.cc", | 108 "misc/uuid.cc", |
78 "misc/uuid.h", | 109 "misc/uuid.h", |
79 "net/http_body.cc", | 110 "net/http_body.cc", |
80 "net/http_body.h", | 111 "net/http_body.h", |
81 "net/http_headers.cc", | 112 "net/http_headers.cc", |
82 "net/http_headers.h", | 113 "net/http_headers.h", |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 "thread/thread.cc", | 152 "thread/thread.cc", |
122 "thread/thread.h", | 153 "thread/thread.h", |
123 "thread/thread_log_messages.cc", | 154 "thread/thread_log_messages.cc", |
124 "thread/thread_log_messages.h", | 155 "thread/thread_log_messages.h", |
125 "thread/thread_posix.cc", | 156 "thread/thread_posix.cc", |
126 "thread/thread_win.cc", | 157 "thread/thread_win.cc", |
127 "win/address_types.h", | 158 "win/address_types.h", |
128 "win/capture_context.asm", | 159 "win/capture_context.asm", |
129 "win/capture_context.h", | 160 "win/capture_context.h", |
130 "win/checked_win_address_range.h", | 161 "win/checked_win_address_range.h", |
131 "win/command_line.cc", | |
132 "win/command_line.h", | |
133 "win/critical_section_with_debug_info.cc", | 162 "win/critical_section_with_debug_info.cc", |
134 "win/critical_section_with_debug_info.h", | 163 "win/critical_section_with_debug_info.h", |
135 "win/exception_handler_server.cc", | 164 "win/exception_handler_server.cc", |
136 "win/exception_handler_server.h", | 165 "win/exception_handler_server.h", |
137 "win/get_function.cc", | 166 "win/get_function.cc", |
138 "win/get_function.h", | 167 "win/get_function.h", |
139 "win/handle.cc", | |
140 "win/handle.h", | |
141 "win/module_version.cc", | 168 "win/module_version.cc", |
142 "win/module_version.h", | 169 "win/module_version.h", |
143 "win/nt_internals.cc", | 170 "win/nt_internals.cc", |
144 "win/nt_internals.h", | 171 "win/nt_internals.h", |
145 "win/ntstatus_logging.cc", | 172 "win/ntstatus_logging.cc", |
146 "win/ntstatus_logging.h", | 173 "win/ntstatus_logging.h", |
147 "win/process_info.cc", | 174 "win/process_info.cc", |
148 "win/process_info.h", | 175 "win/process_info.h", |
149 "win/process_structs.h", | 176 "win/process_structs.h", |
150 "win/registration_protocol_win.cc", | 177 "win/registration_protocol_win.cc", |
151 "win/registration_protocol_win.h", | 178 "win/registration_protocol_win.h", |
152 "win/scoped_handle.cc", | 179 "win/scoped_handle.cc", |
153 "win/scoped_handle.h", | 180 "win/scoped_handle.h", |
154 "win/scoped_local_alloc.cc", | |
155 "win/scoped_local_alloc.h", | |
156 "win/scoped_process_suspend.cc", | 181 "win/scoped_process_suspend.cc", |
157 "win/scoped_process_suspend.h", | 182 "win/scoped_process_suspend.h", |
158 "win/time.cc", | 183 "win/time.cc", |
159 "win/time.h", | 184 "win/time.h", |
160 "win/xp_compat.h", | 185 "win/xp_compat.h", |
161 ] | 186 ] |
162 | 187 |
163 if (is_mac) { | |
164 # mach/ are not globally filtered. | |
165 sources += [ | |
166 "mach/child_port_handshake.cc", | |
167 "mach/child_port_handshake.h", | |
168 "mach/child_port_server.cc", | |
169 "mach/child_port_server.h", | |
170 "mach/child_port_types.h", | |
171 "mach/composite_mach_message_server.cc", | |
172 "mach/composite_mach_message_server.h", | |
173 "mach/exc_client_variants.cc", | |
174 "mach/exc_client_variants.h", | |
175 "mach/exc_server_variants.cc", | |
176 "mach/exc_server_variants.h", | |
177 "mach/exception_behaviors.cc", | |
178 "mach/exception_behaviors.h", | |
179 "mach/exception_ports.cc", | |
180 "mach/exception_ports.h", | |
181 "mach/exception_types.cc", | |
182 "mach/exception_types.h", | |
183 "mach/mach_extensions.cc", | |
184 "mach/mach_extensions.h", | |
185 "mach/mach_message.cc", | |
186 "mach/mach_message.h", | |
187 "mach/mach_message_server.cc", | |
188 "mach/mach_message_server.h", | |
189 "mach/notify_server.cc", | |
190 "mach/notify_server.h", | |
191 "mach/scoped_task_suspend.cc", | |
192 "mach/scoped_task_suspend.h", | |
193 "mach/symbolic_constants_mach.cc", | |
194 "mach/symbolic_constants_mach.h", | |
195 "mach/task_for_pid.cc", | |
196 "mach/task_for_pid.h", | |
197 "mach/task_memory.cc", | |
198 "mach/task_memory.h", | |
199 ] | |
200 } | |
201 | |
202 # Include files from here and generated files starting with "util". | 188 # Include files from here and generated files starting with "util". |
203 include_dirs = [ | 189 include_dirs = [ |
204 "..", | 190 "..", |
205 "$root_gen_dir/third_party/crashpad/crashpad", | 191 "$root_gen_dir/third_party/crashpad/crashpad", |
206 ] | 192 ] |
207 | 193 |
208 all_dependent_configs = [ ":util_link_config" ] | 194 all_dependent_configs = [ ":util_link_config" ] |
209 | 195 |
210 deps = [ | 196 deps = [ |
211 "//base", | 197 "//base", |
212 "//third_party/crashpad/crashpad/compat", | 198 "//third_party/crashpad/crashpad/compat", |
213 ] | 199 ] |
214 | 200 |
215 if (is_win) { | 201 if (is_win) { |
216 libs = [ | 202 libs = [ |
217 "rpcrt4.lib", | 203 "rpcrt4.lib", |
218 "winhttp.lib", | 204 "winhttp.lib", |
219 ] | 205 ] |
220 cflags = [ "/wd4201" ] # nonstandard extension used : nameless struct/union
. | |
221 | |
222 # TODO(GYP) UseSafeExceptionHandlers masm rule. | 206 # TODO(GYP) UseSafeExceptionHandlers masm rule. |
223 } else if (is_mac) { | 207 } else if (is_mac) { |
224 sources += get_target_outputs(":mig") | 208 sources += get_target_outputs(":mig") |
225 deps += [ ":mig" ] | 209 deps += [ ":mig" ] |
226 libs = [ | 210 libs = [ |
227 "CoreFoundation.framework", | 211 "CoreFoundation.framework", |
228 "Foundation.framework", | 212 "Foundation.framework", |
229 "IOKit.framework", | 213 "IOKit.framework", |
230 ] | 214 ] |
231 } | 215 } |
232 } | 216 } |
OLD | NEW |