blob: a3952997f07ad38596a8067bb6a04cce107d80af [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',
joth@chromium.orgb72c5f52010-11-12 21:03:54 +0900124 'mac/scoped_cftyperef.h',
brettw@chromium.org0d4a0352010-10-18 11:47:39 +0900125 'mac/scoped_nsautorelease_pool.h',
126 'mac/scoped_nsautorelease_pool.mm',
thakis@chromium.org281e2102010-01-12 09:39:15 +0900127 'mach_ipc_mac.h',
128 'mach_ipc_mac.mm',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900129 'memory_debug.cc',
130 'memory_debug.h',
131 'message_loop.cc',
132 'message_loop.h',
erg@google.com71915232010-09-29 07:54:58 +0900133 'message_loop_proxy.cc',
sanjeevr@chromium.org11e02e62010-04-29 12:31:34 +0900134 'message_loop_proxy.h',
sanjeevr@chromium.orgd393cc42010-05-07 03:34:24 +0900135 'message_loop_proxy_impl.cc',
136 'message_loop_proxy_impl.h',
erg@google.com71915232010-09-29 07:54:58 +0900137 'message_pump.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900138 'message_pump.h',
139 'message_pump_default.cc',
140 'message_pump_default.h',
141 'message_pump_win.cc',
142 'message_pump_win.h',
brettw@chromium.org275c2ec2010-10-14 13:38:38 +0900143 'metrics/histogram.cc',
144 'metrics/histogram.h',
mmortensen@google.com6f4c3a22010-10-29 01:48:05 +0900145 'metrics/nacl_histogram.cc',
146 'metrics/nacl_histogram.h',
brettw@chromium.org275c2ec2010-10-14 13:38:38 +0900147 'metrics/stats_counters.cc',
148 'metrics/stats_counters.h',
149 'metrics/stats_table.cc',
150 'metrics/stats_table.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900151 'mime_util.h',
evan@chromium.org73aec0e2010-04-23 08:28:05 +0900152 'mime_util_xdg.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900153 'native_library.h',
154 'native_library_linux.cc',
155 'native_library_mac.mm',
156 'native_library_win.cc',
157 'non_thread_safe.cc',
158 'non_thread_safe.h',
159 'nullable_string16.h',
160 'object_watcher.cc',
161 'object_watcher.h',
162 'observer_list.h',
163 'observer_list_threadsafe.h',
164 'path_service.cc',
165 'path_service.h',
166 'pickle.cc',
167 'pickle.h',
168 'platform_file.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900169 'platform_file_posix.cc',
thestig@chromium.orgb6ba9432010-04-03 10:05:39 +0900170 'platform_file_win.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900171 'platform_thread.h',
172 'platform_thread_mac.mm',
173 'platform_thread_posix.cc',
174 'platform_thread_win.cc',
175 'port.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900176 'process.h',
177 'process_linux.cc',
178 'process_posix.cc',
maruel@chromium.org9cf11e82010-04-30 02:44:42 +0900179 'process_util.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900180 'process_util.h',
181 'process_util_linux.cc',
182 'process_util_mac.mm',
183 'process_util_posix.cc',
184 'process_util_win.cc',
185 'process_win.cc',
186 'rand_util.cc',
187 'rand_util.h',
188 'rand_util_posix.cc',
189 'rand_util_win.cc',
190 'raw_scoped_refptr_mismatch_checker.h',
191 'ref_counted.cc',
192 'ref_counted.h',
erg@google.comab2e6932010-07-28 09:09:54 +0900193 'ref_counted_memory.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900194 'ref_counted_memory.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900195 'resource_util.cc',
196 'resource_util.h',
197 'safe_strerror_posix.cc',
198 'safe_strerror_posix.h',
darin@chromium.org2df32212010-07-31 08:05:15 +0900199 'scoped_callback_factory.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',
joth@chromium.orgb72c5f52010-11-12 21:03:54 +0900481 'openssl_util.cc',
482 'openssl_util.h',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900483 'setproctitle_linux.c',
484 'setproctitle_linux.h',
485 'sha2.cc',
486 'sha2.h',
joth@chromium.org0dd35272010-10-22 22:12:34 +0900487 'sha2_openssl.cc',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900488 'string16.cc',
489 'string16.h',
490 'sync_socket.h',
491 'sync_socket_win.cc',
492 'sync_socket_posix.cc',
493 'time_mac.cc',
494 'time_posix.cc',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900495 ],
496 'conditions': [
wtc@chromium.org56fe64f2010-07-09 12:07:58 +0900497 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900498 'conditions': [
499 [ 'chromeos==1', {
500 'sources/': [ ['include', '_chromeos\\.cc$'] ]
501 },
502 ],
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900503 ],
504 'defines': [
505 'USE_SYMBOLIZE',
506 ],
507 'cflags': [
508 '-Wno-write-strings',
509 ],
wtc@chromium.org56fe64f2010-07-09 12:07:58 +0900510 }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"
wtc@chromium.org701c9422010-07-09 01:51:04 +0900511 'sources/': [
512 ['exclude', '/xdg_user_dirs/'],
513 ['exclude', '_nss\.cc$'],
514 ],
515 }],
516 [ 'OS != "mac"', {
517 'sources!': [
518 'crypto/cssm_init.cc',
519 'crypto/cssm_init.h',
520 ],
521 },],
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900522 [ 'OS != "win"', {
523 'sources!': [
524 'third_party/purify/pure_api.c',
525 'base_drag_source.cc',
526 'base_drop_target.cc',
527 'cpu.cc',
davidben@chromium.org8c3ccf32010-06-24 07:46:04 +0900528 'crypto/capi_util.h',
529 'crypto/capi_util.cc',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900530 'debug_on_start.cc',
531 'event_recorder.cc',
532 'file_version_info.cc',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900533 'image_util.cc',
534 'object_watcher.cc',
535 'pe_image.cc',
536 'registry.cc',
537 'resource_util.cc',
538 'win_util.cc',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900539 ],
540 },],
joth@chromium.org0dd35272010-10-22 22:12:34 +0900541 [ 'use_openssl==1', {
542 # TODO(joth): Use a glob to match exclude patterns once the
543 # OpenSSL file set is complete.
544 'sources!': [
545 'crypto/encryptor_nss.cc',
546 'crypto/rsa_private_key_nss.cc',
547 'crypto/signature_creator_nss.cc',
548 'crypto/signature_verifier_nss.cc',
549 'crypto/symmetric_key_nss.cc',
550 'hmac_nss.cc',
551 'nss_util.cc',
552 'nss_util.h',
553 # Note that sha2.cc depends on the NSS files bundled into
554 # chromium; it does not have the _nss postfix as it is required
555 # on platforms besides linux and *bsd.
556 'sha2.cc',
557 'third_party/nss/blapi.h',
558 'third_party/nss/blapit.h',
559 'third_party/nss/sha256.h',
560 'third_party/nss/sha512.cc',
561 ],
562 }, {
563 'sources!': [
564 'crypto/encryptor_openssl.cc',
565 'crypto/rsa_private_key_openssl.cc',
566 'crypto/signature_creator_openssl.cc',
567 'crypto/signature_verifier_openssl.cc',
568 'crypto/symmetric_key_openssl.cc',
569 'hmac_openssl.cc',
joth@chromium.orgb72c5f52010-11-12 21:03:54 +0900570 'openssl_util.cc',
571 'openssl_util.h',
joth@chromium.org0dd35272010-10-22 22:12:34 +0900572 'sha2_openssl.cc',
573 ],
574 },],
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900575 ],
576 }],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900577 ],
578 },
579 'targets': [
580 {
581 'target_name': 'base',
582 'type': '<(library)',
583 'msvs_guid': '1832A374-8A74-4F9E-B536-69A699B3E165',
584 'variables': {
585 'base_target': 1,
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900586 'base_extra_target': 1,
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900587 },
588 'dependencies': [
589 '../third_party/modp_b64/modp_b64.gyp:modp_b64',
tony@chromium.org2ddfe8c2010-05-19 17:33:37 +0900590 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900591 ],
592 # TODO(gregoryd): direct_dependent_settings should be shared with the
593 # 64-bit target, but it doesn't work due to a bug in gyp
594 'direct_dependent_settings': {
595 'include_dirs': [
596 '..',
597 ],
598 },
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900599 'conditions': [
pvalchev@google.com1d919db2010-03-10 16:46:43 +0900600 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900601 'conditions': [
thestig@chromium.orgbbe65c62010-07-02 10:12:18 +0900602 [ 'linux_use_tcmalloc==0', {
603 'defines': [
604 'NO_TCMALLOC',
605 ],
606 'direct_dependent_settings': {
607 'defines': [
608 'NO_TCMALLOC',
609 ],
610 },
611 },
612 ],
joth@chromium.org0dd35272010-10-22 22:12:34 +0900613 [ 'use_openssl==1', {
614 'dependencies': [
615 '../build/linux/system.gyp:openssl',
616 ],
617 }, { # use_openssl==0
618 'dependencies': [
619 '../build/linux/system.gyp:nss',
620 ],
621 }
622 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900623 ],
624 'dependencies': [
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900625 'symbolize',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900626 '../build/util/build_util.gyp:lastchange',
627 '../build/linux/system.gyp:gtk',
rjkroege@google.com3080f442010-10-23 01:17:47 +0900628 '../build/linux/system.gyp:x11',
evan@chromium.orgc4bcf872010-02-03 11:11:40 +0900629 'xdg_mime',
satorux@chromium.org9bd30ff2010-01-26 15:26:26 +0900630 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900631 'export_dependent_settings': [
632 '../build/linux/system.gyp:gtk',
rjkroege@google.com3080f442010-10-23 01:17:47 +0900633 '../build/linux/system.gyp:x11',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900634 ],
635 },],
jam@chromium.orgf497c952010-06-11 14:41:00 +0900636 [ 'OS == "freebsd" or OS == "openbsd"', {
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900637 'link_settings': {
638 'libraries': [
639 '-L/usr/local/lib -lexecinfo',
jam@chromium.orgf497c952010-06-11 14:41:00 +0900640 ],
641 },
642 },
643 ],
bradnelson@google.com65d8cbf2010-06-12 07:45:37 +0900644 [ 'OS == "linux"', {
645 'link_settings': {
646 'libraries': [
647 # We need rt for clock_gettime().
648 '-lrt',
649 # For 'native_library_linux.cc'
650 '-ldl',
651 ],
652 },
653 }],
jam@chromium.orgf497c952010-06-11 14:41:00 +0900654 [ 'OS == "mac"', {
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900655 'link_settings': {
656 'libraries': [
657 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
658 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
659 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
660 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
661 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
662 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
663 ],
664 },
jam@chromium.orgf497c952010-06-11 14:41:00 +0900665 },],
wtc@chromium.orgcded8b22010-06-02 05:28:03 +0900666 [ 'OS == "mac" or OS == "win"', {
wtc@chromium.org6e6b7832010-01-28 04:36:22 +0900667 'dependencies': [
668 '../third_party/nss/nss.gyp:nss',
669 ],
wtc@chromium.orgcded8b22010-06-02 05:28:03 +0900670 },],
671 [ 'OS != "win"', {
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900672 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
wtc@chromium.org6e6b7832010-01-28 04:36:22 +0900673 },],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900674 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900675 },
676 ],
677 'conditions': [
678 [ 'OS == "win"', {
679 'targets': [
680 {
681 'target_name': 'base_nacl_win64',
682 'type': '<(library)',
683 'msvs_guid': 'CEE1F794-DC70-4FED-B7C4-4C12986672FE',
684 'variables': {
685 'base_target': 1,
686 },
timurrrr@chromium.orgf39c3ff2010-05-14 17:24:42 +0900687 'dependencies': [
tony@chromium.org2ddfe8c2010-05-19 17:33:37 +0900688 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
timurrrr@chromium.orgf39c3ff2010-05-14 17:24:42 +0900689 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900690 # TODO(gregoryd): direct_dependent_settings should be shared with the
691 # 32-bit target, but it doesn't work due to a bug in gyp
692 'direct_dependent_settings': {
693 'include_dirs': [
694 '..',
695 ],
696 },
697 'defines': [
698 '<@(nacl_win64_defines)',
699 ],
700 'sources': [
701 'i18n/icu_util_nacl_win64.cc',
702 ],
703 'configurations': {
gregoryd@google.comacc30ba2009-12-23 07:57:37 +0900704 'Common_Base': {
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900705 'msvs_target_platform': 'x64',
706 },
707 },
708 },
709 ],
710 }],
jam@chromium.org103e2cc2010-06-16 09:53:01 +0900711 [ 'OS == "linux" and internal_pdf', {
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900712 'targets': [
713 {
714 'target_name': 'base_fpic',
715 'type': '<(library)',
716 'variables': {
717 'base_target': 1,
718 'base_extra_target': 1,
719 },
720 'cflags': [
721 '-fPIC',
722 ],
723 'direct_dependent_settings': {
724 'include_dirs': [
725 '..',
726 ],
727 },
728 'conditions': [
729 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', {
730 'dependencies': [
731 '../build/util/build_util.gyp:lastchange',
732 '../build/linux/system.gyp:gtk',
733 '../build/linux/system.gyp:nss',
rjkroege@google.com3080f442010-10-23 01:17:47 +0900734 '../build/linux/system.gyp:x11',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900735 'xdg_mime',
736 ],
737 'export_dependent_settings': [
738 '../build/linux/system.gyp:gtk',
rjkroege@google.com3080f442010-10-23 01:17:47 +0900739 '../build/linux/system.gyp:x11',
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900740 ],
741 },],
bradnelson@google.com65d8cbf2010-06-12 07:45:37 +0900742 ['OS == "linux"', {
743 'link_settings': {
744 'libraries': [
745 # We need rt for clock_gettime().
746 '-lrt',
747 # For 'native_library_linux.cc'
748 '-ldl',
749 ],
750 },
751 }],
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900752 [ 'OS == "mac" or OS == "win"', {
753 'dependencies': [
754 '../third_party/nss/nss.gyp:nss',
755 ],
756 },],
757 [ 'OS != "win"', {
758 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
759 },],
760 ],
761 },
762 ],
763 }],
evan@chromium.org089339c2010-04-01 09:35:15 +0900764 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
satorux@chromium.org9bd30ff2010-01-26 15:26:26 +0900765 'targets': [
766 {
767 'target_name': 'symbolize',
768 'type': '<(library)',
mark@chromium.org9cc09262010-02-17 04:13:36 +0900769 'variables': {
770 'chromium_code': 0,
771 },
evan@chromium.org089339c2010-04-01 09:35:15 +0900772 'conditions': [
773 [ 'OS == "solaris"', {
774 'include_dirs': [
775 '/usr/gnu/include',
776 '/usr/gnu/include/libelf',
777 ],
778 },],
779 ],
satorux@chromium.org9bd30ff2010-01-26 15:26:26 +0900780 'cflags': [
781 '-Wno-sign-compare',
782 ],
evan@chromium.orga6768f52010-02-06 07:23:20 +0900783 'cflags!': [
784 '-Wextra',
785 ],
satorux@chromium.org9bd30ff2010-01-26 15:26:26 +0900786 'sources': [
787 'third_party/symbolize/symbolize.cc',
788 'third_party/symbolize/demangle.cc',
789 ],
790 },
evan@chromium.orgc4bcf872010-02-03 11:11:40 +0900791 {
792 'target_name': 'xdg_mime',
793 'type': '<(library)',
mark@chromium.org9cc09262010-02-17 04:13:36 +0900794 'variables': {
795 'chromium_code': 0,
796 },
evan@chromium.orga6768f52010-02-06 07:23:20 +0900797 'cflags!': [
798 '-Wextra',
799 ],
evan@chromium.orgc4bcf872010-02-03 11:11:40 +0900800 'sources': [
801 'third_party/xdg_mime/xdgmime.c',
802 'third_party/xdg_mime/xdgmime.h',
803 'third_party/xdg_mime/xdgmimealias.c',
804 'third_party/xdg_mime/xdgmimealias.h',
805 'third_party/xdg_mime/xdgmimecache.c',
806 'third_party/xdg_mime/xdgmimecache.h',
807 'third_party/xdg_mime/xdgmimeglob.c',
808 'third_party/xdg_mime/xdgmimeglob.h',
809 'third_party/xdg_mime/xdgmimeicon.c',
810 'third_party/xdg_mime/xdgmimeicon.h',
811 'third_party/xdg_mime/xdgmimeint.c',
812 'third_party/xdg_mime/xdgmimeint.h',
813 'third_party/xdg_mime/xdgmimemagic.c',
814 'third_party/xdg_mime/xdgmimemagic.h',
815 'third_party/xdg_mime/xdgmimeparent.c',
816 'third_party/xdg_mime/xdgmimeparent.h',
817 ],
818 },
satorux@chromium.org9bd30ff2010-01-26 15:26:26 +0900819 ],
820 }],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900821 ],
822}