Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Side by Side Diff: build/secondary/third_party/crashpad/crashpad/util/BUILD.gn

Issue 1417673004: Make unit_tests compile in Mac GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mac
Patch Set: . Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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 if (is_mac) {
6 import("//build/config/sysroot.gni")
7 }
8
9 # Allows the source set to inject ldflags for targets that link to it.
10 config("util_link_config") {
11 if (is_mac) {
12 ldflags = [ "/usr/lib/libbsm.dylib" ]
13 }
14 }
15
16 if (is_mac) {
17 action_foreach("mig") {
18 script = "mach/mig.py"
19 sources = [
20 "$sysroot/usr/include/mach/exc.defs",
21 "$sysroot/usr/include/mach/mach_exc.defs",
22 "$sysroot/usr/include/mach/notify.defs",
23 "mach/child_port.defs",
24 ]
25
26 outputs = [
27 "$target_gen_dir/mach/{{source_name_part}}User.c",
28 "$target_gen_dir/mach/{{source_name_part}}Server.c",
29 "$target_gen_dir/mach/{{source_name_part}}.h",
30 "$target_gen_dir/mach/{{source_name_part}}Server.h",
31 ]
32
33 args = [ "{{source}}" ]
34 args += rebase_path(outputs, root_build_dir)
35 }
36 }
37
38 source_set("util") {
39 sources = [
40 "file/file_io.cc",
41 "file/file_io.h",
42 "file/file_io_posix.cc",
43 "file/file_io_win.cc",
44 "file/file_reader.cc",
45 "file/file_reader.h",
46 "file/file_seeker.cc",
47 "file/file_seeker.h",
48 "file/file_writer.cc",
49 "file/file_writer.h",
50 "file/string_file.cc",
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",
95 "misc/clock_mac.cc",
96 "misc/clock_posix.cc",
97 "misc/clock_win.cc",
98 "misc/implicit_cast.h",
99 "misc/initialization_state.h",
100 "misc/initialization_state_dcheck.cc",
101 "misc/initialization_state_dcheck.h",
102 "misc/pdb_structures.cc",
103 "misc/pdb_structures.h",
104 "misc/scoped_forbid_return.cc",
105 "misc/scoped_forbid_return.h",
106 "misc/symbolic_constants_common.h",
107 "misc/tri_state.h",
108 "misc/uuid.cc",
109 "misc/uuid.h",
110 "net/http_body.cc",
111 "net/http_body.h",
112 "net/http_headers.cc",
113 "net/http_headers.h",
114 "net/http_multipart_builder.cc",
115 "net/http_multipart_builder.h",
116 "net/http_transport.cc",
117 "net/http_transport.h",
118 "net/http_transport_mac.mm",
119 "net/http_transport_win.cc",
120 "numeric/checked_address_range.cc",
121 "numeric/checked_address_range.h",
122 "numeric/checked_range.h",
123 "numeric/in_range_cast.h",
124 "numeric/int128.h",
125 "numeric/safe_assignment.h",
126 "posix/close_multiple.cc",
127 "posix/close_multiple.h",
128 "posix/close_stdio.cc",
129 "posix/close_stdio.h",
130 "posix/drop_privileges.cc",
131 "posix/drop_privileges.h",
132 "posix/process_info.h",
133 "posix/process_info_mac.cc",
134 "posix/symbolic_constants_posix.cc",
135 "posix/symbolic_constants_posix.h",
136 "stdlib/cxx.h",
137 "stdlib/map_insert.h",
138 "stdlib/objc.h",
139 "stdlib/pointer_container.h",
140 "stdlib/string_number_conversion.cc",
141 "stdlib/string_number_conversion.h",
142 "stdlib/strlcpy.cc",
143 "stdlib/strlcpy.h",
144 "stdlib/strnlen.cc",
145 "stdlib/strnlen.h",
146 "string/split_string.cc",
147 "string/split_string.h",
148 "synchronization/semaphore.h",
149 "synchronization/semaphore_mac.cc",
150 "synchronization/semaphore_posix.cc",
151 "synchronization/semaphore_win.cc",
152 "thread/thread.cc",
153 "thread/thread.h",
154 "thread/thread_log_messages.cc",
155 "thread/thread_log_messages.h",
156 "thread/thread_posix.cc",
157 "thread/thread_win.cc",
158 "win/address_types.h",
159 "win/capture_context.asm",
160 "win/capture_context.h",
161 "win/checked_win_address_range.h",
162 "win/critical_section_with_debug_info.cc",
163 "win/critical_section_with_debug_info.h",
164 "win/exception_handler_server.cc",
165 "win/exception_handler_server.h",
166 "win/get_function.cc",
167 "win/get_function.h",
168 "win/module_version.cc",
169 "win/module_version.h",
170 "win/nt_internals.cc",
171 "win/nt_internals.h",
172 "win/ntstatus_logging.cc",
173 "win/ntstatus_logging.h",
174 "win/process_info.cc",
175 "win/process_info.h",
176 "win/process_structs.h",
177 "win/registration_protocol_win.cc",
178 "win/registration_protocol_win.h",
179 "win/scoped_handle.cc",
180 "win/scoped_handle.h",
181 "win/scoped_process_suspend.cc",
182 "win/scoped_process_suspend.h",
183 "win/time.cc",
184 "win/time.h",
185 "win/xp_compat.h",
186 ]
187
188 # Include files from here and generated files starting with "util".
189 include_dirs = [
190 "..",
191 "$root_gen_dir/third_party/crashpad/crashpad",
192 ]
193
194 all_dependent_configs = [ ":util_link_config" ]
195
196 deps = [
197 "//base",
198 "//third_party/crashpad/crashpad/compat",
199 ]
200
201 if (is_win) {
202 libs = [
203 "rpcrt4.lib",
204 "winhttp.lib",
205 ]
206 # TODO(GYP) UseSafeExceptionHandlers masm rule.
207 } else if (is_mac) {
208 sources += get_target_outputs(":mig")
209 deps += [ ":mig" ]
210 libs = [
211 "CoreFoundation.framework",
212 "Foundation.framework",
213 "IOKit.framework",
214 ]
215 }
216 }
OLDNEW
« no previous file with comments | « build/secondary/third_party/crashpad/crashpad/third_party/getopt/BUILD.gn ('k') | chrome/app_shim/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698