blob: f48646d62ae590f4eb4d92096cd48b4d954e9a3e [file] [log] [blame]
brettw@chromium.orge439a962011-01-02 08:16:20 +09001# Copyright (c) 2011 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,
9 },
10 'target_conditions': [
sky@chromium.org1987a752010-07-02 05:14:50 +090011 # This part is shared between the targets defined below.
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090012 ['base_target==1', {
13 'sources': [
14 '../build/build_config.h',
15 'third_party/dmg_fp/dmg_fp.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090016 'third_party/dmg_fp/g_fmt.cc',
siggi@chromium.orgb23c7042010-11-26 02:37:47 +090017 'third_party/dmg_fp/dtoa_wrapper.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090018 'third_party/icu/icu_utf.cc',
19 'third_party/icu/icu_utf.h',
20 'third_party/nspr/prtime.cc',
21 'third_party/nspr/prtime.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090022 'at_exit.cc',
23 'at_exit.h',
24 'atomic_ref_count.h',
25 'atomic_sequence_num.h',
26 'atomicops.h',
thestig@chromium.orgb6ba9432010-04-03 10:05:39 +090027 'atomicops_internals_x86_gcc.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090028 'atomicops_internals_x86_msvc.h',
rvargas@google.com7a976cf2011-03-23 07:11:08 +090029 'base_api.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090030 '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',
ajwong@chromium.orge2cca632011-02-15 10:27:38 +090040 'bind.h',
41 'bind_helpers.h',
42 'bind_internal.h',
ajwong@chromium.orgcb175342011-02-27 10:25:59 +090043 'bind_internal_win.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090044 'bits.h',
45 'bzip2_error_handler.cc',
akalin@chromium.org6ed4f882010-02-19 12:15:59 +090046 'callback.h',
ajwong@chromium.orgfa0ff432011-02-19 08:29:31 +090047 'callback_internal.cc',
48 'callback_internal.h',
ajwong@chromium.orge2cca632011-02-15 10:27:38 +090049 'callback_old.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090050 'command_line.cc',
51 'command_line.h',
52 'compiler_specific.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090053 'cpu.cc',
54 'cpu.h',
brettw@chromium.org28078b62011-01-02 04:55:22 +090055 'debug/debug_on_start_win.cc',
56 'debug/debug_on_start_win.h',
brettw@chromium.org2f49b122010-10-26 13:07:50 +090057 'debug/debugger.cc',
58 'debug/debugger.h',
59 'debug/debugger_posix.cc',
60 'debug/debugger_win.cc',
61 'debug/leak_annotations.h',
62 'debug/leak_tracker.h',
davemoore@chromium.orgeeb51f72011-02-02 08:35:25 +090063 'debug/profiler.cc',
64 'debug/profiler.h',
brettw@chromium.org2f49b122010-10-26 13:07:50 +090065 'debug/stack_trace.cc',
66 'debug/stack_trace.h',
67 'debug/stack_trace_posix.cc',
68 'debug/stack_trace_win.cc',
69 'debug/trace_event_win.cc',
70 'debug/trace_event.cc',
71 'debug/trace_event.h',
agl@chromium.org4300a312010-03-12 00:25:54 +090072 'dir_reader_fallback.h',
73 'dir_reader_linux.h',
74 'dir_reader_posix.h',
tfarina@chromium.org6d36c5d2010-08-03 12:00:50 +090075 'environment.cc',
76 'environment.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',
evan@chromium.org33b77052010-08-20 09:36:01 +090082 'file_util_linux.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090083 'file_util_mac.mm',
84 'file_util_posix.cc',
85 'file_util_win.cc',
dumi@chromium.orgc980e402010-08-21 07:42:50 +090086 'file_util_proxy.cc',
87 'file_util_proxy.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090088 'file_version_info.h',
tony@chromium.org9f7a86f2010-04-14 10:46:43 +090089 'file_version_info_mac.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090090 'file_version_info_mac.mm',
tony@chromium.org9f7a86f2010-04-14 10:46:43 +090091 'file_version_info_win.cc',
92 'file_version_info_win.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090093 'fix_wp64.h',
94 'float_util.h',
95 'foundation_utils_mac.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090096 'global_descriptors_posix.cc',
thestig@chromium.orgb6ba9432010-04-03 10:05:39 +090097 'global_descriptors_posix.h',
phajdan.jr@chromium.orgdd43b732010-06-01 23:30:51 +090098 'gtest_prod_util.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090099 'hash_tables.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900100 'id_map.h',
erg@google.com8aca7272010-08-19 03:33:57 +0900101 'json/json_reader.cc',
102 'json/json_reader.h',
103 'json/json_writer.cc',
104 'json/json_writer.h',
105 'json/string_escape.cc',
106 'json/string_escape.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900107 'lazy_instance.cc',
108 'lazy_instance.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900109 'linked_list.h',
110 'linked_ptr.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900111 'logging.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900112 'logging.h',
thestig@chromium.orgb6ba9432010-04-03 10:05:39 +0900113 'logging_win.cc',
brettw@chromium.org624f07962010-12-23 09:43:36 +0900114 'mac/cocoa_protocols.h',
bauerb@chromium.orgfe9f8532011-03-15 18:51:50 +0900115 'mac/foundation_util.h',
116 'mac/foundation_util.mm',
brettw@chromium.org92d954b2011-01-02 03:20:14 +0900117 'mac/mac_util.h',
118 'mac/mac_util.mm',
brettw@google.comb39f6c02011-01-02 01:08:52 +0900119 'mac/os_crash_dumps.cc',
120 'mac/os_crash_dumps.h',
brettw@chromium.org0d4a0352010-10-18 11:47:39 +0900121 'mac/scoped_aedesc.h',
joth@chromium.orgb72c5f52010-11-12 21:03:54 +0900122 'mac/scoped_cftyperef.h',
brettw@chromium.org0d4a0352010-10-18 11:47:39 +0900123 'mac/scoped_nsautorelease_pool.h',
124 'mac/scoped_nsautorelease_pool.mm',
thakis@chromium.org281e2102010-01-12 09:39:15 +0900125 'mach_ipc_mac.h',
126 'mach_ipc_mac.mm',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900127 'memory_debug.cc',
128 'memory_debug.h',
129 'message_loop.cc',
130 'message_loop.h',
erg@google.com71915232010-09-29 07:54:58 +0900131 'message_loop_proxy.cc',
sanjeevr@chromium.org11e02e62010-04-29 12:31:34 +0900132 'message_loop_proxy.h',
sanjeevr@chromium.orgd393cc42010-05-07 03:34:24 +0900133 'message_loop_proxy_impl.cc',
134 'message_loop_proxy_impl.h',
erg@google.com71915232010-09-29 07:54:58 +0900135 'message_pump.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900136 'message_pump.h',
137 'message_pump_default.cc',
138 'message_pump_default.h',
139 'message_pump_win.cc',
140 'message_pump_win.h',
brettw@chromium.org275c2ec2010-10-14 13:38:38 +0900141 'metrics/histogram.cc',
142 'metrics/histogram.h',
mmortensen@google.com6f4c3a22010-10-29 01:48:05 +0900143 'metrics/nacl_histogram.cc',
joi@chromium.orgeb2b72d2010-11-18 11:15:12 +0900144 'metrics/nacl_histogram.h',
brettw@chromium.org275c2ec2010-10-14 13:38:38 +0900145 'metrics/stats_counters.cc',
146 'metrics/stats_counters.h',
147 'metrics/stats_table.cc',
148 'metrics/stats_table.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900149 'mime_util.h',
evan@chromium.org73aec0e2010-04-23 08:28:05 +0900150 'mime_util_xdg.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900151 'native_library.h',
152 'native_library_linux.cc',
153 'native_library_mac.mm',
154 'native_library_win.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900155 'observer_list.h',
156 'observer_list_threadsafe.h',
157 'path_service.cc',
158 'path_service.h',
159 'pickle.cc',
160 'pickle.h',
erg@google.comd5fffd42011-01-08 03:06:45 +0900161 'platform_file.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900162 'platform_file.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900163 'platform_file_posix.cc',
thestig@chromium.orgb6ba9432010-04-03 10:05:39 +0900164 'platform_file_win.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900165 'port.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900166 'process.h',
167 'process_linux.cc',
168 'process_posix.cc',
maruel@chromium.org9cf11e82010-04-30 02:44:42 +0900169 'process_util.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900170 'process_util.h',
171 'process_util_linux.cc',
172 'process_util_mac.mm',
173 'process_util_posix.cc',
174 'process_util_win.cc',
175 'process_win.cc',
176 'rand_util.cc',
177 'rand_util.h',
178 'rand_util_posix.cc',
179 'rand_util_win.cc',
180 'raw_scoped_refptr_mismatch_checker.h',
181 'ref_counted.cc',
182 'ref_counted.h',
erg@google.comab2e6932010-07-28 09:09:54 +0900183 'ref_counted_memory.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900184 'ref_counted_memory.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900185 'resource_util.cc',
186 'resource_util.h',
187 'safe_strerror_posix.cc',
188 'safe_strerror_posix.h',
darin@chromium.org2df32212010-07-31 08:05:15 +0900189 'scoped_callback_factory.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900190 'scoped_handle.h',
brettw@chromium.org3cd71702010-11-10 10:16:11 +0900191 'scoped_native_library.cc',
192 'scoped_native_library.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900193 'scoped_nsobject.h',
apatrick@chromium.org63e82d02010-02-25 07:27:04 +0900194 'scoped_open_process.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900195 'scoped_ptr.h',
196 'scoped_temp_dir.cc',
197 'scoped_temp_dir.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900198 'scoped_vector.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900199 'sha1.h',
wtc@chromium.orgd828db42010-06-24 06:41:40 +0900200 'sha1_portable.cc',
201 'sha1_win.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900202 'shared_memory.h',
203 'shared_memory_posix.cc',
204 'shared_memory_win.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900205 'singleton.h',
206 'spin_wait.h',
207 'stack_container.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900208 'stl_util-inl.h',
brettw@chromium.orgcbde69a2010-07-31 04:28:44 +0900209 'string_number_conversions.cc',
210 'string_number_conversions.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900211 'string_piece.cc',
212 'string_piece.h',
timsteele@google.com22058212010-01-22 04:29:25 +0900213 'string_split.cc',
214 'string_split.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900215 'string_tokenizer.h',
216 'string_util.cc',
217 'string_util.h',
218 'string_util_win.h',
joi@chromium.orgeb2b72d2010-11-18 11:15:12 +0900219 'stringize_macros.h',
brettw@chromium.org67cbde42010-08-17 12:45:37 +0900220 'stringprintf.cc',
221 'stringprintf.h',
brettw@chromium.org5238c7d2011-01-02 15:05:39 +0900222 'synchronization/cancellation_flag.cc',
223 'synchronization/cancellation_flag.h',
brettw@chromium.orge439a962011-01-02 08:16:20 +0900224 'synchronization/condition_variable.h',
225 'synchronization/condition_variable_posix.cc',
226 'synchronization/condition_variable_win.cc',
227 'synchronization/lock.cc',
228 'synchronization/lock.h',
229 'synchronization/lock_impl.h',
230 'synchronization/lock_impl_posix.cc',
231 'synchronization/lock_impl_win.cc',
brettw@chromium.org5238c7d2011-01-02 15:05:39 +0900232 'synchronization/waitable_event.h',
233 'synchronization/waitable_event_posix.cc',
234 'synchronization/waitable_event_watcher.h',
235 'synchronization/waitable_event_watcher_posix.cc',
236 'synchronization/waitable_event_watcher_win.cc',
237 'synchronization/waitable_event_win.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900238 'sys_info.h',
239 'sys_info_chromeos.cc',
240 'sys_info_freebsd.cc',
241 'sys_info_linux.cc',
242 'sys_info_mac.cc',
243 'sys_info_openbsd.cc',
244 'sys_info_posix.cc',
245 'sys_info_win.cc',
246 'sys_string_conversions.h',
247 'sys_string_conversions_linux.cc',
248 'sys_string_conversions_mac.mm',
249 'sys_string_conversions_win.cc',
erg@chromium.org493f5f62010-07-16 06:03:54 +0900250 'task.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900251 'task.h',
levin@chromium.orgf4cb1742010-08-26 15:09:38 +0900252 'task_queue.cc',
253 'task_queue.h',
willchan@chromium.orgb9b021a2010-06-16 04:39:24 +0900254 'template_util.h',
brettw@chromium.org088ae932011-01-01 13:48:49 +0900255 'threading/non_thread_safe.h',
joi@chromium.orgb5d63f72011-03-04 08:38:51 +0900256 'threading/non_thread_safe_impl.cc',
257 'threading/non_thread_safe_impl.h',
brettw@chromium.org61391822011-01-01 05:02:16 +0900258 'threading/platform_thread.h',
259 'threading/platform_thread_mac.mm',
260 'threading/platform_thread_posix.cc',
261 'threading/platform_thread_win.cc',
brettw@chromium.org34f964f2010-12-31 03:08:36 +0900262 'threading/simple_thread.cc',
263 'threading/simple_thread.h',
brettw@chromium.org5b5f5e02011-01-01 10:01:06 +0900264 'threading/thread.cc',
265 'threading/thread.h',
brettw@chromium.org61391822011-01-01 05:02:16 +0900266 'threading/thread_checker.h',
joi@chromium.orgb5d63f72011-03-04 08:38:51 +0900267 'threading/thread_checker_impl.cc',
268 'threading/thread_checker_impl.h',
brettw@chromium.org5b5f5e02011-01-01 10:01:06 +0900269 'threading/thread_collision_warner.cc',
270 'threading/thread_collision_warner.h',
brettw@chromium.org63965582010-12-31 07:18:56 +0900271 'threading/thread_local.h',
272 'threading/thread_local_posix.cc',
273 'threading/thread_local_storage.h',
274 'threading/thread_local_storage_posix.cc',
275 'threading/thread_local_storage_win.cc',
276 'threading/thread_local_win.cc',
brettw@chromium.org5b5f5e02011-01-01 10:01:06 +0900277 'threading/thread_restrictions.h',
278 'threading/thread_restrictions.cc',
brettw@chromium.org34f964f2010-12-31 03:08:36 +0900279 'threading/watchdog.cc',
280 'threading/watchdog.h',
281 'threading/worker_pool.h',
282 'threading/worker_pool_posix.cc',
283 'threading/worker_pool_posix.h',
284 'threading/worker_pool_win.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900285 'time.cc',
286 'time.h',
287 'time_win.cc',
288 'timer.cc',
289 'timer.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900290 'tracked.cc',
291 'tracked.h',
292 'tracked_objects.cc',
293 'tracked_objects.h',
294 'tuple.h',
295 'utf_offset_string_conversions.cc',
296 'utf_offset_string_conversions.h',
297 'utf_string_conversion_utils.cc',
298 'utf_string_conversion_utils.h',
299 'utf_string_conversions.cc',
300 'utf_string_conversions.h',
robertshield@chromium.org9fb9e372010-03-23 05:12:50 +0900301 'values.cc',
302 'values.h',
bauerb@chromium.orgfe9f8532011-03-15 18:51:50 +0900303 'value_conversions.cc',
304 'value_conversions.h',
robertshield@chromium.orga9914a32010-11-11 02:02:19 +0900305 'version.cc',
306 'version.h',
akalin@chromium.orgf0ee79c2010-09-30 04:26:36 +0900307 'vlog.cc',
308 'vlog.h',
erg@chromium.org493f5f62010-07-16 06:03:54 +0900309 'weak_ptr.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900310 'weak_ptr.h',
grt@chromium.orgce2cac52010-11-17 00:28:45 +0900311 'win/i18n.cc',
312 'win/i18n.h',
brettw@google.com3890ab32011-01-02 03:26:16 +0900313 'win/object_watcher.cc',
314 'win/object_watcher.h',
brettw@chromium.orgb3a7c3e2010-10-17 13:41:54 +0900315 'win/pe_image.cc',
siggi@chromium.org7913ed62010-11-07 00:39:40 +0900316 'win/event_trace_consumer.h',
317 'win/event_trace_controller.cc',
318 'win/event_trace_controller.h',
319 'win/event_trace_provider.cc',
320 'win/event_trace_provider.h',
brettw@chromium.orgb3a7c3e2010-10-17 13:41:54 +0900321 'win/pe_image.h',
322 'win/registry.cc',
323 'win/registry.h',
brettw@chromium.org45352272010-10-16 12:46:05 +0900324 'win/scoped_bstr.cc',
325 'win/scoped_bstr.h',
326 'win/scoped_comptr.h',
327 'win/scoped_gdi_object.h',
328 'win/scoped_handle.h',
329 'win/scoped_hdc.h',
330 'win/scoped_hglobal.h',
331 'win/scoped_variant.cc',
332 'win/scoped_variant.h',
brettw@google.comf4fe79b2011-01-01 02:18:50 +0900333 'win/win_util.cc',
334 'win/win_util.h',
brettw@chromium.orgacb14c22010-10-15 10:59:15 +0900335 'win/windows_version.cc',
336 'win/windows_version.h',
rvargas@google.comed1496e2011-03-17 09:34:09 +0900337 'win/wrapped_window_proc.cc',
338 'win/wrapped_window_proc.h',
brettw@chromium.orge47345a2010-10-16 13:56:06 +0900339 'nix/xdg_util.h',
340 'nix/xdg_util.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900341 ],
342 'include_dirs': [
343 '..',
344 ],
345 # These warnings are needed for the files in third_party\dmg_fp.
346 'msvs_disabled_warnings': [
347 4244, 4554, 4018, 4102,
348 ],
349 'mac_framework_dirs': [
350 '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks',
351 ],
352 'conditions': [
evan@chromium.org089339c2010-04-01 09:35:15 +0900353 [ 'OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"', {
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900354 'sources/': [
brettw@chromium.orge47345a2010-10-16 13:56:06 +0900355 ['exclude', '^nix/'],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900356 ],
357 'sources!': [
358 'atomicops_internals_x86_gcc.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900359 'message_pump_glib.cc',
rjkroege@google.com3080f442010-10-23 01:17:47 +0900360 'message_pump_glib_x.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900361 ],
tony@chromium.org9f7a86f2010-04-14 10:46:43 +0900362 }],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900363 [ 'OS != "linux"', {
364 'sources!': [
365 # Not automatically excluded by the *linux.cc rules.
sky@chromium.org1987a752010-07-02 05:14:50 +0900366 'gtk_util.cc',
367 'gtk_util.h',
evan@chromium.org73aec0e2010-04-23 08:28:05 +0900368 'linux_util.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900369 ],
370 },
371 ],
rsesek@chromium.org56a552f2010-08-14 00:24:53 +0900372 [ 'OS != "mac"', {
373 'sources!': [
374 'scoped_aedesc.h'
375 ],
376 }],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900377 # For now, just test the *BSD platforms enough to exclude them.
378 # Subsequent changes will include them further.
379 [ 'OS != "freebsd"', {
380 'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
381 },
382 ],
383 [ 'OS != "openbsd"', {
384 'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
385 },
386 ],
brettw@chromium.org45352272010-10-16 12:46:05 +0900387 ['OS != "win"', {
388 'sources/': [ ['exclude', '^win/'] ],
389 },
390 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900391 [ 'OS == "win"', {
brettw@chromium.orgacb14c22010-10-15 10:59:15 +0900392 'include_dirs': [
393 '<(DEPTH)/third_party/wtl/include',
394 ],
395 'sources!': [
396 'event_recorder_stubs.cc',
397 'file_descriptor_shuffle.cc',
398 'message_pump_libevent.cc',
399 # Not using sha1_win.cc because it may have caused a
400 # regression to page cycler moz.
401 'sha1_win.cc',
402 'string16.cc',
brettw@chromium.org2f49b122010-10-26 13:07:50 +0900403 'debug/trace_event.cc',
brettw@chromium.orgacb14c22010-10-15 10:59:15 +0900404 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900405 },],
406 ],
407 }],
408 ],
409 },
410 'targets': [
411 {
412 'target_name': 'base',
413 'type': '<(library)',
414 'msvs_guid': '1832A374-8A74-4F9E-B536-69A699B3E165',
415 'variables': {
416 'base_target': 1,
417 },
418 'dependencies': [
419 '../third_party/modp_b64/modp_b64.gyp:modp_b64',
tony@chromium.org2ddfe8c2010-05-19 17:33:37 +0900420 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900421 ],
422 # TODO(gregoryd): direct_dependent_settings should be shared with the
423 # 64-bit target, but it doesn't work due to a bug in gyp
424 'direct_dependent_settings': {
425 'include_dirs': [
426 '..',
427 ],
428 },
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900429 'conditions': [
jam@chromium.org7de295e2010-12-02 05:22:49 +0900430 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900431 'conditions': [
jam@chromium.org7de295e2010-12-02 05:22:49 +0900432 [ 'chromeos==1', {
433 'sources/': [ ['include', '_chromeos\\.cc$'] ]
434 },
435 ],
thestig@chromium.orgbbe65c62010-07-02 10:12:18 +0900436 [ 'linux_use_tcmalloc==0', {
437 'defines': [
438 'NO_TCMALLOC',
439 ],
440 'direct_dependent_settings': {
441 'defines': [
442 'NO_TCMALLOC',
443 ],
444 },
445 },
446 ],
joth@chromium.org0dd35272010-10-22 22:12:34 +0900447 [ 'use_openssl==1', {
448 'dependencies': [
joth@chromium.org6e6305c2010-12-10 03:36:24 +0900449 '../third_party/openssl/openssl.gyp:openssl',
joth@chromium.org0dd35272010-10-22 22:12:34 +0900450 ],
451 }, { # use_openssl==0
452 'dependencies': [
453 '../build/linux/system.gyp:nss',
454 ],
455 }
456 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900457 ],
458 'dependencies': [
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900459 'symbolize',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900460 '../build/util/build_util.gyp:lastchange',
461 '../build/linux/system.gyp:gtk',
rjkroege@google.com3080f442010-10-23 01:17:47 +0900462 '../build/linux/system.gyp:x11',
evan@chromium.orgc4bcf872010-02-03 11:11:40 +0900463 'xdg_mime',
satorux@chromium.org9bd30ff2010-01-26 15:26:26 +0900464 ],
jam@chromium.org7de295e2010-12-02 05:22:49 +0900465 'defines': [
466 'USE_SYMBOLIZE',
467 ],
468 'cflags': [
469 '-Wno-write-strings',
470 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900471 'export_dependent_settings': [
472 '../build/linux/system.gyp:gtk',
rjkroege@google.com3080f442010-10-23 01:17:47 +0900473 '../build/linux/system.gyp:x11',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900474 ],
jam@chromium.org7de295e2010-12-02 05:22:49 +0900475 }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"
476 'sources/': [
477 ['exclude', '/xdg_user_dirs/'],
478 ['exclude', '_nss\.cc$'],
479 ],
480 }],
jam@chromium.orgf497c952010-06-11 14:41:00 +0900481 [ 'OS == "freebsd" or OS == "openbsd"', {
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900482 'link_settings': {
483 'libraries': [
484 '-L/usr/local/lib -lexecinfo',
jam@chromium.orgf497c952010-06-11 14:41:00 +0900485 ],
486 },
487 },
488 ],
bradnelson@google.com65d8cbf2010-06-12 07:45:37 +0900489 [ 'OS == "linux"', {
490 'link_settings': {
491 'libraries': [
492 # We need rt for clock_gettime().
493 '-lrt',
494 # For 'native_library_linux.cc'
495 '-ldl',
496 ],
497 },
498 }],
jam@chromium.orgf497c952010-06-11 14:41:00 +0900499 [ 'OS == "mac"', {
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900500 'link_settings': {
501 'libraries': [
502 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
503 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
504 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
505 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
506 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
507 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
508 ],
509 },
jam@chromium.org7de295e2010-12-02 05:22:49 +0900510 }, { # OS != "mac"
511 'sources!': [
512 'crypto/cssm_init.cc',
513 'crypto/cssm_init.h',
wtc@chromium.orge1f11c62011-03-11 08:36:16 +0900514 'crypto/mac_security_services_lock.cc',
515 'crypto/mac_security_services_lock.h',
jam@chromium.org7de295e2010-12-02 05:22:49 +0900516 ],
517 }],
wtc@chromium.orgcded8b22010-06-02 05:28:03 +0900518 [ 'OS == "mac" or OS == "win"', {
wtc@chromium.org6e6b7832010-01-28 04:36:22 +0900519 'dependencies': [
520 '../third_party/nss/nss.gyp:nss',
521 ],
wtc@chromium.orgcded8b22010-06-02 05:28:03 +0900522 },],
523 [ 'OS != "win"', {
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900524 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
jam@chromium.org7de295e2010-12-02 05:22:49 +0900525 'sources!': [
526 'third_party/purify/pure_api.c',
527 'base_drag_source.cc',
528 'base_drop_target.cc',
jam@chromium.org7de295e2010-12-02 05:22:49 +0900529 'crypto/capi_util.h',
530 'crypto/capi_util.cc',
jam@chromium.org7de295e2010-12-02 05:22:49 +0900531 'event_recorder.cc',
532 'file_version_info.cc',
jam@chromium.org7de295e2010-12-02 05:22:49 +0900533 'pe_image.cc',
534 'registry.cc',
535 'resource_util.cc',
536 'win_util.cc',
537 ],
wtc@chromium.org6e6b7832010-01-28 04:36:22 +0900538 },],
jam@chromium.org7de295e2010-12-02 05:22:49 +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',
bulach@chromium.org982d43a2011-01-29 00:41:37 +0900545 'crypto/secure_hash_default.cc',
jam@chromium.org7de295e2010-12-02 05:22:49 +0900546 'crypto/signature_creator_nss.cc',
547 'crypto/signature_verifier_nss.cc',
548 'crypto/symmetric_key_nss.cc',
549 'hmac_nss.cc',
550 'nss_util.cc',
551 'nss_util.h',
552 # Note that sha2.cc depends on the NSS files bundled into
553 # chromium; it does not have the _nss postfix as it is required
554 # on platforms besides linux and *bsd.
555 'sha2.cc',
556 'third_party/nss/blapi.h',
557 'third_party/nss/blapit.h',
558 'third_party/nss/sha256.h',
559 'third_party/nss/sha512.cc',
560 ],
561 }, {
562 'sources!': [
563 'crypto/encryptor_openssl.cc',
564 'crypto/rsa_private_key_openssl.cc',
bulach@chromium.org8ea83502011-01-27 20:21:07 +0900565 'crypto/secure_hash_openssl.cc',
jam@chromium.org7de295e2010-12-02 05:22:49 +0900566 'crypto/signature_creator_openssl.cc',
567 'crypto/signature_verifier_openssl.cc',
568 'crypto/symmetric_key_openssl.cc',
569 'hmac_openssl.cc',
570 'openssl_util.cc',
571 'openssl_util.h',
572 'sha2_openssl.cc',
573 ],
574 },],
575 ],
576 'sources': [
577 'crypto/capi_util.cc',
578 'crypto/capi_util.h',
mattm@chromium.orgc75746e2011-01-19 12:01:23 +0900579 'crypto/crypto_module_blocking_password_delegate.h',
jam@chromium.org7de295e2010-12-02 05:22:49 +0900580 'crypto/cssm_init.cc',
581 'crypto/cssm_init.h',
582 'crypto/encryptor.h',
583 'crypto/encryptor_mac.cc',
584 'crypto/encryptor_nss.cc',
585 'crypto/encryptor_openssl.cc',
586 'crypto/encryptor_win.cc',
wtc@chromium.orge1f11c62011-03-11 08:36:16 +0900587 'crypto/mac_security_services_lock.cc',
588 'crypto/mac_security_services_lock.h',
jam@chromium.org7de295e2010-12-02 05:22:49 +0900589 'crypto/rsa_private_key.h',
590 'crypto/rsa_private_key.cc',
591 'crypto/rsa_private_key_mac.cc',
592 'crypto/rsa_private_key_nss.cc',
593 'crypto/rsa_private_key_openssl.cc',
594 'crypto/rsa_private_key_win.cc',
bulach@chromium.org8ea83502011-01-27 20:21:07 +0900595 'crypto/secure_hash.h',
bulach@chromium.org982d43a2011-01-29 00:41:37 +0900596 'crypto/secure_hash_default.cc',
bulach@chromium.org8ea83502011-01-27 20:21:07 +0900597 'crypto/secure_hash_openssl.cc',
jam@chromium.org7de295e2010-12-02 05:22:49 +0900598 'crypto/signature_creator.h',
599 'crypto/signature_creator_mac.cc',
600 'crypto/signature_creator_nss.cc',
601 'crypto/signature_creator_openssl.cc',
602 'crypto/signature_creator_win.cc',
603 'crypto/signature_verifier.h',
604 'crypto/signature_verifier_mac.cc',
605 'crypto/signature_verifier_nss.cc',
606 'crypto/signature_verifier_openssl.cc',
607 'crypto/signature_verifier_win.cc',
608 'crypto/symmetric_key.h',
609 'crypto/symmetric_key_mac.cc',
610 'crypto/symmetric_key_nss.cc',
611 'crypto/symmetric_key_openssl.cc',
612 'crypto/symmetric_key_win.cc',
613 'third_party/nspr/prcpucfg.h',
614 'third_party/nspr/prcpucfg_win.h',
615 'third_party/nspr/prtypes.h',
616 'third_party/nss/blapi.h',
617 'third_party/nss/blapit.h',
618 'third_party/nss/sha256.h',
619 'third_party/nss/sha512.cc',
620 'third_party/purify/pure.h',
621 'third_party/purify/pure_api.c',
622 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
623 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h',
624 'auto_reset.h',
625 'base64.cc',
626 'base64.h',
jam@chromium.org7de295e2010-12-02 05:22:49 +0900627 'event_recorder.cc',
628 'event_recorder.h',
629 'event_recorder_stubs.cc',
630 'file_descriptor_shuffle.cc',
631 'file_descriptor_shuffle.h',
632 'hmac.h',
633 'hmac_mac.cc',
634 'hmac_nss.cc',
635 'hmac_openssl.cc',
636 'hmac_win.cc',
jam@chromium.org7de295e2010-12-02 05:22:49 +0900637 'linux_util.cc',
638 'linux_util.h',
639 'md5.cc',
640 'md5.h',
641 'message_pump_glib.cc',
642 'message_pump_glib.h',
643 'message_pump_glib_x.cc',
644 'message_pump_glib_x.h',
645 'message_pump_glib_x_dispatch.h',
646 'message_pump_libevent.cc',
647 'message_pump_libevent.h',
648 'message_pump_mac.h',
649 'message_pump_mac.mm',
650 'metrics/field_trial.cc',
651 'metrics/field_trial.h',
jam@chromium.org7de295e2010-12-02 05:22:49 +0900652 'nss_util.cc',
653 'nss_util.h',
654 'openssl_util.cc',
655 'openssl_util.h',
jam@chromium.org7de295e2010-12-02 05:22:49 +0900656 'sha2.cc',
657 'sha2.h',
658 'sha2_openssl.cc',
659 'string16.cc',
660 'string16.h',
661 'sync_socket.h',
662 'sync_socket_win.cc',
663 'sync_socket_posix.cc',
664 'time_mac.cc',
665 'time_posix.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900666 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900667 },
668 ],
669 'conditions': [
670 [ 'OS == "win"', {
671 'targets': [
672 {
673 'target_name': 'base_nacl_win64',
674 'type': '<(library)',
675 'msvs_guid': 'CEE1F794-DC70-4FED-B7C4-4C12986672FE',
676 'variables': {
677 'base_target': 1,
678 },
timurrrr@chromium.orgf39c3ff2010-05-14 17:24:42 +0900679 'dependencies': [
tony@chromium.org2ddfe8c2010-05-19 17:33:37 +0900680 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
timurrrr@chromium.orgf39c3ff2010-05-14 17:24:42 +0900681 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900682 # TODO(gregoryd): direct_dependent_settings should be shared with the
683 # 32-bit target, but it doesn't work due to a bug in gyp
684 'direct_dependent_settings': {
685 'include_dirs': [
686 '..',
687 ],
688 },
689 'defines': [
690 '<@(nacl_win64_defines)',
691 ],
692 'sources': [
693 'i18n/icu_util_nacl_win64.cc',
694 ],
695 'configurations': {
gregoryd@google.comacc30ba2009-12-23 07:57:37 +0900696 'Common_Base': {
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900697 'msvs_target_platform': 'x64',
698 },
699 },
700 },
701 ],
702 }],
evan@chromium.org089339c2010-04-01 09:35:15 +0900703 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
satorux@chromium.org9bd30ff2010-01-26 15:26:26 +0900704 'targets': [
705 {
706 'target_name': 'symbolize',
707 'type': '<(library)',
mark@chromium.org9cc09262010-02-17 04:13:36 +0900708 'variables': {
709 'chromium_code': 0,
710 },
evan@chromium.org089339c2010-04-01 09:35:15 +0900711 'conditions': [
712 [ 'OS == "solaris"', {
713 'include_dirs': [
714 '/usr/gnu/include',
715 '/usr/gnu/include/libelf',
716 ],
717 },],
718 ],
satorux@chromium.org9bd30ff2010-01-26 15:26:26 +0900719 'cflags': [
720 '-Wno-sign-compare',
721 ],
evan@chromium.orga6768f52010-02-06 07:23:20 +0900722 'cflags!': [
723 '-Wextra',
724 ],
satorux@chromium.org9bd30ff2010-01-26 15:26:26 +0900725 'sources': [
726 'third_party/symbolize/symbolize.cc',
727 'third_party/symbolize/demangle.cc',
728 ],
729 },
evan@chromium.orgc4bcf872010-02-03 11:11:40 +0900730 {
731 'target_name': 'xdg_mime',
732 'type': '<(library)',
mark@chromium.org9cc09262010-02-17 04:13:36 +0900733 'variables': {
734 'chromium_code': 0,
735 },
evan@chromium.orga6768f52010-02-06 07:23:20 +0900736 'cflags!': [
737 '-Wextra',
738 ],
evan@chromium.orgc4bcf872010-02-03 11:11:40 +0900739 'sources': [
740 'third_party/xdg_mime/xdgmime.c',
741 'third_party/xdg_mime/xdgmime.h',
742 'third_party/xdg_mime/xdgmimealias.c',
743 'third_party/xdg_mime/xdgmimealias.h',
744 'third_party/xdg_mime/xdgmimecache.c',
745 'third_party/xdg_mime/xdgmimecache.h',
746 'third_party/xdg_mime/xdgmimeglob.c',
747 'third_party/xdg_mime/xdgmimeglob.h',
748 'third_party/xdg_mime/xdgmimeicon.c',
749 'third_party/xdg_mime/xdgmimeicon.h',
750 'third_party/xdg_mime/xdgmimeint.c',
751 'third_party/xdg_mime/xdgmimeint.h',
752 'third_party/xdg_mime/xdgmimemagic.c',
753 'third_party/xdg_mime/xdgmimemagic.h',
754 'third_party/xdg_mime/xdgmimeparent.c',
755 'third_party/xdg_mime/xdgmimeparent.h',
756 ],
757 },
satorux@chromium.org9bd30ff2010-01-26 15:26:26 +0900758 ],
759 }],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900760 ],
761}