blob: a5fdfc69984ac323d46728452b8073b2a7e090ae [file] [log] [blame]
evan@chromium.orga6768f52010-02-06 07:23:20 +09001# Copyright (c) 2010 The Chromium Authors. All rights reserved.
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +09002# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5{
6 'target_defaults': {
7 'variables': {
8 'base_target': 0,
jam@chromium.orgef265dd2010-06-12 06:30:37 +09009 'base_extra_target': 0,
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090010 },
11 'target_conditions': [
sky@chromium.org1987a752010-07-02 05:14:50 +090012 # This part is shared between the targets defined below.
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090013 ['base_target==1', {
14 'sources': [
15 '../build/build_config.h',
16 'third_party/dmg_fp/dmg_fp.h',
17 'third_party/dmg_fp/dtoa.cc',
18 'third_party/dmg_fp/g_fmt.cc',
19 'third_party/icu/icu_utf.cc',
20 'third_party/icu/icu_utf.h',
21 'third_party/nspr/prtime.cc',
22 'third_party/nspr/prtime.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090023 'at_exit.cc',
24 'at_exit.h',
25 'atomic_ref_count.h',
26 'atomic_sequence_num.h',
27 'atomicops.h',
thestig@chromium.orgb6ba9432010-04-03 10:05:39 +090028 'atomicops_internals_x86_gcc.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090029 'atomicops_internals_x86_msvc.h',
30 'base_paths.cc',
31 'base_paths.h',
32 'base_paths_mac.h',
33 'base_paths_mac.mm',
34 'base_paths_posix.cc',
35 'base_paths_win.cc',
36 'base_paths_win.h',
37 'base_switches.cc',
38 'base_switches.h',
39 'basictypes.h',
40 'bits.h',
41 'bzip2_error_handler.cc',
akalin@chromium.org6ed4f882010-02-19 12:15:59 +090042 'callback.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090043 'cancellation_flag.cc',
thestig@chromium.orgb6ba9432010-04-03 10:05:39 +090044 'cancellation_flag.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090045 'chrome_application_mac.h',
46 'chrome_application_mac.mm',
47 'cocoa_protocols_mac.h',
48 'command_line.cc',
49 'command_line.h',
50 'compiler_specific.h',
51 'condition_variable.h',
52 'condition_variable_posix.cc',
53 'condition_variable_win.cc',
54 'cpu.cc',
55 'cpu.h',
56 'debug_on_start.cc',
57 'debug_on_start.h',
58 'debug_util.cc',
59 'debug_util.h',
60 'debug_util_mac.cc',
61 'debug_util_posix.cc',
62 'debug_util_win.cc',
agl@chromium.org4300a312010-03-12 00:25:54 +090063 'dir_reader_fallback.h',
64 'dir_reader_linux.h',
65 'dir_reader_posix.h',
thestig@chromium.orgb6ba9432010-04-03 10:05:39 +090066 'env_var.cc',
67 'env_var.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090068 'event_trace_consumer_win.h',
69 'event_trace_controller_win.cc',
70 'event_trace_controller_win.h',
71 'event_trace_provider_win.cc',
72 'event_trace_provider_win.h',
estade@chromium.org1d211282010-05-19 12:39:27 +090073 'event_synthesis_gtk.cc',
74 'event_synthesis_gtk.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090075 'file_path.cc',
76 'file_path.h',
77 'file_util.cc',
78 'file_util.h',
evan@chromium.orgc4e9f7c2010-02-23 20:34:54 +090079 'file_util_deprecated.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090080 'file_util_mac.mm',
81 'file_util_posix.cc',
82 'file_util_win.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090083 'file_version_info.h',
tony@chromium.org9f7a86f2010-04-14 10:46:43 +090084 'file_version_info_mac.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090085 'file_version_info_mac.mm',
tony@chromium.org9f7a86f2010-04-14 10:46:43 +090086 'file_version_info_win.cc',
87 'file_version_info_win.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090088 'fix_wp64.h',
89 'float_util.h',
90 'foundation_utils_mac.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090091 'global_descriptors_posix.cc',
thestig@chromium.orgb6ba9432010-04-03 10:05:39 +090092 'global_descriptors_posix.h',
phajdan.jr@chromium.orgdd43b732010-06-01 23:30:51 +090093 'gtest_prod_util.h',
sky@chromium.org1987a752010-07-02 05:14:50 +090094 'gtk_util.cc',
95 'gtk_util.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090096 'hash_tables.h',
97 'histogram.cc',
98 'histogram.h',
99 'iat_patch.cc',
100 'iat_patch.h',
101 'id_map.h',
102 'lazy_instance.cc',
103 'lazy_instance.h',
104 'leak_annotations.h',
105 'leak_tracker.h',
106 'linked_list.h',
107 'linked_ptr.h',
108 'lock.cc',
109 'lock.h',
110 'lock_impl.h',
111 'lock_impl_posix.cc',
112 'lock_impl_win.cc',
113 'logging.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900114 'logging.h',
thestig@chromium.orgb6ba9432010-04-03 10:05:39 +0900115 'logging_win.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900116 'mac_util.h',
117 'mac_util.mm',
thakis@chromium.org281e2102010-01-12 09:39:15 +0900118 'mach_ipc_mac.h',
119 'mach_ipc_mac.mm',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900120 'memory_debug.cc',
121 'memory_debug.h',
122 'message_loop.cc',
123 'message_loop.h',
sanjeevr@chromium.org11e02e62010-04-29 12:31:34 +0900124 'message_loop_proxy.h',
sanjeevr@chromium.orgd393cc42010-05-07 03:34:24 +0900125 'message_loop_proxy_impl.cc',
126 'message_loop_proxy_impl.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900127 'message_pump.h',
128 'message_pump_default.cc',
129 'message_pump_default.h',
130 'message_pump_win.cc',
131 'message_pump_win.h',
132 'mime_util.h',
evan@chromium.org73aec0e2010-04-23 08:28:05 +0900133 'mime_util_xdg.cc',
seanparent@google.come8280712010-03-20 06:59:01 +0900134 'move.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900135 'native_library.h',
136 'native_library_linux.cc',
137 'native_library_mac.mm',
138 'native_library_win.cc',
139 'non_thread_safe.cc',
140 'non_thread_safe.h',
141 'nullable_string16.h',
142 'object_watcher.cc',
143 'object_watcher.h',
144 'observer_list.h',
145 'observer_list_threadsafe.h',
146 'path_service.cc',
147 'path_service.h',
rvargas@google.comfb848672010-02-05 07:47:37 +0900148 'pe_image.cc',
149 'pe_image.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900150 'pickle.cc',
151 'pickle.h',
152 'platform_file.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900153 'platform_file_posix.cc',
thestig@chromium.orgb6ba9432010-04-03 10:05:39 +0900154 'platform_file_win.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900155 'platform_thread.h',
156 'platform_thread_mac.mm',
157 'platform_thread_posix.cc',
158 'platform_thread_win.cc',
159 'port.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900160 'process.h',
161 'process_linux.cc',
162 'process_posix.cc',
maruel@chromium.org9cf11e82010-04-30 02:44:42 +0900163 'process_util.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900164 'process_util.h',
165 'process_util_linux.cc',
166 'process_util_mac.mm',
167 'process_util_posix.cc',
168 'process_util_win.cc',
169 'process_win.cc',
thestig@chromium.orgb6ba9432010-04-03 10:05:39 +0900170 'profiler.cc',
171 'profiler.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900172 'rand_util.cc',
173 'rand_util.h',
174 'rand_util_posix.cc',
175 'rand_util_win.cc',
176 'raw_scoped_refptr_mismatch_checker.h',
177 'ref_counted.cc',
178 'ref_counted.h',
erg@google.comab2e6932010-07-28 09:09:54 +0900179 'ref_counted_memory.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900180 'ref_counted_memory.h',
181 'registry.cc',
182 'registry.h',
183 'resource_util.cc',
184 'resource_util.h',
185 'safe_strerror_posix.cc',
186 'safe_strerror_posix.h',
187 'scoped_bstr_win.cc',
188 'scoped_bstr_win.h',
189 'scoped_cftyperef.h',
190 'scoped_comptr_win.h',
191 'scoped_handle.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900192 'scoped_handle_win.h',
193 'scoped_nsautorelease_pool.h',
194 'scoped_nsautorelease_pool.mm',
195 'scoped_nsdisable_screen_updates.h',
196 'scoped_nsobject.h',
apatrick@chromium.org63e82d02010-02-25 07:27:04 +0900197 'scoped_open_process.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900198 'scoped_ptr.h',
199 'scoped_temp_dir.cc',
200 'scoped_temp_dir.h',
201 'scoped_variant_win.cc',
202 'scoped_variant_win.h',
203 'scoped_vector.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900204 'sha1.h',
wtc@chromium.orgd828db42010-06-24 06:41:40 +0900205 'sha1_portable.cc',
206 'sha1_win.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900207 'shared_memory.h',
208 'shared_memory_posix.cc',
209 'shared_memory_win.cc',
210 'simple_thread.cc',
211 'simple_thread.h',
212 'singleton.h',
213 'spin_wait.h',
214 'stack_container.h',
215 'stats_counters.h',
216 'stats_table.cc',
217 'stats_table.h',
218 'stl_util-inl.h',
brettw@chromium.orgcbde69a2010-07-31 04:28:44 +0900219 'string_number_conversions.cc',
220 'string_number_conversions.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900221 'string_piece.cc',
222 'string_piece.h',
timsteele@google.com22058212010-01-22 04:29:25 +0900223 'string_split.cc',
224 'string_split.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900225 'string_tokenizer.h',
226 'string_util.cc',
227 'string_util.h',
228 'string_util_win.h',
229 'sys_info.h',
230 'sys_info_chromeos.cc',
231 'sys_info_freebsd.cc',
232 'sys_info_linux.cc',
233 'sys_info_mac.cc',
234 'sys_info_openbsd.cc',
235 'sys_info_posix.cc',
236 'sys_info_win.cc',
237 'sys_string_conversions.h',
238 'sys_string_conversions_linux.cc',
239 'sys_string_conversions_mac.mm',
240 'sys_string_conversions_win.cc',
erg@chromium.org493f5f62010-07-16 06:03:54 +0900241 'task.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900242 'task.h',
willchan@chromium.orgb9b021a2010-06-16 04:39:24 +0900243 'template_util.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900244 'thread.cc',
245 'thread.h',
246 'thread_collision_warner.cc',
247 'thread_collision_warner.h',
248 'thread_local.h',
249 'thread_local_posix.cc',
250 'thread_local_storage.h',
251 'thread_local_storage_posix.cc',
252 'thread_local_storage_win.cc',
253 'thread_local_win.cc',
254 'time.cc',
255 'time.h',
256 'time_win.cc',
257 'timer.cc',
258 'timer.h',
siggi@chromium.org7cdbc422010-05-08 05:25:49 +0900259 'trace_event_win.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900260 'trace_event.cc',
261 'trace_event.h',
262 'tracked.cc',
263 'tracked.h',
264 'tracked_objects.cc',
265 'tracked_objects.h',
266 'tuple.h',
thestig@chromium.orgb6ba9432010-04-03 10:05:39 +0900267 'unix_domain_socket_posix.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900268 'utf_offset_string_conversions.cc',
269 'utf_offset_string_conversions.h',
270 'utf_string_conversion_utils.cc',
271 'utf_string_conversion_utils.h',
272 'utf_string_conversions.cc',
273 'utf_string_conversions.h',
robertshield@chromium.org9fb9e372010-03-23 05:12:50 +0900274 'values.cc',
275 'values.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900276 'waitable_event.h',
277 'waitable_event_posix.cc',
278 'waitable_event_watcher.h',
279 'waitable_event_watcher_posix.cc',
280 'waitable_event_watcher_win.cc',
281 'waitable_event_win.cc',
282 'watchdog.cc',
283 'watchdog.h',
erg@chromium.org493f5f62010-07-16 06:03:54 +0900284 'weak_ptr.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900285 'weak_ptr.h',
286 'win_util.cc',
287 'win_util.h',
288 'windows_message_list.h',
289 'wmi_util.cc',
290 'wmi_util.h',
291 'worker_pool.h',
292 'worker_pool_linux.cc',
293 'worker_pool_linux.h',
294 'worker_pool_mac.h',
295 'worker_pool_mac.mm',
296 'worker_pool_win.cc',
evan@chromium.org73aec0e2010-04-23 08:28:05 +0900297 'xdg_util.h',
298 'xdg_util.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900299 ],
300 'include_dirs': [
301 '..',
302 ],
303 # These warnings are needed for the files in third_party\dmg_fp.
304 'msvs_disabled_warnings': [
305 4244, 4554, 4018, 4102,
306 ],
307 'mac_framework_dirs': [
308 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks',
309 ],
310 'conditions': [
evan@chromium.org089339c2010-04-01 09:35:15 +0900311 [ 'OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"', {
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900312 'sources/': [
evan@chromium.org73aec0e2010-04-23 08:28:05 +0900313 ['exclude', '/xdg_[^/]*\\.cc$'],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900314 ],
315 'sources!': [
316 'atomicops_internals_x86_gcc.cc',
317 'base_paths_posix.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900318 'message_pump_glib.cc',
evan@chromium.org73aec0e2010-04-23 08:28:05 +0900319 'xdg_util.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900320 ],
tony@chromium.org9f7a86f2010-04-14 10:46:43 +0900321 }],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900322 [ 'OS != "linux"', {
323 'sources!': [
324 # Not automatically excluded by the *linux.cc rules.
sky@chromium.org1987a752010-07-02 05:14:50 +0900325 'gtk_util.cc',
326 'gtk_util.h',
evan@chromium.org73aec0e2010-04-23 08:28:05 +0900327 'linux_util.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900328 'setproctitle_linux.c',
329 'setproctitle_linux.h',
330 ],
331 },
332 ],
333 # For now, just test the *BSD platforms enough to exclude them.
334 # Subsequent changes will include them further.
335 [ 'OS != "freebsd"', {
336 'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
337 },
338 ],
339 [ 'OS != "openbsd"', {
340 'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
341 },
342 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900343 [ 'OS == "win"', {
344 'include_dirs': [
tony@chromium.orga3dbf212010-03-09 14:23:12 +0900345 '<(DEPTH)/third_party/wtl/include',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900346 ],
347 'sources!': [
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900348 'event_recorder_stubs.cc',
349 'file_descriptor_shuffle.cc',
350 'message_pump_libevent.cc',
wtc@chromium.org87019732010-06-26 06:53:41 +0900351 # Not using sha1_win.cc because it may have caused a
352 # regression to page cycler moz.
353 'sha1_win.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900354 'string16.cc',
siggi@chromium.org7cdbc422010-05-08 05:25:49 +0900355 'trace_event.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900356 ],
357 },],
358 ],
359 }],
wtc@chromium.org701c9422010-07-09 01:51:04 +0900360 ['base_extra_target==1', {
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900361 'sources': [
davidben@chromium.org8c3ccf32010-06-24 07:46:04 +0900362 'crypto/capi_util.cc',
363 'crypto/capi_util.h',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900364 'crypto/cssm_init.cc',
365 'crypto/cssm_init.h',
366 'crypto/encryptor.h',
367 'crypto/encryptor_mac.cc',
368 'crypto/encryptor_nss.cc',
369 'crypto/encryptor_win.cc',
370 'crypto/rsa_private_key.h',
371 'crypto/rsa_private_key.cc',
372 'crypto/rsa_private_key_mac.cc',
373 'crypto/rsa_private_key_nss.cc',
374 'crypto/rsa_private_key_win.cc',
375 'crypto/signature_creator.h',
376 'crypto/signature_creator_mac.cc',
377 'crypto/signature_creator_nss.cc',
378 'crypto/signature_creator_win.cc',
379 'crypto/signature_verifier.h',
380 'crypto/signature_verifier_mac.cc',
381 'crypto/signature_verifier_nss.cc',
382 'crypto/signature_verifier_win.cc',
383 'crypto/symmetric_key.h',
384 'crypto/symmetric_key_mac.cc',
385 'crypto/symmetric_key_nss.cc',
386 'crypto/symmetric_key_win.cc',
387 'third_party/nspr/prcpucfg.h',
388 'third_party/nspr/prcpucfg_win.h',
389 'third_party/nspr/prtypes.h',
390 'third_party/nss/blapi.h',
391 'third_party/nss/blapit.h',
392 'third_party/nss/sha256.h',
393 'third_party/nss/sha512.cc',
394 'third_party/purify/pure.h',
395 'third_party/purify/pure_api.c',
396 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
397 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h',
398 'auto_reset.h',
399 'base64.cc',
400 'base64.h',
401 'base_drag_source.cc',
402 'base_drag_source.h',
403 'base_drop_target.cc',
404 'base_drop_target.h',
405 'data_pack.cc',
406 'event_recorder.cc',
407 'event_recorder.h',
408 'event_recorder_stubs.cc',
409 'field_trial.cc',
410 'field_trial.h',
411 'file_descriptor_shuffle.cc',
412 'file_descriptor_shuffle.h',
413 'hmac.h',
414 'hmac_mac.cc',
415 'hmac_nss.cc',
416 'hmac_win.cc',
417 'image_util.cc',
418 'image_util.h',
419 'json/json_reader.cc',
420 'json/json_reader.h',
421 'json/json_writer.cc',
422 'json/json_writer.h',
423 'json/string_escape.cc',
424 'json/string_escape.h',
425 'keyboard_code_conversion_gtk.cc',
426 'keyboard_code_conversion_gtk.h',
suzhe@chromium.orga059fd82010-07-28 06:17:57 +0900427 'keyboard_code_conversion_mac.mm',
428 'keyboard_code_conversion_mac.h',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900429 'keyboard_codes.h',
430 'keyboard_codes_win.h',
431 'keyboard_codes_posix.h',
432 'linux_util.cc',
433 'linux_util.h',
434 'md5.cc',
435 'md5.h',
436 'message_pump_glib.cc',
437 'message_pump_glib.h',
438 'message_pump_libevent.cc',
439 'message_pump_libevent.h',
440 'message_pump_mac.h',
441 'message_pump_mac.mm',
442 'nsimage_cache_mac.h',
443 'nsimage_cache_mac.mm',
444 'nss_util.cc',
445 'nss_util.h',
446 'setproctitle_linux.c',
447 'setproctitle_linux.h',
448 'sha2.cc',
449 'sha2.h',
450 'string16.cc',
451 'string16.h',
452 'sync_socket.h',
453 'sync_socket_win.cc',
454 'sync_socket_posix.cc',
455 'time_mac.cc',
456 'time_posix.cc',
457 'version.cc',
458 'version.h',
459 ],
460 'conditions': [
wtc@chromium.org56fe64f2010-07-09 12:07:58 +0900461 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900462 'conditions': [
463 [ 'chromeos==1', {
464 'sources/': [ ['include', '_chromeos\\.cc$'] ]
465 },
466 ],
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900467 ],
468 'defines': [
469 'USE_SYMBOLIZE',
470 ],
471 'cflags': [
472 '-Wno-write-strings',
473 ],
wtc@chromium.org56fe64f2010-07-09 12:07:58 +0900474 }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"
wtc@chromium.org701c9422010-07-09 01:51:04 +0900475 'sources/': [
476 ['exclude', '/xdg_user_dirs/'],
477 ['exclude', '_nss\.cc$'],
478 ],
479 }],
480 [ 'OS != "mac"', {
481 'sources!': [
482 'crypto/cssm_init.cc',
483 'crypto/cssm_init.h',
484 ],
485 },],
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900486 [ 'OS != "win"', {
487 'sources!': [
488 'third_party/purify/pure_api.c',
489 'base_drag_source.cc',
490 'base_drop_target.cc',
491 'cpu.cc',
davidben@chromium.org8c3ccf32010-06-24 07:46:04 +0900492 'crypto/capi_util.h',
493 'crypto/capi_util.cc',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900494 'debug_on_start.cc',
495 'event_recorder.cc',
496 'file_version_info.cc',
497 'iat_patch.cc',
498 'image_util.cc',
499 'object_watcher.cc',
500 'pe_image.cc',
501 'registry.cc',
502 'resource_util.cc',
503 'win_util.cc',
504 'wmi_util.cc',
505 ],
506 },],
507 ],
508 }],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900509 ],
510 },
511 'targets': [
512 {
513 'target_name': 'base',
514 'type': '<(library)',
515 'msvs_guid': '1832A374-8A74-4F9E-B536-69A699B3E165',
516 'variables': {
517 'base_target': 1,
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900518 'base_extra_target': 1,
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900519 },
520 'dependencies': [
521 '../third_party/modp_b64/modp_b64.gyp:modp_b64',
tony@chromium.org2ddfe8c2010-05-19 17:33:37 +0900522 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900523 ],
524 # TODO(gregoryd): direct_dependent_settings should be shared with the
525 # 64-bit target, but it doesn't work due to a bug in gyp
526 'direct_dependent_settings': {
527 'include_dirs': [
528 '..',
529 ],
530 },
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900531 'conditions': [
pvalchev@google.com1d919db2010-03-10 16:46:43 +0900532 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900533 'conditions': [
thestig@chromium.orgbbe65c62010-07-02 10:12:18 +0900534 [ 'linux_use_tcmalloc==0', {
535 'defines': [
536 'NO_TCMALLOC',
537 ],
538 'direct_dependent_settings': {
539 'defines': [
540 'NO_TCMALLOC',
541 ],
542 },
543 },
544 ],
mmoss@google.com478c9442010-04-02 23:54:22 +0900545 [ 'linux_use_tcmalloc==1', {
546 'dependencies': [
547 'allocator/allocator.gyp:allocator',
548 ],
549 },
550 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900551 ],
552 'dependencies': [
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900553 'symbolize',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900554 '../build/util/build_util.gyp:lastchange',
555 '../build/linux/system.gyp:gtk',
556 '../build/linux/system.gyp:nss',
evan@chromium.orgc4bcf872010-02-03 11:11:40 +0900557 'xdg_mime',
satorux@chromium.org9bd30ff2010-01-26 15:26:26 +0900558 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900559 'export_dependent_settings': [
560 '../build/linux/system.gyp:gtk',
561 ],
562 },],
jam@chromium.orgf497c952010-06-11 14:41:00 +0900563 [ 'OS == "freebsd" or OS == "openbsd"', {
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900564 'link_settings': {
565 'libraries': [
566 '-L/usr/local/lib -lexecinfo',
jam@chromium.orgf497c952010-06-11 14:41:00 +0900567 ],
568 },
569 },
570 ],
bradnelson@google.com65d8cbf2010-06-12 07:45:37 +0900571 [ 'OS == "linux"', {
572 'link_settings': {
573 'libraries': [
574 # We need rt for clock_gettime().
575 '-lrt',
576 # For 'native_library_linux.cc'
577 '-ldl',
578 ],
579 },
580 }],
jam@chromium.orgf497c952010-06-11 14:41:00 +0900581 [ 'OS == "mac"', {
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900582 'link_settings': {
583 'libraries': [
584 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
585 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
586 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
587 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
588 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
589 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
590 ],
591 },
jam@chromium.orgf497c952010-06-11 14:41:00 +0900592 },],
wtc@chromium.orgcded8b22010-06-02 05:28:03 +0900593 [ 'OS == "mac" or OS == "win"', {
wtc@chromium.org6e6b7832010-01-28 04:36:22 +0900594 'dependencies': [
595 '../third_party/nss/nss.gyp:nss',
596 ],
wtc@chromium.orgcded8b22010-06-02 05:28:03 +0900597 },],
598 [ 'OS != "win"', {
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900599 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
wtc@chromium.org6e6b7832010-01-28 04:36:22 +0900600 },],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900601 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900602 },
603 ],
604 'conditions': [
605 [ 'OS == "win"', {
606 'targets': [
607 {
608 'target_name': 'base_nacl_win64',
609 'type': '<(library)',
610 'msvs_guid': 'CEE1F794-DC70-4FED-B7C4-4C12986672FE',
611 'variables': {
612 'base_target': 1,
613 },
timurrrr@chromium.orgf39c3ff2010-05-14 17:24:42 +0900614 'dependencies': [
tony@chromium.org2ddfe8c2010-05-19 17:33:37 +0900615 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
timurrrr@chromium.orgf39c3ff2010-05-14 17:24:42 +0900616 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900617 # TODO(gregoryd): direct_dependent_settings should be shared with the
618 # 32-bit target, but it doesn't work due to a bug in gyp
619 'direct_dependent_settings': {
620 'include_dirs': [
621 '..',
622 ],
623 },
624 'defines': [
625 '<@(nacl_win64_defines)',
626 ],
627 'sources': [
628 'i18n/icu_util_nacl_win64.cc',
629 ],
630 'configurations': {
gregoryd@google.comacc30ba2009-12-23 07:57:37 +0900631 'Common_Base': {
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900632 'msvs_target_platform': 'x64',
633 },
634 },
635 },
636 ],
637 }],
jam@chromium.org103e2cc2010-06-16 09:53:01 +0900638 [ 'OS == "linux" and internal_pdf', {
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900639 'targets': [
640 {
641 'target_name': 'base_fpic',
642 'type': '<(library)',
643 'variables': {
644 'base_target': 1,
645 'base_extra_target': 1,
646 },
647 'cflags': [
648 '-fPIC',
649 ],
jam@chromium.org3ac34032010-06-15 10:54:26 +0900650 # Official builds set -gstabs, which fails when building with -fPIC.
651 # It's useless on 64 bits anyways because breakpad doesn't work then.
652 'cflags!': [
653 '-gstabs',
654 ],
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900655 'direct_dependent_settings': {
656 'include_dirs': [
657 '..',
658 ],
659 },
660 'conditions': [
661 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
662 'dependencies': [
663 '../build/util/build_util.gyp:lastchange',
664 '../build/linux/system.gyp:gtk',
665 '../build/linux/system.gyp:nss',
666 'xdg_mime',
667 ],
668 'export_dependent_settings': [
669 '../build/linux/system.gyp:gtk',
670 ],
671 },],
bradnelson@google.com65d8cbf2010-06-12 07:45:37 +0900672 ['OS == "linux"', {
673 'link_settings': {
674 'libraries': [
675 # We need rt for clock_gettime().
676 '-lrt',
677 # For 'native_library_linux.cc'
678 '-ldl',
679 ],
680 },
681 }],
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900682 [ 'OS == "mac" or OS == "win"', {
683 'dependencies': [
684 '../third_party/nss/nss.gyp:nss',
685 ],
686 },],
687 [ 'OS != "win"', {
688 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
689 },],
690 ],
691 },
692 ],
693 }],
evan@chromium.org089339c2010-04-01 09:35:15 +0900694 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
satorux@chromium.org9bd30ff2010-01-26 15:26:26 +0900695 'targets': [
696 {
697 'target_name': 'symbolize',
698 'type': '<(library)',
mark@chromium.org9cc09262010-02-17 04:13:36 +0900699 'variables': {
700 'chromium_code': 0,
701 },
evan@chromium.org089339c2010-04-01 09:35:15 +0900702 'conditions': [
703 [ 'OS == "solaris"', {
704 'include_dirs': [
705 '/usr/gnu/include',
706 '/usr/gnu/include/libelf',
707 ],
708 },],
709 ],
satorux@chromium.org9bd30ff2010-01-26 15:26:26 +0900710 'cflags': [
711 '-Wno-sign-compare',
712 ],
evan@chromium.orga6768f52010-02-06 07:23:20 +0900713 'cflags!': [
714 '-Wextra',
715 ],
satorux@chromium.org9bd30ff2010-01-26 15:26:26 +0900716 'sources': [
717 'third_party/symbolize/symbolize.cc',
718 'third_party/symbolize/demangle.cc',
719 ],
720 },
evan@chromium.orgc4bcf872010-02-03 11:11:40 +0900721 {
722 'target_name': 'xdg_mime',
723 'type': '<(library)',
mark@chromium.org9cc09262010-02-17 04:13:36 +0900724 'variables': {
725 'chromium_code': 0,
726 },
evan@chromium.orga6768f52010-02-06 07:23:20 +0900727 'cflags!': [
728 '-Wextra',
729 ],
evan@chromium.orgc4bcf872010-02-03 11:11:40 +0900730 'sources': [
731 'third_party/xdg_mime/xdgmime.c',
732 'third_party/xdg_mime/xdgmime.h',
733 'third_party/xdg_mime/xdgmimealias.c',
734 'third_party/xdg_mime/xdgmimealias.h',
735 'third_party/xdg_mime/xdgmimecache.c',
736 'third_party/xdg_mime/xdgmimecache.h',
737 'third_party/xdg_mime/xdgmimeglob.c',
738 'third_party/xdg_mime/xdgmimeglob.h',
739 'third_party/xdg_mime/xdgmimeicon.c',
740 'third_party/xdg_mime/xdgmimeicon.h',
741 'third_party/xdg_mime/xdgmimeint.c',
742 'third_party/xdg_mime/xdgmimeint.h',
743 'third_party/xdg_mime/xdgmimemagic.c',
744 'third_party/xdg_mime/xdgmimemagic.h',
745 'third_party/xdg_mime/xdgmimeparent.c',
746 'third_party/xdg_mime/xdgmimeparent.h',
747 ],
748 },
satorux@chromium.org9bd30ff2010-01-26 15:26:26 +0900749 ],
750 }],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900751 ],
752}