blob: ba41fa5a3569fe9271c3c35396e2ab5498abdcea [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': [
12 # This part is shared between the targets defined below. Only files and
13 # settings relevant for building the Win64 target should be added here.
14 # All the rest should be added to the 'base' target below.
15 ['base_target==1', {
16 'sources': [
17 '../build/build_config.h',
18 'third_party/dmg_fp/dmg_fp.h',
19 'third_party/dmg_fp/dtoa.cc',
20 'third_party/dmg_fp/g_fmt.cc',
21 'third_party/icu/icu_utf.cc',
22 'third_party/icu/icu_utf.h',
23 'third_party/nspr/prtime.cc',
24 'third_party/nspr/prtime.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090025 'at_exit.cc',
26 'at_exit.h',
27 'atomic_ref_count.h',
28 'atomic_sequence_num.h',
29 'atomicops.h',
thestig@chromium.orgb6ba9432010-04-03 10:05:39 +090030 'atomicops_internals_x86_gcc.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090031 'atomicops_internals_x86_msvc.h',
32 'base_paths.cc',
33 'base_paths.h',
34 'base_paths_mac.h',
35 'base_paths_mac.mm',
36 'base_paths_posix.cc',
37 'base_paths_win.cc',
38 'base_paths_win.h',
39 'base_switches.cc',
40 'base_switches.h',
41 'basictypes.h',
42 'bits.h',
43 'bzip2_error_handler.cc',
akalin@chromium.org6ed4f882010-02-19 12:15:59 +090044 'callback.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090045 'cancellation_flag.cc',
thestig@chromium.orgb6ba9432010-04-03 10:05:39 +090046 'cancellation_flag.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090047 'chrome_application_mac.h',
48 'chrome_application_mac.mm',
49 'cocoa_protocols_mac.h',
50 'command_line.cc',
51 'command_line.h',
52 'compiler_specific.h',
53 'condition_variable.h',
54 'condition_variable_posix.cc',
55 'condition_variable_win.cc',
56 'cpu.cc',
57 'cpu.h',
58 'debug_on_start.cc',
59 'debug_on_start.h',
60 'debug_util.cc',
61 'debug_util.h',
62 'debug_util_mac.cc',
63 'debug_util_posix.cc',
64 'debug_util_win.cc',
agl@chromium.org4300a312010-03-12 00:25:54 +090065 'dir_reader_fallback.h',
66 'dir_reader_linux.h',
67 'dir_reader_posix.h',
thestig@chromium.orgb6ba9432010-04-03 10:05:39 +090068 'env_var.cc',
69 'env_var.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090070 'event_trace_consumer_win.h',
71 'event_trace_controller_win.cc',
72 'event_trace_controller_win.h',
73 'event_trace_provider_win.cc',
74 'event_trace_provider_win.h',
estade@chromium.org1d211282010-05-19 12:39:27 +090075 'event_synthesis_gtk.cc',
76 'event_synthesis_gtk.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090077 'file_path.cc',
78 'file_path.h',
79 'file_util.cc',
80 'file_util.h',
evan@chromium.orgc4e9f7c2010-02-23 20:34:54 +090081 'file_util_deprecated.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090082 'file_util_mac.mm',
83 'file_util_posix.cc',
84 'file_util_win.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090085 'file_version_info.h',
tony@chromium.org9f7a86f2010-04-14 10:46:43 +090086 'file_version_info_mac.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090087 'file_version_info_mac.mm',
tony@chromium.org9f7a86f2010-04-14 10:46:43 +090088 'file_version_info_win.cc',
89 'file_version_info_win.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090090 'fix_wp64.h',
91 'float_util.h',
92 'foundation_utils_mac.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090093 'global_descriptors_posix.cc',
thestig@chromium.orgb6ba9432010-04-03 10:05:39 +090094 'global_descriptors_posix.h',
phajdan.jr@chromium.orgdd43b732010-06-01 23:30:51 +090095 'gtest_prod_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',
179 'ref_counted_memory.h',
180 'registry.cc',
181 'registry.h',
182 'resource_util.cc',
183 'resource_util.h',
184 'safe_strerror_posix.cc',
185 'safe_strerror_posix.h',
186 'scoped_bstr_win.cc',
187 'scoped_bstr_win.h',
188 'scoped_cftyperef.h',
189 'scoped_comptr_win.h',
190 'scoped_handle.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900191 'scoped_handle_win.h',
192 'scoped_nsautorelease_pool.h',
193 'scoped_nsautorelease_pool.mm',
194 'scoped_nsdisable_screen_updates.h',
195 'scoped_nsobject.h',
apatrick@chromium.org63e82d02010-02-25 07:27:04 +0900196 'scoped_open_process.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900197 'scoped_ptr.h',
198 'scoped_temp_dir.cc',
199 'scoped_temp_dir.h',
200 'scoped_variant_win.cc',
201 'scoped_variant_win.h',
202 'scoped_vector.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900203 'sha1.h',
wtc@chromium.orgd828db42010-06-24 06:41:40 +0900204 'sha1_portable.cc',
205 'sha1_win.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900206 'shared_memory.h',
207 'shared_memory_posix.cc',
208 'shared_memory_win.cc',
209 'simple_thread.cc',
210 'simple_thread.h',
211 'singleton.h',
212 'spin_wait.h',
213 'stack_container.h',
214 'stats_counters.h',
215 'stats_table.cc',
216 'stats_table.h',
217 'stl_util-inl.h',
218 'string_piece.cc',
219 'string_piece.h',
timsteele@google.com22058212010-01-22 04:29:25 +0900220 'string_split.cc',
221 'string_split.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900222 'string_tokenizer.h',
223 'string_util.cc',
224 'string_util.h',
225 'string_util_win.h',
226 'sys_info.h',
227 'sys_info_chromeos.cc',
228 'sys_info_freebsd.cc',
229 'sys_info_linux.cc',
230 'sys_info_mac.cc',
231 'sys_info_openbsd.cc',
232 'sys_info_posix.cc',
233 'sys_info_win.cc',
234 'sys_string_conversions.h',
235 'sys_string_conversions_linux.cc',
236 'sys_string_conversions_mac.mm',
237 'sys_string_conversions_win.cc',
238 'task.h',
willchan@chromium.orgb9b021a2010-06-16 04:39:24 +0900239 'template_util.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900240 'thread.cc',
241 'thread.h',
242 'thread_collision_warner.cc',
243 'thread_collision_warner.h',
244 'thread_local.h',
245 'thread_local_posix.cc',
246 'thread_local_storage.h',
247 'thread_local_storage_posix.cc',
248 'thread_local_storage_win.cc',
249 'thread_local_win.cc',
250 'time.cc',
251 'time.h',
252 'time_win.cc',
253 'timer.cc',
254 'timer.h',
siggi@chromium.org7cdbc422010-05-08 05:25:49 +0900255 'trace_event_win.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900256 'trace_event.cc',
257 'trace_event.h',
258 'tracked.cc',
259 'tracked.h',
260 'tracked_objects.cc',
261 'tracked_objects.h',
262 'tuple.h',
thestig@chromium.orgb6ba9432010-04-03 10:05:39 +0900263 'unix_domain_socket_posix.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900264 'utf_offset_string_conversions.cc',
265 'utf_offset_string_conversions.h',
266 'utf_string_conversion_utils.cc',
267 'utf_string_conversion_utils.h',
268 'utf_string_conversions.cc',
269 'utf_string_conversions.h',
robertshield@chromium.org9fb9e372010-03-23 05:12:50 +0900270 'values.cc',
271 'values.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900272 'waitable_event.h',
273 'waitable_event_posix.cc',
274 'waitable_event_watcher.h',
275 'waitable_event_watcher_posix.cc',
276 'waitable_event_watcher_win.cc',
277 'waitable_event_win.cc',
278 'watchdog.cc',
279 'watchdog.h',
280 'weak_ptr.h',
281 'win_util.cc',
282 'win_util.h',
283 'windows_message_list.h',
284 'wmi_util.cc',
285 'wmi_util.h',
286 'worker_pool.h',
287 'worker_pool_linux.cc',
288 'worker_pool_linux.h',
289 'worker_pool_mac.h',
290 'worker_pool_mac.mm',
291 'worker_pool_win.cc',
evan@chromium.org73aec0e2010-04-23 08:28:05 +0900292 'xdg_util.h',
293 'xdg_util.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900294 ],
295 'include_dirs': [
296 '..',
297 ],
298 # These warnings are needed for the files in third_party\dmg_fp.
299 'msvs_disabled_warnings': [
300 4244, 4554, 4018, 4102,
301 ],
302 'mac_framework_dirs': [
303 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks',
304 ],
305 'conditions': [
evan@chromium.org089339c2010-04-01 09:35:15 +0900306 [ 'OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"', {
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900307 'sources/': [
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900308 ['exclude', '/xdg_user_dirs/'],
evan@chromium.org73aec0e2010-04-23 08:28:05 +0900309 ['exclude', '/xdg_[^/]*\\.cc$'],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900310 ['exclude', '_nss\.cc$'],
311 ],
312 'sources!': [
313 'atomicops_internals_x86_gcc.cc',
314 'base_paths_posix.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900315 'message_pump_glib.cc',
evan@chromium.org73aec0e2010-04-23 08:28:05 +0900316 'xdg_util.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900317 ],
tony@chromium.org9f7a86f2010-04-14 10:46:43 +0900318 }],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900319 [ 'OS != "linux"', {
320 'sources!': [
321 # Not automatically excluded by the *linux.cc rules.
evan@chromium.org73aec0e2010-04-23 08:28:05 +0900322 'linux_util.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900323 'setproctitle_linux.c',
324 'setproctitle_linux.h',
325 ],
326 },
327 ],
328 # For now, just test the *BSD platforms enough to exclude them.
329 # Subsequent changes will include them further.
330 [ 'OS != "freebsd"', {
331 'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
332 },
333 ],
334 [ 'OS != "openbsd"', {
335 'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
336 },
337 ],
wtc@chromium.orgcded8b22010-06-02 05:28:03 +0900338 [ 'OS != "mac"', {
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900339 'sources!': [
340 'crypto/cssm_init.cc',
341 'crypto/cssm_init.h',
342 ],
wtc@chromium.org6e6b7832010-01-28 04:36:22 +0900343 },],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900344 [ 'OS == "win"', {
345 'include_dirs': [
tony@chromium.orga3dbf212010-03-09 14:23:12 +0900346 '<(DEPTH)/third_party/wtl/include',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900347 ],
348 'sources!': [
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900349 'event_recorder_stubs.cc',
350 'file_descriptor_shuffle.cc',
351 'message_pump_libevent.cc',
wtc@chromium.org87019732010-06-26 06:53:41 +0900352 # Not using sha1_win.cc because it may have caused a
353 # regression to page cycler moz.
354 'sha1_win.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900355 'string16.cc',
siggi@chromium.org7cdbc422010-05-08 05:25:49 +0900356 'trace_event.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900357 ],
358 },],
359 ],
360 }],
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900361 ['base_extra_target', {
362 'sources': [
davidben@chromium.org8c3ccf32010-06-24 07:46:04 +0900363 'crypto/capi_util.cc',
364 'crypto/capi_util.h',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900365 'crypto/cssm_init.cc',
366 'crypto/cssm_init.h',
367 'crypto/encryptor.h',
368 'crypto/encryptor_mac.cc',
369 'crypto/encryptor_nss.cc',
370 'crypto/encryptor_win.cc',
371 'crypto/rsa_private_key.h',
372 'crypto/rsa_private_key.cc',
373 'crypto/rsa_private_key_mac.cc',
374 'crypto/rsa_private_key_nss.cc',
375 'crypto/rsa_private_key_win.cc',
376 'crypto/signature_creator.h',
377 'crypto/signature_creator_mac.cc',
378 'crypto/signature_creator_nss.cc',
379 'crypto/signature_creator_win.cc',
380 'crypto/signature_verifier.h',
381 'crypto/signature_verifier_mac.cc',
382 'crypto/signature_verifier_nss.cc',
383 'crypto/signature_verifier_win.cc',
384 'crypto/symmetric_key.h',
385 'crypto/symmetric_key_mac.cc',
386 'crypto/symmetric_key_nss.cc',
387 'crypto/symmetric_key_win.cc',
388 'third_party/nspr/prcpucfg.h',
389 'third_party/nspr/prcpucfg_win.h',
390 'third_party/nspr/prtypes.h',
391 'third_party/nss/blapi.h',
392 'third_party/nss/blapit.h',
393 'third_party/nss/sha256.h',
394 'third_party/nss/sha512.cc',
395 'third_party/purify/pure.h',
396 'third_party/purify/pure_api.c',
397 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
398 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h',
399 'auto_reset.h',
400 'base64.cc',
401 'base64.h',
402 'base_drag_source.cc',
403 'base_drag_source.h',
404 'base_drop_target.cc',
405 'base_drop_target.h',
406 'data_pack.cc',
407 'event_recorder.cc',
408 'event_recorder.h',
409 'event_recorder_stubs.cc',
410 'field_trial.cc',
411 'field_trial.h',
412 'file_descriptor_shuffle.cc',
413 'file_descriptor_shuffle.h',
414 'hmac.h',
415 'hmac_mac.cc',
416 'hmac_nss.cc',
417 'hmac_win.cc',
418 'image_util.cc',
419 'image_util.h',
420 'json/json_reader.cc',
421 'json/json_reader.h',
422 'json/json_writer.cc',
423 'json/json_writer.h',
424 'json/string_escape.cc',
425 'json/string_escape.h',
426 'keyboard_code_conversion_gtk.cc',
427 'keyboard_code_conversion_gtk.h',
428 'keyboard_codes.h',
429 'keyboard_codes_win.h',
430 'keyboard_codes_posix.h',
431 'linux_util.cc',
432 'linux_util.h',
433 'md5.cc',
434 'md5.h',
435 'message_pump_glib.cc',
436 'message_pump_glib.h',
437 'message_pump_libevent.cc',
438 'message_pump_libevent.h',
439 'message_pump_mac.h',
440 'message_pump_mac.mm',
441 'nsimage_cache_mac.h',
442 'nsimage_cache_mac.mm',
443 'nss_util.cc',
444 'nss_util.h',
445 'setproctitle_linux.c',
446 'setproctitle_linux.h',
447 'sha2.cc',
448 'sha2.h',
449 'string16.cc',
450 'string16.h',
451 'sync_socket.h',
452 'sync_socket_win.cc',
453 'sync_socket_posix.cc',
454 'time_mac.cc',
455 'time_posix.cc',
456 'version.cc',
457 'version.h',
458 ],
459 'conditions': [
460 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
461 'conditions': [
462 [ 'chromeos==1', {
463 'sources/': [ ['include', '_chromeos\\.cc$'] ]
464 },
465 ],
466 [ 'linux_use_tcmalloc==0', {
467 'defines': [
468 'NO_TCMALLOC',
469 ],
470 'direct_dependent_settings': {
471 'defines': [
472 'NO_TCMALLOC',
473 ],
474 },
475 },
476 ],
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900477 ],
478 'defines': [
479 'USE_SYMBOLIZE',
480 ],
481 'cflags': [
482 '-Wno-write-strings',
483 ],
484 },],
485 [ 'OS != "win"', {
486 'sources!': [
487 'third_party/purify/pure_api.c',
488 'base_drag_source.cc',
489 'base_drop_target.cc',
490 'cpu.cc',
davidben@chromium.org8c3ccf32010-06-24 07:46:04 +0900491 'crypto/capi_util.h',
492 'crypto/capi_util.cc',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900493 'debug_on_start.cc',
494 'event_recorder.cc',
495 'file_version_info.cc',
496 'iat_patch.cc',
497 'image_util.cc',
498 'object_watcher.cc',
499 'pe_image.cc',
500 'registry.cc',
501 'resource_util.cc',
502 'win_util.cc',
503 'wmi_util.cc',
504 ],
505 },],
506 ],
507 }],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900508 ],
509 },
510 'targets': [
511 {
512 'target_name': 'base',
513 'type': '<(library)',
514 'msvs_guid': '1832A374-8A74-4F9E-B536-69A699B3E165',
515 'variables': {
516 'base_target': 1,
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900517 'base_extra_target': 1,
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900518 },
519 'dependencies': [
520 '../third_party/modp_b64/modp_b64.gyp:modp_b64',
tony@chromium.org2ddfe8c2010-05-19 17:33:37 +0900521 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900522 ],
523 # TODO(gregoryd): direct_dependent_settings should be shared with the
524 # 64-bit target, but it doesn't work due to a bug in gyp
525 'direct_dependent_settings': {
526 'include_dirs': [
527 '..',
528 ],
529 },
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900530 'conditions': [
pvalchev@google.com1d919db2010-03-10 16:46:43 +0900531 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900532 'conditions': [
mmoss@google.com478c9442010-04-02 23:54:22 +0900533 [ 'linux_use_tcmalloc==1', {
534 'dependencies': [
535 'allocator/allocator.gyp:allocator',
536 ],
537 },
538 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900539 ],
540 'dependencies': [
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900541 'symbolize',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900542 '../build/util/build_util.gyp:lastchange',
543 '../build/linux/system.gyp:gtk',
544 '../build/linux/system.gyp:nss',
evan@chromium.orgc4bcf872010-02-03 11:11:40 +0900545 'xdg_mime',
satorux@chromium.org9bd30ff2010-01-26 15:26:26 +0900546 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900547 'export_dependent_settings': [
548 '../build/linux/system.gyp:gtk',
549 ],
550 },],
jam@chromium.orgf497c952010-06-11 14:41:00 +0900551 [ 'OS == "freebsd" or OS == "openbsd"', {
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900552 'link_settings': {
553 'libraries': [
554 '-L/usr/local/lib -lexecinfo',
jam@chromium.orgf497c952010-06-11 14:41:00 +0900555 ],
556 },
557 },
558 ],
bradnelson@google.com65d8cbf2010-06-12 07:45:37 +0900559 [ 'OS == "linux"', {
560 'link_settings': {
561 'libraries': [
562 # We need rt for clock_gettime().
563 '-lrt',
564 # For 'native_library_linux.cc'
565 '-ldl',
566 ],
567 },
568 }],
jam@chromium.orgf497c952010-06-11 14:41:00 +0900569 [ 'OS == "mac"', {
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900570 'link_settings': {
571 'libraries': [
572 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
573 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
574 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
575 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
576 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
577 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
578 ],
579 },
jam@chromium.orgf497c952010-06-11 14:41:00 +0900580 },],
wtc@chromium.orgcded8b22010-06-02 05:28:03 +0900581 [ 'OS == "mac" or OS == "win"', {
wtc@chromium.org6e6b7832010-01-28 04:36:22 +0900582 'dependencies': [
583 '../third_party/nss/nss.gyp:nss',
584 ],
wtc@chromium.orgcded8b22010-06-02 05:28:03 +0900585 },],
586 [ 'OS != "win"', {
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900587 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
wtc@chromium.org6e6b7832010-01-28 04:36:22 +0900588 },],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900589 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900590 },
591 ],
592 'conditions': [
593 [ 'OS == "win"', {
594 'targets': [
595 {
596 'target_name': 'base_nacl_win64',
597 'type': '<(library)',
598 'msvs_guid': 'CEE1F794-DC70-4FED-B7C4-4C12986672FE',
599 'variables': {
600 'base_target': 1,
601 },
timurrrr@chromium.orgf39c3ff2010-05-14 17:24:42 +0900602 'dependencies': [
tony@chromium.org2ddfe8c2010-05-19 17:33:37 +0900603 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
timurrrr@chromium.orgf39c3ff2010-05-14 17:24:42 +0900604 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900605 # TODO(gregoryd): direct_dependent_settings should be shared with the
606 # 32-bit target, but it doesn't work due to a bug in gyp
607 'direct_dependent_settings': {
608 'include_dirs': [
609 '..',
610 ],
611 },
612 'defines': [
613 '<@(nacl_win64_defines)',
614 ],
615 'sources': [
616 'i18n/icu_util_nacl_win64.cc',
617 ],
618 'configurations': {
gregoryd@google.comacc30ba2009-12-23 07:57:37 +0900619 'Common_Base': {
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900620 'msvs_target_platform': 'x64',
621 },
622 },
623 },
624 ],
625 }],
jam@chromium.org103e2cc2010-06-16 09:53:01 +0900626 [ 'OS == "linux" and internal_pdf', {
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900627 'targets': [
628 {
629 'target_name': 'base_fpic',
630 'type': '<(library)',
631 'variables': {
632 'base_target': 1,
633 'base_extra_target': 1,
634 },
635 'cflags': [
636 '-fPIC',
637 ],
jam@chromium.org3ac34032010-06-15 10:54:26 +0900638 # Official builds set -gstabs, which fails when building with -fPIC.
639 # It's useless on 64 bits anyways because breakpad doesn't work then.
640 'cflags!': [
641 '-gstabs',
642 ],
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900643 'direct_dependent_settings': {
644 'include_dirs': [
645 '..',
646 ],
647 },
648 'conditions': [
649 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
650 'dependencies': [
651 '../build/util/build_util.gyp:lastchange',
652 '../build/linux/system.gyp:gtk',
653 '../build/linux/system.gyp:nss',
654 'xdg_mime',
655 ],
656 'export_dependent_settings': [
657 '../build/linux/system.gyp:gtk',
658 ],
659 },],
bradnelson@google.com65d8cbf2010-06-12 07:45:37 +0900660 ['OS == "linux"', {
661 'link_settings': {
662 'libraries': [
663 # We need rt for clock_gettime().
664 '-lrt',
665 # For 'native_library_linux.cc'
666 '-ldl',
667 ],
668 },
669 }],
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900670 [ 'OS == "mac" or OS == "win"', {
671 'dependencies': [
672 '../third_party/nss/nss.gyp:nss',
673 ],
674 },],
675 [ 'OS != "win"', {
676 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
677 },],
678 ],
679 },
680 ],
681 }],
evan@chromium.org089339c2010-04-01 09:35:15 +0900682 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
satorux@chromium.org9bd30ff2010-01-26 15:26:26 +0900683 'targets': [
684 {
685 'target_name': 'symbolize',
686 'type': '<(library)',
mark@chromium.org9cc09262010-02-17 04:13:36 +0900687 'variables': {
688 'chromium_code': 0,
689 },
evan@chromium.org089339c2010-04-01 09:35:15 +0900690 'conditions': [
691 [ 'OS == "solaris"', {
692 'include_dirs': [
693 '/usr/gnu/include',
694 '/usr/gnu/include/libelf',
695 ],
696 },],
697 ],
satorux@chromium.org9bd30ff2010-01-26 15:26:26 +0900698 'cflags': [
699 '-Wno-sign-compare',
700 ],
evan@chromium.orga6768f52010-02-06 07:23:20 +0900701 'cflags!': [
702 '-Wextra',
703 ],
satorux@chromium.org9bd30ff2010-01-26 15:26:26 +0900704 'sources': [
705 'third_party/symbolize/symbolize.cc',
706 'third_party/symbolize/demangle.cc',
707 ],
708 },
evan@chromium.orgc4bcf872010-02-03 11:11:40 +0900709 {
710 'target_name': 'xdg_mime',
711 'type': '<(library)',
mark@chromium.org9cc09262010-02-17 04:13:36 +0900712 'variables': {
713 'chromium_code': 0,
714 },
evan@chromium.orga6768f52010-02-06 07:23:20 +0900715 'cflags!': [
716 '-Wextra',
717 ],
evan@chromium.orgc4bcf872010-02-03 11:11:40 +0900718 'sources': [
719 'third_party/xdg_mime/xdgmime.c',
720 'third_party/xdg_mime/xdgmime.h',
721 'third_party/xdg_mime/xdgmimealias.c',
722 'third_party/xdg_mime/xdgmimealias.h',
723 'third_party/xdg_mime/xdgmimecache.c',
724 'third_party/xdg_mime/xdgmimecache.h',
725 'third_party/xdg_mime/xdgmimeglob.c',
726 'third_party/xdg_mime/xdgmimeglob.h',
727 'third_party/xdg_mime/xdgmimeicon.c',
728 'third_party/xdg_mime/xdgmimeicon.h',
729 'third_party/xdg_mime/xdgmimeint.c',
730 'third_party/xdg_mime/xdgmimeint.h',
731 'third_party/xdg_mime/xdgmimemagic.c',
732 'third_party/xdg_mime/xdgmimemagic.h',
733 'third_party/xdg_mime/xdgmimeparent.c',
734 'third_party/xdg_mime/xdgmimeparent.h',
735 ],
736 },
satorux@chromium.org9bd30ff2010-01-26 15:26:26 +0900737 ],
738 }],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900739 ],
740}