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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
42 "file/file_io_posix.cc", | 42 "file/file_io_posix.cc", |
43 "file/file_io_win.cc", | 43 "file/file_io_win.cc", |
44 "file/file_reader.cc", | 44 "file/file_reader.cc", |
45 "file/file_reader.h", | 45 "file/file_reader.h", |
46 "file/file_seeker.cc", | 46 "file/file_seeker.cc", |
47 "file/file_seeker.h", | 47 "file/file_seeker.h", |
48 "file/file_writer.cc", | 48 "file/file_writer.cc", |
49 "file/file_writer.h", | 49 "file/file_writer.h", |
50 "file/string_file.cc", | 50 "file/string_file.cc", |
51 "file/string_file.h", | 51 "file/string_file.h", |
52 "mac/checked_mach_address_range.h", | |
53 "mac/launchd.h", | |
54 "mac/launchd.mm", | |
55 "mac/mac_util.cc", | |
56 "mac/mac_util.h", | |
57 "mac/service_management.cc", | |
58 "mac/service_management.h", | |
59 "mac/xattr.cc", | |
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", | |
94 "misc/clock.h", | 52 "misc/clock.h", |
95 "misc/clock_mac.cc", | 53 "misc/clock_mac.cc", |
96 "misc/clock_posix.cc", | 54 "misc/clock_posix.cc", |
97 "misc/clock_win.cc", | 55 "misc/clock_win.cc", |
98 "misc/implicit_cast.h", | 56 "misc/implicit_cast.h", |
99 "misc/initialization_state.h", | 57 "misc/initialization_state.h", |
100 "misc/initialization_state_dcheck.cc", | 58 "misc/initialization_state_dcheck.cc", |
101 "misc/initialization_state_dcheck.h", | 59 "misc/initialization_state_dcheck.h", |
102 "misc/pdb_structures.cc", | 60 "misc/pdb_structures.cc", |
103 "misc/pdb_structures.h", | 61 "misc/pdb_structures.h", |
62 "misc/random_string.cc", | |
63 "misc/random_string.h", | |
104 "misc/scoped_forbid_return.cc", | 64 "misc/scoped_forbid_return.cc", |
105 "misc/scoped_forbid_return.h", | 65 "misc/scoped_forbid_return.h", |
106 "misc/symbolic_constants_common.h", | 66 "misc/symbolic_constants_common.h", |
107 "misc/tri_state.h", | 67 "misc/tri_state.h", |
108 "misc/uuid.cc", | 68 "misc/uuid.cc", |
109 "misc/uuid.h", | 69 "misc/uuid.h", |
110 "net/http_body.cc", | 70 "net/http_body.cc", |
111 "net/http_body.h", | 71 "net/http_body.h", |
112 "net/http_headers.cc", | 72 "net/http_headers.cc", |
113 "net/http_headers.h", | 73 "net/http_headers.h", |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
148 "synchronization/semaphore.h", | 108 "synchronization/semaphore.h", |
149 "synchronization/semaphore_mac.cc", | 109 "synchronization/semaphore_mac.cc", |
150 "synchronization/semaphore_posix.cc", | 110 "synchronization/semaphore_posix.cc", |
151 "synchronization/semaphore_win.cc", | 111 "synchronization/semaphore_win.cc", |
152 "thread/thread.cc", | 112 "thread/thread.cc", |
153 "thread/thread.h", | 113 "thread/thread.h", |
154 "thread/thread_log_messages.cc", | 114 "thread/thread_log_messages.cc", |
155 "thread/thread_log_messages.h", | 115 "thread/thread_log_messages.h", |
156 "thread/thread_posix.cc", | 116 "thread/thread_posix.cc", |
157 "thread/thread_win.cc", | 117 "thread/thread_win.cc", |
158 "win/address_types.h", | 118 "win/address_types.h", |
Mark Mentovai
2015/11/19 22:21:37
If gn’s rules don’t understand mac/, do they under
scottmg
2015/11/20 19:52:48
It actually understands "mac/" (and "win/") but no
| |
159 "win/capture_context.asm", | 119 "win/capture_context.asm", |
160 "win/capture_context.h", | 120 "win/capture_context.h", |
161 "win/checked_win_address_range.h", | 121 "win/checked_win_address_range.h", |
162 "win/critical_section_with_debug_info.cc", | 122 "win/critical_section_with_debug_info.cc", |
163 "win/critical_section_with_debug_info.h", | 123 "win/critical_section_with_debug_info.h", |
164 "win/exception_handler_server.cc", | 124 "win/exception_handler_server.cc", |
165 "win/exception_handler_server.h", | 125 "win/exception_handler_server.h", |
166 "win/get_function.cc", | 126 "win/get_function.cc", |
167 "win/get_function.h", | 127 "win/get_function.h", |
168 "win/module_version.cc", | 128 "win/module_version.cc", |
169 "win/module_version.h", | 129 "win/module_version.h", |
170 "win/nt_internals.cc", | 130 "win/nt_internals.cc", |
171 "win/nt_internals.h", | 131 "win/nt_internals.h", |
172 "win/ntstatus_logging.cc", | 132 "win/ntstatus_logging.cc", |
173 "win/ntstatus_logging.h", | 133 "win/ntstatus_logging.h", |
174 "win/process_info.cc", | 134 "win/process_info.cc", |
175 "win/process_info.h", | 135 "win/process_info.h", |
176 "win/process_structs.h", | 136 "win/process_structs.h", |
177 "win/registration_protocol_win.cc", | 137 "win/registration_protocol_win.cc", |
178 "win/registration_protocol_win.h", | 138 "win/registration_protocol_win.h", |
179 "win/scoped_handle.cc", | 139 "win/scoped_handle.cc", |
180 "win/scoped_handle.h", | 140 "win/scoped_handle.h", |
181 "win/scoped_process_suspend.cc", | 141 "win/scoped_process_suspend.cc", |
182 "win/scoped_process_suspend.h", | 142 "win/scoped_process_suspend.h", |
183 "win/time.cc", | 143 "win/time.cc", |
184 "win/time.h", | 144 "win/time.h", |
185 "win/xp_compat.h", | 145 "win/xp_compat.h", |
186 ] | 146 ] |
187 | 147 |
148 if (is_mac) { | |
149 sources += [ | |
150 "mac/checked_mach_address_range.h", | |
151 "mac/launchd.h", | |
152 "mac/launchd.mm", | |
153 "mac/mac_util.cc", | |
154 "mac/mac_util.h", | |
155 "mac/service_management.cc", | |
156 "mac/service_management.h", | |
157 "mac/xattr.cc", | |
158 "mac/xattr.h", | |
159 "mach/child_port_handshake.cc", | |
160 "mach/child_port_handshake.h", | |
161 "mach/child_port_server.cc", | |
162 "mach/child_port_server.h", | |
163 "mach/child_port_types.h", | |
164 "mach/composite_mach_message_server.cc", | |
165 "mach/composite_mach_message_server.h", | |
166 "mach/exc_client_variants.cc", | |
167 "mach/exc_client_variants.h", | |
168 "mach/exc_server_variants.cc", | |
169 "mach/exc_server_variants.h", | |
170 "mach/exception_behaviors.cc", | |
171 "mach/exception_behaviors.h", | |
172 "mach/exception_ports.cc", | |
173 "mach/exception_ports.h", | |
174 "mach/exception_types.cc", | |
175 "mach/exception_types.h", | |
176 "mach/mach_extensions.cc", | |
177 "mach/mach_extensions.h", | |
178 "mach/mach_message.cc", | |
179 "mach/mach_message.h", | |
180 "mach/mach_message_server.cc", | |
181 "mach/mach_message_server.h", | |
182 "mach/notify_server.cc", | |
183 "mach/notify_server.h", | |
184 "mach/scoped_task_suspend.cc", | |
185 "mach/scoped_task_suspend.h", | |
186 "mach/symbolic_constants_mach.cc", | |
187 "mach/symbolic_constants_mach.h", | |
188 "mach/task_for_pid.cc", | |
189 "mach/task_for_pid.h", | |
190 "mach/task_memory.cc", | |
191 "mach/task_memory.h", | |
192 ] | |
193 } | |
194 | |
188 # Include files from here and generated files starting with "util". | 195 # Include files from here and generated files starting with "util". |
189 include_dirs = [ | 196 include_dirs = [ |
190 "..", | 197 "..", |
191 "$root_gen_dir/third_party/crashpad/crashpad", | 198 "$root_gen_dir/third_party/crashpad/crashpad", |
192 ] | 199 ] |
193 | 200 |
194 all_dependent_configs = [ ":util_link_config" ] | 201 all_dependent_configs = [ ":util_link_config" ] |
195 | 202 |
196 deps = [ | 203 deps = [ |
197 "//base", | 204 "//base", |
198 "//third_party/crashpad/crashpad/compat", | 205 "//third_party/crashpad/crashpad/compat", |
199 ] | 206 ] |
200 | 207 |
201 if (is_win) { | 208 if (is_win) { |
202 libs = [ | 209 libs = [ |
203 "rpcrt4.lib", | 210 "rpcrt4.lib", |
204 "winhttp.lib", | 211 "winhttp.lib", |
205 ] | 212 ] |
206 # TODO(GYP) UseSafeExceptionHandlers masm rule. | 213 # TODO(GYP) UseSafeExceptionHandlers masm rule. |
207 } else if (is_mac) { | 214 } else if (is_mac) { |
208 sources += get_target_outputs(":mig") | 215 sources += get_target_outputs(":mig") |
209 deps += [ ":mig" ] | 216 deps += [ ":mig" ] |
210 libs = [ | 217 libs = [ |
211 "CoreFoundation.framework", | 218 "CoreFoundation.framework", |
212 "Foundation.framework", | 219 "Foundation.framework", |
213 "IOKit.framework", | 220 "IOKit.framework", |
214 ] | 221 ] |
215 } | 222 } |
216 } | 223 } |
OLD | NEW |