blob: bca077a4188f4e5d0d918e00990a3a43cf341c4e [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',
brettw@chromium.orge47345a2010-10-16 13:56:06 +090034 'base_paths_linux.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090035 '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',
brettw@chromium.org2f49b122010-10-26 13:07:50 +090061 'debug/debugger.cc',
62 'debug/debugger.h',
63 'debug/debugger_posix.cc',
64 'debug/debugger_win.cc',
65 'debug/leak_annotations.h',
66 'debug/leak_tracker.h',
67 'debug/stack_trace.cc',
68 'debug/stack_trace.h',
69 'debug/stack_trace_posix.cc',
70 'debug/stack_trace_win.cc',
71 'debug/trace_event_win.cc',
72 'debug/trace_event.cc',
73 'debug/trace_event.h',
agl@chromium.org4300a312010-03-12 00:25:54 +090074 'dir_reader_fallback.h',
75 'dir_reader_linux.h',
76 'dir_reader_posix.h',
tfarina@chromium.org6d36c5d2010-08-03 12:00:50 +090077 'environment.cc',
78 'environment.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090079 'file_path.cc',
80 'file_path.h',
81 'file_util.cc',
82 'file_util.h',
evan@chromium.orgc4e9f7c2010-02-23 20:34:54 +090083 'file_util_deprecated.h',
evan@chromium.org33b77052010-08-20 09:36:01 +090084 'file_util_linux.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090085 'file_util_mac.mm',
86 'file_util_posix.cc',
87 'file_util_win.cc',
dumi@chromium.orgc980e402010-08-21 07:42:50 +090088 'file_util_proxy.cc',
89 'file_util_proxy.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090090 'file_version_info.h',
tony@chromium.org9f7a86f2010-04-14 10:46:43 +090091 'file_version_info_mac.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090092 'file_version_info_mac.mm',
tony@chromium.org9f7a86f2010-04-14 10:46:43 +090093 'file_version_info_win.cc',
94 'file_version_info_win.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090095 'fix_wp64.h',
96 'float_util.h',
97 'foundation_utils_mac.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090098 'global_descriptors_posix.cc',
thestig@chromium.orgb6ba9432010-04-03 10:05:39 +090099 'global_descriptors_posix.h',
phajdan.jr@chromium.orgdd43b732010-06-01 23:30:51 +0900100 'gtest_prod_util.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900101 'hash_tables.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900102 'id_map.h',
erg@google.com8aca7272010-08-19 03:33:57 +0900103 'json/json_reader.cc',
104 'json/json_reader.h',
105 'json/json_writer.cc',
106 'json/json_writer.h',
107 'json/string_escape.cc',
108 'json/string_escape.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900109 'lazy_instance.cc',
110 'lazy_instance.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900111 'linked_list.h',
112 'linked_ptr.h',
113 'lock.cc',
114 'lock.h',
115 'lock_impl.h',
116 'lock_impl_posix.cc',
117 'lock_impl_win.cc',
118 'logging.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900119 'logging.h',
thestig@chromium.orgb6ba9432010-04-03 10:05:39 +0900120 'logging_win.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900121 'mac_util.h',
122 'mac_util.mm',
brettw@chromium.org0d4a0352010-10-18 11:47:39 +0900123 'mac/scoped_aedesc.h',
124 'mac/scoped_nsautorelease_pool.h',
125 'mac/scoped_nsautorelease_pool.mm',
thakis@chromium.org281e2102010-01-12 09:39:15 +0900126 'mach_ipc_mac.h',
127 'mach_ipc_mac.mm',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900128 'memory_debug.cc',
129 'memory_debug.h',
130 'message_loop.cc',
131 'message_loop.h',
erg@google.com71915232010-09-29 07:54:58 +0900132 'message_loop_proxy.cc',
sanjeevr@chromium.org11e02e62010-04-29 12:31:34 +0900133 'message_loop_proxy.h',
sanjeevr@chromium.orgd393cc42010-05-07 03:34:24 +0900134 'message_loop_proxy_impl.cc',
135 'message_loop_proxy_impl.h',
erg@google.com71915232010-09-29 07:54:58 +0900136 'message_pump.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900137 'message_pump.h',
138 'message_pump_default.cc',
139 'message_pump_default.h',
140 'message_pump_win.cc',
141 'message_pump_win.h',
brettw@chromium.org275c2ec2010-10-14 13:38:38 +0900142 'metrics/histogram.cc',
143 'metrics/histogram.h',
mmortensen@google.com6f4c3a22010-10-29 01:48:05 +0900144 'metrics/nacl_histogram.cc',
145 'metrics/nacl_histogram.h',
brettw@chromium.org275c2ec2010-10-14 13:38:38 +0900146 'metrics/stats_counters.cc',
147 'metrics/stats_counters.h',
148 'metrics/stats_table.cc',
149 'metrics/stats_table.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900150 'mime_util.h',
evan@chromium.org73aec0e2010-04-23 08:28:05 +0900151 'mime_util_xdg.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900152 'native_library.h',
153 'native_library_linux.cc',
154 'native_library_mac.mm',
155 'native_library_win.cc',
156 'non_thread_safe.cc',
157 'non_thread_safe.h',
158 'nullable_string16.h',
159 'object_watcher.cc',
160 'object_watcher.h',
161 'observer_list.h',
162 'observer_list_threadsafe.h',
163 'path_service.cc',
164 'path_service.h',
165 'pickle.cc',
166 'pickle.h',
167 'platform_file.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900168 'platform_file_posix.cc',
thestig@chromium.orgb6ba9432010-04-03 10:05:39 +0900169 'platform_file_win.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900170 'platform_thread.h',
171 'platform_thread_mac.mm',
172 'platform_thread_posix.cc',
173 'platform_thread_win.cc',
174 'port.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900175 'process.h',
176 'process_linux.cc',
177 'process_posix.cc',
maruel@chromium.org9cf11e82010-04-30 02:44:42 +0900178 'process_util.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900179 'process_util.h',
180 'process_util_linux.cc',
181 'process_util_mac.mm',
182 'process_util_posix.cc',
183 'process_util_win.cc',
184 'process_win.cc',
185 'rand_util.cc',
186 'rand_util.h',
187 'rand_util_posix.cc',
188 'rand_util_win.cc',
189 'raw_scoped_refptr_mismatch_checker.h',
190 'ref_counted.cc',
191 'ref_counted.h',
erg@google.comab2e6932010-07-28 09:09:54 +0900192 'ref_counted_memory.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900193 'ref_counted_memory.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900194 'resource_util.cc',
195 'resource_util.h',
196 'safe_strerror_posix.cc',
197 'safe_strerror_posix.h',
darin@chromium.org2df32212010-07-31 08:05:15 +0900198 'scoped_callback_factory.h',
dmaclach@chromium.org5e3e52c2010-10-28 05:46:39 +0900199 'mac/scoped_cftyperef.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900200 'scoped_handle.h',
brettw@chromium.org3cd71702010-11-10 10:16:11 +0900201 'scoped_native_library.cc',
202 'scoped_native_library.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900203 'scoped_nsobject.h',
apatrick@chromium.org63e82d02010-02-25 07:27:04 +0900204 'scoped_open_process.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900205 'scoped_ptr.h',
206 'scoped_temp_dir.cc',
207 'scoped_temp_dir.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900208 'scoped_vector.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900209 'sha1.h',
wtc@chromium.orgd828db42010-06-24 06:41:40 +0900210 'sha1_portable.cc',
211 'sha1_win.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900212 'shared_memory.h',
213 'shared_memory_posix.cc',
214 'shared_memory_win.cc',
215 'simple_thread.cc',
216 'simple_thread.h',
217 'singleton.h',
218 'spin_wait.h',
219 'stack_container.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900220 'stl_util-inl.h',
brettw@chromium.orgcbde69a2010-07-31 04:28:44 +0900221 'string_number_conversions.cc',
222 'string_number_conversions.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900223 'string_piece.cc',
224 'string_piece.h',
timsteele@google.com22058212010-01-22 04:29:25 +0900225 'string_split.cc',
226 'string_split.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900227 'string_tokenizer.h',
228 'string_util.cc',
229 'string_util.h',
230 'string_util_win.h',
brettw@chromium.org67cbde42010-08-17 12:45:37 +0900231 'stringprintf.cc',
232 'stringprintf.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900233 'sys_info.h',
234 'sys_info_chromeos.cc',
235 'sys_info_freebsd.cc',
236 'sys_info_linux.cc',
237 'sys_info_mac.cc',
238 'sys_info_openbsd.cc',
239 'sys_info_posix.cc',
240 'sys_info_win.cc',
241 'sys_string_conversions.h',
242 'sys_string_conversions_linux.cc',
243 'sys_string_conversions_mac.mm',
244 'sys_string_conversions_win.cc',
erg@chromium.org493f5f62010-07-16 06:03:54 +0900245 'task.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900246 'task.h',
levin@chromium.orgf4cb1742010-08-26 15:09:38 +0900247 'task_queue.cc',
248 'task_queue.h',
willchan@chromium.orgb9b021a2010-06-16 04:39:24 +0900249 'template_util.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900250 'thread.cc',
251 'thread.h',
levin@chromium.org77996d82010-08-24 13:29:56 +0900252 'thread_checker.cc',
253 'thread_checker.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900254 'thread_collision_warner.cc',
255 'thread_collision_warner.h',
256 'thread_local.h',
257 'thread_local_posix.cc',
258 'thread_local_storage.h',
259 'thread_local_storage_posix.cc',
260 'thread_local_storage_win.cc',
261 'thread_local_win.cc',
jam@chromium.orgc803b5f2010-11-05 02:41:00 +0900262 'thread_restrictions.h',
263 'thread_restrictions.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900264 'time.cc',
265 'time.h',
266 'time_win.cc',
267 'timer.cc',
268 'timer.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900269 'tracked.cc',
270 'tracked.h',
271 'tracked_objects.cc',
272 'tracked_objects.h',
273 'tuple.h',
thestig@chromium.orgb6ba9432010-04-03 10:05:39 +0900274 'unix_domain_socket_posix.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900275 'utf_offset_string_conversions.cc',
276 'utf_offset_string_conversions.h',
277 'utf_string_conversion_utils.cc',
278 'utf_string_conversion_utils.h',
279 'utf_string_conversions.cc',
280 'utf_string_conversions.h',
robertshield@chromium.org9fb9e372010-03-23 05:12:50 +0900281 'values.cc',
282 'values.h',
robertshield@chromium.orga9914a32010-11-11 02:02:19 +0900283 'version.cc',
284 'version.h',
akalin@chromium.orgf0ee79c2010-09-30 04:26:36 +0900285 'vlog.cc',
286 'vlog.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900287 'waitable_event.h',
288 'waitable_event_posix.cc',
289 'waitable_event_watcher.h',
290 'waitable_event_watcher_posix.cc',
291 'waitable_event_watcher_win.cc',
292 'waitable_event_win.cc',
293 'watchdog.cc',
294 'watchdog.h',
erg@chromium.org493f5f62010-07-16 06:03:54 +0900295 'weak_ptr.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900296 'weak_ptr.h',
brettw@chromium.orgb3a7c3e2010-10-17 13:41:54 +0900297 'win/pe_image.cc',
siggi@chromium.org7913ed62010-11-07 00:39:40 +0900298 'win/event_trace_consumer.h',
299 'win/event_trace_controller.cc',
300 'win/event_trace_controller.h',
301 'win/event_trace_provider.cc',
302 'win/event_trace_provider.h',
brettw@chromium.orgb3a7c3e2010-10-17 13:41:54 +0900303 'win/pe_image.h',
304 'win/registry.cc',
305 'win/registry.h',
brettw@chromium.org45352272010-10-16 12:46:05 +0900306 'win/scoped_bstr.cc',
307 'win/scoped_bstr.h',
308 'win/scoped_comptr.h',
309 'win/scoped_gdi_object.h',
310 'win/scoped_handle.h',
311 'win/scoped_hdc.h',
312 'win/scoped_hglobal.h',
313 'win/scoped_variant.cc',
314 'win/scoped_variant.h',
brettw@chromium.orgacb14c22010-10-15 10:59:15 +0900315 'win/windows_version.cc',
316 'win/windows_version.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900317 'win_util.cc',
318 'win_util.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900319 'worker_pool.h',
320 'worker_pool_linux.cc',
321 'worker_pool_linux.h',
322 'worker_pool_mac.h',
323 'worker_pool_mac.mm',
324 'worker_pool_win.cc',
brettw@chromium.orge47345a2010-10-16 13:56:06 +0900325 'nix/xdg_util.h',
326 'nix/xdg_util.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900327 ],
328 'include_dirs': [
329 '..',
330 ],
331 # These warnings are needed for the files in third_party\dmg_fp.
332 'msvs_disabled_warnings': [
333 4244, 4554, 4018, 4102,
334 ],
335 'mac_framework_dirs': [
336 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks',
337 ],
338 'conditions': [
evan@chromium.org089339c2010-04-01 09:35:15 +0900339 [ 'OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"', {
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900340 'sources/': [
brettw@chromium.orge47345a2010-10-16 13:56:06 +0900341 ['exclude', '^nix/'],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900342 ],
343 'sources!': [
344 'atomicops_internals_x86_gcc.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900345 'message_pump_glib.cc',
rjkroege@google.com3080f442010-10-23 01:17:47 +0900346 'message_pump_glib_x.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900347 ],
tony@chromium.org9f7a86f2010-04-14 10:46:43 +0900348 }],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900349 [ 'OS != "linux"', {
350 'sources!': [
351 # Not automatically excluded by the *linux.cc rules.
sky@chromium.org1987a752010-07-02 05:14:50 +0900352 'gtk_util.cc',
353 'gtk_util.h',
evan@chromium.org73aec0e2010-04-23 08:28:05 +0900354 'linux_util.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900355 'setproctitle_linux.c',
356 'setproctitle_linux.h',
357 ],
358 },
359 ],
shess@chromium.org73e9abc2010-11-06 08:15:58 +0900360 # Temporarily include linux implementation while debugging a
361 # workerpool issue. See http://crbug.com/20471 and
362 # http://crbug.com/60426
363 [ 'OS == "mac"', {
364 'sources/': [ ['include', '(^|/)worker_pool_linux\.cc$'] ],
365 },
366 ],
rsesek@chromium.org56a552f2010-08-14 00:24:53 +0900367 [ 'OS != "mac"', {
368 'sources!': [
369 'scoped_aedesc.h'
370 ],
371 }],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900372 # For now, just test the *BSD platforms enough to exclude them.
373 # Subsequent changes will include them further.
374 [ 'OS != "freebsd"', {
375 'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
376 },
377 ],
378 [ 'OS != "openbsd"', {
379 'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
380 },
381 ],
brettw@chromium.org45352272010-10-16 12:46:05 +0900382 ['OS != "win"', {
383 'sources/': [ ['exclude', '^win/'] ],
384 },
385 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900386 [ 'OS == "win"', {
brettw@chromium.orgacb14c22010-10-15 10:59:15 +0900387 'include_dirs': [
388 '<(DEPTH)/third_party/wtl/include',
389 ],
390 'sources!': [
391 'event_recorder_stubs.cc',
392 'file_descriptor_shuffle.cc',
393 'message_pump_libevent.cc',
394 # Not using sha1_win.cc because it may have caused a
395 # regression to page cycler moz.
396 'sha1_win.cc',
397 'string16.cc',
brettw@chromium.org2f49b122010-10-26 13:07:50 +0900398 'debug/trace_event.cc',
brettw@chromium.orgacb14c22010-10-15 10:59:15 +0900399 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900400 },],
401 ],
402 }],
wtc@chromium.org701c9422010-07-09 01:51:04 +0900403 ['base_extra_target==1', {
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900404 'sources': [
davidben@chromium.org8c3ccf32010-06-24 07:46:04 +0900405 'crypto/capi_util.cc',
406 'crypto/capi_util.h',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900407 'crypto/cssm_init.cc',
408 'crypto/cssm_init.h',
409 'crypto/encryptor.h',
410 'crypto/encryptor_mac.cc',
411 'crypto/encryptor_nss.cc',
joth@chromium.org0dd35272010-10-22 22:12:34 +0900412 'crypto/encryptor_openssl.cc',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900413 'crypto/encryptor_win.cc',
414 'crypto/rsa_private_key.h',
415 'crypto/rsa_private_key.cc',
416 'crypto/rsa_private_key_mac.cc',
417 'crypto/rsa_private_key_nss.cc',
joth@chromium.org0dd35272010-10-22 22:12:34 +0900418 'crypto/rsa_private_key_openssl.cc',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900419 'crypto/rsa_private_key_win.cc',
420 'crypto/signature_creator.h',
421 'crypto/signature_creator_mac.cc',
422 'crypto/signature_creator_nss.cc',
joth@chromium.org0dd35272010-10-22 22:12:34 +0900423 'crypto/signature_creator_openssl.cc',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900424 'crypto/signature_creator_win.cc',
425 'crypto/signature_verifier.h',
426 'crypto/signature_verifier_mac.cc',
427 'crypto/signature_verifier_nss.cc',
joth@chromium.org0dd35272010-10-22 22:12:34 +0900428 'crypto/signature_verifier_openssl.cc',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900429 'crypto/signature_verifier_win.cc',
430 'crypto/symmetric_key.h',
431 'crypto/symmetric_key_mac.cc',
432 'crypto/symmetric_key_nss.cc',
joth@chromium.org0dd35272010-10-22 22:12:34 +0900433 'crypto/symmetric_key_openssl.cc',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900434 'crypto/symmetric_key_win.cc',
435 'third_party/nspr/prcpucfg.h',
436 'third_party/nspr/prcpucfg_win.h',
437 'third_party/nspr/prtypes.h',
438 'third_party/nss/blapi.h',
439 'third_party/nss/blapit.h',
440 'third_party/nss/sha256.h',
441 'third_party/nss/sha512.cc',
442 'third_party/purify/pure.h',
443 'third_party/purify/pure_api.c',
444 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
445 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h',
446 'auto_reset.h',
447 'base64.cc',
448 'base64.h',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900449 'data_pack.cc',
450 'event_recorder.cc',
451 'event_recorder.h',
452 'event_recorder_stubs.cc',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900453 'file_descriptor_shuffle.cc',
454 'file_descriptor_shuffle.h',
455 'hmac.h',
456 'hmac_mac.cc',
457 'hmac_nss.cc',
joth@chromium.org0dd35272010-10-22 22:12:34 +0900458 'hmac_openssl.cc',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900459 'hmac_win.cc',
460 'image_util.cc',
461 'image_util.h',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900462 'linux_util.cc',
463 'linux_util.h',
464 'md5.cc',
465 'md5.h',
466 'message_pump_glib.cc',
467 'message_pump_glib.h',
rjkroege@google.com3080f442010-10-23 01:17:47 +0900468 'message_pump_glib_x.cc',
469 'message_pump_glib_x.h',
rjkroege@google.com2d96d7d2010-10-27 03:43:18 +0900470 'message_pump_glib_x_dispatch.h',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900471 'message_pump_libevent.cc',
472 'message_pump_libevent.h',
473 'message_pump_mac.h',
474 'message_pump_mac.mm',
brettw@chromium.org275c2ec2010-10-14 13:38:38 +0900475 'metrics/field_trial.cc',
476 'metrics/field_trial.h',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900477 'nsimage_cache_mac.h',
478 'nsimage_cache_mac.mm',
479 'nss_util.cc',
480 'nss_util.h',
481 'setproctitle_linux.c',
482 'setproctitle_linux.h',
483 'sha2.cc',
484 'sha2.h',
joth@chromium.org0dd35272010-10-22 22:12:34 +0900485 'sha2_openssl.cc',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900486 'string16.cc',
487 'string16.h',
488 'sync_socket.h',
489 'sync_socket_win.cc',
490 'sync_socket_posix.cc',
491 'time_mac.cc',
492 'time_posix.cc',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900493 ],
494 'conditions': [
wtc@chromium.org56fe64f2010-07-09 12:07:58 +0900495 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900496 'conditions': [
497 [ 'chromeos==1', {
498 'sources/': [ ['include', '_chromeos\\.cc$'] ]
499 },
500 ],
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900501 ],
502 'defines': [
503 'USE_SYMBOLIZE',
504 ],
505 'cflags': [
506 '-Wno-write-strings',
507 ],
wtc@chromium.org56fe64f2010-07-09 12:07:58 +0900508 }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"
wtc@chromium.org701c9422010-07-09 01:51:04 +0900509 'sources/': [
510 ['exclude', '/xdg_user_dirs/'],
511 ['exclude', '_nss\.cc$'],
512 ],
513 }],
514 [ 'OS != "mac"', {
515 'sources!': [
516 'crypto/cssm_init.cc',
517 'crypto/cssm_init.h',
518 ],
519 },],
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900520 [ 'OS != "win"', {
521 'sources!': [
522 'third_party/purify/pure_api.c',
523 'base_drag_source.cc',
524 'base_drop_target.cc',
525 'cpu.cc',
davidben@chromium.org8c3ccf32010-06-24 07:46:04 +0900526 'crypto/capi_util.h',
527 'crypto/capi_util.cc',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900528 'debug_on_start.cc',
529 'event_recorder.cc',
530 'file_version_info.cc',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900531 'image_util.cc',
532 'object_watcher.cc',
533 'pe_image.cc',
534 'registry.cc',
535 'resource_util.cc',
536 'win_util.cc',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900537 ],
538 },],
joth@chromium.org0dd35272010-10-22 22:12:34 +0900539 [ 'use_openssl==1', {
540 # TODO(joth): Use a glob to match exclude patterns once the
541 # OpenSSL file set is complete.
542 'sources!': [
543 'crypto/encryptor_nss.cc',
544 'crypto/rsa_private_key_nss.cc',
545 'crypto/signature_creator_nss.cc',
546 'crypto/signature_verifier_nss.cc',
547 'crypto/symmetric_key_nss.cc',
548 'hmac_nss.cc',
549 'nss_util.cc',
550 'nss_util.h',
551 # Note that sha2.cc depends on the NSS files bundled into
552 # chromium; it does not have the _nss postfix as it is required
553 # on platforms besides linux and *bsd.
554 'sha2.cc',
555 'third_party/nss/blapi.h',
556 'third_party/nss/blapit.h',
557 'third_party/nss/sha256.h',
558 'third_party/nss/sha512.cc',
559 ],
560 }, {
561 'sources!': [
562 'crypto/encryptor_openssl.cc',
563 'crypto/rsa_private_key_openssl.cc',
564 'crypto/signature_creator_openssl.cc',
565 'crypto/signature_verifier_openssl.cc',
566 'crypto/symmetric_key_openssl.cc',
567 'hmac_openssl.cc',
568 'sha2_openssl.cc',
569 ],
570 },],
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900571 ],
572 }],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900573 ],
574 },
575 'targets': [
576 {
577 'target_name': 'base',
578 'type': '<(library)',
579 'msvs_guid': '1832A374-8A74-4F9E-B536-69A699B3E165',
580 'variables': {
581 'base_target': 1,
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900582 'base_extra_target': 1,
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900583 },
584 'dependencies': [
585 '../third_party/modp_b64/modp_b64.gyp:modp_b64',
tony@chromium.org2ddfe8c2010-05-19 17:33:37 +0900586 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900587 ],
588 # TODO(gregoryd): direct_dependent_settings should be shared with the
589 # 64-bit target, but it doesn't work due to a bug in gyp
590 'direct_dependent_settings': {
591 'include_dirs': [
592 '..',
593 ],
594 },
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900595 'conditions': [
pvalchev@google.com1d919db2010-03-10 16:46:43 +0900596 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900597 'conditions': [
thestig@chromium.orgbbe65c62010-07-02 10:12:18 +0900598 [ 'linux_use_tcmalloc==0', {
599 'defines': [
600 'NO_TCMALLOC',
601 ],
602 'direct_dependent_settings': {
603 'defines': [
604 'NO_TCMALLOC',
605 ],
606 },
607 },
608 ],
joth@chromium.org0dd35272010-10-22 22:12:34 +0900609 [ 'use_openssl==1', {
610 'dependencies': [
611 '../build/linux/system.gyp:openssl',
612 ],
613 }, { # use_openssl==0
614 'dependencies': [
615 '../build/linux/system.gyp:nss',
616 ],
617 }
618 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900619 ],
620 'dependencies': [
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900621 'symbolize',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900622 '../build/util/build_util.gyp:lastchange',
623 '../build/linux/system.gyp:gtk',
rjkroege@google.com3080f442010-10-23 01:17:47 +0900624 '../build/linux/system.gyp:x11',
evan@chromium.orgc4bcf872010-02-03 11:11:40 +0900625 'xdg_mime',
satorux@chromium.org9bd30ff2010-01-26 15:26:26 +0900626 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900627 'export_dependent_settings': [
628 '../build/linux/system.gyp:gtk',
rjkroege@google.com3080f442010-10-23 01:17:47 +0900629 '../build/linux/system.gyp:x11',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900630 ],
631 },],
jam@chromium.orgf497c952010-06-11 14:41:00 +0900632 [ 'OS == "freebsd" or OS == "openbsd"', {
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900633 'link_settings': {
634 'libraries': [
635 '-L/usr/local/lib -lexecinfo',
jam@chromium.orgf497c952010-06-11 14:41:00 +0900636 ],
637 },
638 },
639 ],
bradnelson@google.com65d8cbf2010-06-12 07:45:37 +0900640 [ 'OS == "linux"', {
641 'link_settings': {
642 'libraries': [
643 # We need rt for clock_gettime().
644 '-lrt',
645 # For 'native_library_linux.cc'
646 '-ldl',
647 ],
648 },
649 }],
jam@chromium.orgf497c952010-06-11 14:41:00 +0900650 [ 'OS == "mac"', {
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900651 'link_settings': {
652 'libraries': [
653 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
654 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
655 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
656 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
657 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
658 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
659 ],
660 },
jam@chromium.orgf497c952010-06-11 14:41:00 +0900661 },],
wtc@chromium.orgcded8b22010-06-02 05:28:03 +0900662 [ 'OS == "mac" or OS == "win"', {
wtc@chromium.org6e6b7832010-01-28 04:36:22 +0900663 'dependencies': [
664 '../third_party/nss/nss.gyp:nss',
665 ],
wtc@chromium.orgcded8b22010-06-02 05:28:03 +0900666 },],
667 [ 'OS != "win"', {
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900668 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
wtc@chromium.org6e6b7832010-01-28 04:36:22 +0900669 },],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900670 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900671 },
672 ],
673 'conditions': [
674 [ 'OS == "win"', {
675 'targets': [
676 {
677 'target_name': 'base_nacl_win64',
678 'type': '<(library)',
679 'msvs_guid': 'CEE1F794-DC70-4FED-B7C4-4C12986672FE',
680 'variables': {
681 'base_target': 1,
682 },
timurrrr@chromium.orgf39c3ff2010-05-14 17:24:42 +0900683 'dependencies': [
tony@chromium.org2ddfe8c2010-05-19 17:33:37 +0900684 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
timurrrr@chromium.orgf39c3ff2010-05-14 17:24:42 +0900685 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900686 # TODO(gregoryd): direct_dependent_settings should be shared with the
687 # 32-bit target, but it doesn't work due to a bug in gyp
688 'direct_dependent_settings': {
689 'include_dirs': [
690 '..',
691 ],
692 },
693 'defines': [
694 '<@(nacl_win64_defines)',
695 ],
696 'sources': [
697 'i18n/icu_util_nacl_win64.cc',
698 ],
699 'configurations': {
gregoryd@google.comacc30ba2009-12-23 07:57:37 +0900700 'Common_Base': {
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900701 'msvs_target_platform': 'x64',
702 },
703 },
704 },
705 ],
706 }],
jam@chromium.org103e2cc2010-06-16 09:53:01 +0900707 [ 'OS == "linux" and internal_pdf', {
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900708 'targets': [
709 {
710 'target_name': 'base_fpic',
711 'type': '<(library)',
712 'variables': {
713 'base_target': 1,
714 'base_extra_target': 1,
715 },
716 'cflags': [
717 '-fPIC',
718 ],
719 'direct_dependent_settings': {
720 'include_dirs': [
721 '..',
722 ],
723 },
724 'conditions': [
725 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
726 'dependencies': [
727 '../build/util/build_util.gyp:lastchange',
728 '../build/linux/system.gyp:gtk',
729 '../build/linux/system.gyp:nss',
rjkroege@google.com3080f442010-10-23 01:17:47 +0900730 '../build/linux/system.gyp:x11',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900731 'xdg_mime',
732 ],
733 'export_dependent_settings': [
734 '../build/linux/system.gyp:gtk',
rjkroege@google.com3080f442010-10-23 01:17:47 +0900735 '../build/linux/system.gyp:x11',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900736 ],
737 },],
bradnelson@google.com65d8cbf2010-06-12 07:45:37 +0900738 ['OS == "linux"', {
739 'link_settings': {
740 'libraries': [
741 # We need rt for clock_gettime().
742 '-lrt',
743 # For 'native_library_linux.cc'
744 '-ldl',
745 ],
746 },
747 }],
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900748 [ 'OS == "mac" or OS == "win"', {
749 'dependencies': [
750 '../third_party/nss/nss.gyp:nss',
751 ],
752 },],
753 [ 'OS != "win"', {
754 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
755 },],
756 ],
757 },
758 ],
759 }],
evan@chromium.org089339c2010-04-01 09:35:15 +0900760 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
satorux@chromium.org9bd30ff2010-01-26 15:26:26 +0900761 'targets': [
762 {
763 'target_name': 'symbolize',
764 'type': '<(library)',
mark@chromium.org9cc09262010-02-17 04:13:36 +0900765 'variables': {
766 'chromium_code': 0,
767 },
evan@chromium.org089339c2010-04-01 09:35:15 +0900768 'conditions': [
769 [ 'OS == "solaris"', {
770 'include_dirs': [
771 '/usr/gnu/include',
772 '/usr/gnu/include/libelf',
773 ],
774 },],
775 ],
satorux@chromium.org9bd30ff2010-01-26 15:26:26 +0900776 'cflags': [
777 '-Wno-sign-compare',
778 ],
evan@chromium.orga6768f52010-02-06 07:23:20 +0900779 'cflags!': [
780 '-Wextra',
781 ],
satorux@chromium.org9bd30ff2010-01-26 15:26:26 +0900782 'sources': [
783 'third_party/symbolize/symbolize.cc',
784 'third_party/symbolize/demangle.cc',
785 ],
786 },
evan@chromium.orgc4bcf872010-02-03 11:11:40 +0900787 {
788 'target_name': 'xdg_mime',
789 'type': '<(library)',
mark@chromium.org9cc09262010-02-17 04:13:36 +0900790 'variables': {
791 'chromium_code': 0,
792 },
evan@chromium.orga6768f52010-02-06 07:23:20 +0900793 'cflags!': [
794 '-Wextra',
795 ],
evan@chromium.orgc4bcf872010-02-03 11:11:40 +0900796 'sources': [
797 'third_party/xdg_mime/xdgmime.c',
798 'third_party/xdg_mime/xdgmime.h',
799 'third_party/xdg_mime/xdgmimealias.c',
800 'third_party/xdg_mime/xdgmimealias.h',
801 'third_party/xdg_mime/xdgmimecache.c',
802 'third_party/xdg_mime/xdgmimecache.h',
803 'third_party/xdg_mime/xdgmimeglob.c',
804 'third_party/xdg_mime/xdgmimeglob.h',
805 'third_party/xdg_mime/xdgmimeicon.c',
806 'third_party/xdg_mime/xdgmimeicon.h',
807 'third_party/xdg_mime/xdgmimeint.c',
808 'third_party/xdg_mime/xdgmimeint.h',
809 'third_party/xdg_mime/xdgmimemagic.c',
810 'third_party/xdg_mime/xdgmimemagic.h',
811 'third_party/xdg_mime/xdgmimeparent.c',
812 'third_party/xdg_mime/xdgmimeparent.h',
813 ],
814 },
satorux@chromium.org9bd30ff2010-01-26 15:26:26 +0900815 ],
816 }],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900817 ],
818}