blob: f4f32b06c3cec022985d3ba1a78e6dbabed54501 [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,
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',
29 'base_paths.cc',
30 'base_paths.h',
31 'base_paths_mac.h',
32 'base_paths_mac.mm',
brettw@chromium.orge47345a2010-10-16 13:56:06 +090033 'base_paths_linux.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090034 'base_paths_win.cc',
35 'base_paths_win.h',
36 'base_switches.cc',
37 'base_switches.h',
38 'basictypes.h',
39 'bits.h',
40 'bzip2_error_handler.cc',
akalin@chromium.org6ed4f882010-02-19 12:15:59 +090041 'callback.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090042 'cancellation_flag.cc',
thestig@chromium.orgb6ba9432010-04-03 10:05:39 +090043 'cancellation_flag.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090044 'command_line.cc',
45 'command_line.h',
46 'compiler_specific.h',
47 'condition_variable.h',
48 'condition_variable_posix.cc',
49 'condition_variable_win.cc',
50 'cpu.cc',
51 'cpu.h',
52 'debug_on_start.cc',
53 'debug_on_start.h',
54 'debug_util.cc',
55 'debug_util.h',
56 'debug_util_mac.cc',
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',
63 'debug/stack_trace.cc',
64 'debug/stack_trace.h',
65 'debug/stack_trace_posix.cc',
66 'debug/stack_trace_win.cc',
67 'debug/trace_event_win.cc',
68 'debug/trace_event.cc',
69 'debug/trace_event.h',
agl@chromium.org4300a312010-03-12 00:25:54 +090070 'dir_reader_fallback.h',
71 'dir_reader_linux.h',
72 'dir_reader_posix.h',
tfarina@chromium.org6d36c5d2010-08-03 12:00:50 +090073 'environment.cc',
74 'environment.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090075 'file_path.cc',
76 'file_path.h',
77 'file_util.cc',
78 'file_util.h',
evan@chromium.orgc4e9f7c2010-02-23 20:34:54 +090079 'file_util_deprecated.h',
evan@chromium.org33b77052010-08-20 09:36:01 +090080 'file_util_linux.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090081 'file_util_mac.mm',
82 'file_util_posix.cc',
83 'file_util_win.cc',
dumi@chromium.orgc980e402010-08-21 07:42:50 +090084 'file_util_proxy.cc',
85 'file_util_proxy.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090086 'file_version_info.h',
tony@chromium.org9f7a86f2010-04-14 10:46:43 +090087 'file_version_info_mac.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090088 'file_version_info_mac.mm',
tony@chromium.org9f7a86f2010-04-14 10:46:43 +090089 'file_version_info_win.cc',
90 'file_version_info_win.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090091 'fix_wp64.h',
92 'float_util.h',
93 'foundation_utils_mac.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090094 'global_descriptors_posix.cc',
thestig@chromium.orgb6ba9432010-04-03 10:05:39 +090095 'global_descriptors_posix.h',
phajdan.jr@chromium.orgdd43b732010-06-01 23:30:51 +090096 'gtest_prod_util.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090097 'hash_tables.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +090098 'id_map.h',
erg@google.com8aca7272010-08-19 03:33:57 +090099 'json/json_reader.cc',
100 'json/json_reader.h',
101 'json/json_writer.cc',
102 'json/json_writer.h',
103 'json/string_escape.cc',
104 'json/string_escape.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900105 'lazy_instance.cc',
106 'lazy_instance.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900107 'linked_list.h',
108 'linked_ptr.h',
109 'lock.cc',
110 'lock.h',
111 'lock_impl.h',
112 'lock_impl_posix.cc',
113 'lock_impl_win.cc',
114 'logging.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900115 'logging.h',
thestig@chromium.orgb6ba9432010-04-03 10:05:39 +0900116 'logging_win.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900117 'mac_util.h',
118 'mac_util.mm',
brettw@chromium.org624f07962010-12-23 09:43:36 +0900119 'mac/cocoa_protocols.h',
brettw@chromium.org0d4a0352010-10-18 11:47:39 +0900120 'mac/scoped_aedesc.h',
joth@chromium.orgb72c5f52010-11-12 21:03:54 +0900121 'mac/scoped_cftyperef.h',
brettw@chromium.org0d4a0352010-10-18 11:47:39 +0900122 'mac/scoped_nsautorelease_pool.h',
123 'mac/scoped_nsautorelease_pool.mm',
thakis@chromium.org281e2102010-01-12 09:39:15 +0900124 'mach_ipc_mac.h',
125 'mach_ipc_mac.mm',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900126 'memory_debug.cc',
127 'memory_debug.h',
128 'message_loop.cc',
129 'message_loop.h',
erg@google.com71915232010-09-29 07:54:58 +0900130 'message_loop_proxy.cc',
sanjeevr@chromium.org11e02e62010-04-29 12:31:34 +0900131 'message_loop_proxy.h',
sanjeevr@chromium.orgd393cc42010-05-07 03:34:24 +0900132 'message_loop_proxy_impl.cc',
133 'message_loop_proxy_impl.h',
erg@google.com71915232010-09-29 07:54:58 +0900134 'message_pump.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900135 'message_pump.h',
136 'message_pump_default.cc',
137 'message_pump_default.h',
138 'message_pump_win.cc',
139 'message_pump_win.h',
brettw@chromium.org275c2ec2010-10-14 13:38:38 +0900140 'metrics/histogram.cc',
141 'metrics/histogram.h',
mmortensen@google.com6f4c3a22010-10-29 01:48:05 +0900142 'metrics/nacl_histogram.cc',
joi@chromium.orgeb2b72d2010-11-18 11:15:12 +0900143 'metrics/nacl_histogram.h',
brettw@chromium.org275c2ec2010-10-14 13:38:38 +0900144 'metrics/stats_counters.cc',
145 'metrics/stats_counters.h',
146 'metrics/stats_table.cc',
147 'metrics/stats_table.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900148 'mime_util.h',
evan@chromium.org73aec0e2010-04-23 08:28:05 +0900149 'mime_util_xdg.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900150 'native_library.h',
151 'native_library_linux.cc',
152 'native_library_mac.mm',
153 'native_library_win.cc',
154 'non_thread_safe.cc',
155 'non_thread_safe.h',
156 'nullable_string16.h',
157 'object_watcher.cc',
158 'object_watcher.h',
159 'observer_list.h',
160 'observer_list_threadsafe.h',
161 'path_service.cc',
162 'path_service.h',
163 'pickle.cc',
164 'pickle.h',
165 'platform_file.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900166 'platform_file_posix.cc',
thestig@chromium.orgb6ba9432010-04-03 10:05:39 +0900167 'platform_file_win.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900168 'platform_thread.h',
169 'platform_thread_mac.mm',
170 'platform_thread_posix.cc',
171 'platform_thread_win.cc',
172 'port.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900173 'process.h',
174 'process_linux.cc',
175 'process_posix.cc',
maruel@chromium.org9cf11e82010-04-30 02:44:42 +0900176 'process_util.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900177 'process_util.h',
178 'process_util_linux.cc',
179 'process_util_mac.mm',
180 'process_util_posix.cc',
181 'process_util_win.cc',
182 'process_win.cc',
183 'rand_util.cc',
184 'rand_util.h',
185 'rand_util_posix.cc',
186 'rand_util_win.cc',
187 'raw_scoped_refptr_mismatch_checker.h',
188 'ref_counted.cc',
189 'ref_counted.h',
erg@google.comab2e6932010-07-28 09:09:54 +0900190 'ref_counted_memory.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900191 'ref_counted_memory.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900192 'resource_util.cc',
193 'resource_util.h',
194 'safe_strerror_posix.cc',
195 'safe_strerror_posix.h',
darin@chromium.org2df32212010-07-31 08:05:15 +0900196 'scoped_callback_factory.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900197 'scoped_handle.h',
brettw@chromium.org3cd71702010-11-10 10:16:11 +0900198 'scoped_native_library.cc',
199 'scoped_native_library.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900200 'scoped_nsobject.h',
apatrick@chromium.org63e82d02010-02-25 07:27:04 +0900201 'scoped_open_process.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900202 'scoped_ptr.h',
203 'scoped_temp_dir.cc',
204 'scoped_temp_dir.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900205 'scoped_vector.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900206 'sha1.h',
wtc@chromium.orgd828db42010-06-24 06:41:40 +0900207 'sha1_portable.cc',
208 'sha1_win.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900209 'shared_memory.h',
210 'shared_memory_posix.cc',
211 'shared_memory_win.cc',
212 'simple_thread.cc',
213 'simple_thread.h',
214 'singleton.h',
215 'spin_wait.h',
216 'stack_container.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900217 'stl_util-inl.h',
brettw@chromium.orgcbde69a2010-07-31 04:28:44 +0900218 'string_number_conversions.cc',
219 'string_number_conversions.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900220 'string_piece.cc',
221 'string_piece.h',
timsteele@google.com22058212010-01-22 04:29:25 +0900222 'string_split.cc',
223 'string_split.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900224 'string_tokenizer.h',
225 'string_util.cc',
226 'string_util.h',
227 'string_util_win.h',
joi@chromium.orgeb2b72d2010-11-18 11:15:12 +0900228 'stringize_macros.h',
brettw@chromium.org67cbde42010-08-17 12:45:37 +0900229 'stringprintf.cc',
230 'stringprintf.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900231 'sys_info.h',
232 'sys_info_chromeos.cc',
233 'sys_info_freebsd.cc',
234 'sys_info_linux.cc',
235 'sys_info_mac.cc',
236 'sys_info_openbsd.cc',
237 'sys_info_posix.cc',
238 'sys_info_win.cc',
239 'sys_string_conversions.h',
240 'sys_string_conversions_linux.cc',
241 'sys_string_conversions_mac.mm',
242 'sys_string_conversions_win.cc',
erg@chromium.org493f5f62010-07-16 06:03:54 +0900243 'task.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900244 'task.h',
levin@chromium.orgf4cb1742010-08-26 15:09:38 +0900245 'task_queue.cc',
246 'task_queue.h',
willchan@chromium.orgb9b021a2010-06-16 04:39:24 +0900247 'template_util.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900248 'thread.cc',
249 'thread.h',
levin@chromium.org77996d82010-08-24 13:29:56 +0900250 'thread_checker.cc',
251 'thread_checker.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900252 'thread_collision_warner.cc',
253 'thread_collision_warner.h',
254 'thread_local.h',
255 'thread_local_posix.cc',
256 'thread_local_storage.h',
257 'thread_local_storage_posix.cc',
258 'thread_local_storage_win.cc',
259 'thread_local_win.cc',
jam@chromium.orgc803b5f2010-11-05 02:41:00 +0900260 'thread_restrictions.h',
261 'thread_restrictions.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900262 'time.cc',
263 'time.h',
264 'time_win.cc',
265 'timer.cc',
266 'timer.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900267 'tracked.cc',
268 'tracked.h',
269 'tracked_objects.cc',
270 'tracked_objects.h',
271 'tuple.h',
272 'utf_offset_string_conversions.cc',
273 'utf_offset_string_conversions.h',
274 'utf_string_conversion_utils.cc',
275 'utf_string_conversion_utils.h',
276 'utf_string_conversions.cc',
277 'utf_string_conversions.h',
robertshield@chromium.org9fb9e372010-03-23 05:12:50 +0900278 'values.cc',
279 'values.h',
gfeher@chromium.org281c3aa2010-11-23 19:11:10 +0900280 'values_util.cc',
281 'values_util.h',
robertshield@chromium.orga9914a32010-11-11 02:02:19 +0900282 'version.cc',
283 'version.h',
akalin@chromium.orgf0ee79c2010-09-30 04:26:36 +0900284 'vlog.cc',
285 'vlog.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900286 'waitable_event.h',
287 'waitable_event_posix.cc',
288 'waitable_event_watcher.h',
289 'waitable_event_watcher_posix.cc',
290 'waitable_event_watcher_win.cc',
291 'waitable_event_win.cc',
292 'watchdog.cc',
293 'watchdog.h',
erg@chromium.org493f5f62010-07-16 06:03:54 +0900294 'weak_ptr.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900295 'weak_ptr.h',
grt@chromium.orgce2cac52010-11-17 00:28:45 +0900296 'win/i18n.cc',
297 'win/i18n.h',
brettw@chromium.orgb3a7c3e2010-10-17 13:41:54 +0900298 'win/pe_image.cc',
siggi@chromium.org7913ed62010-11-07 00:39:40 +0900299 'win/event_trace_consumer.h',
300 'win/event_trace_controller.cc',
301 'win/event_trace_controller.h',
302 'win/event_trace_provider.cc',
303 'win/event_trace_provider.h',
brettw@chromium.orgb3a7c3e2010-10-17 13:41:54 +0900304 'win/pe_image.h',
305 'win/registry.cc',
306 'win/registry.h',
mad@google.comfb6da3a2010-11-24 08:19:58 +0900307 'win/rgs_helper.h',
brettw@chromium.org45352272010-10-16 12:46:05 +0900308 'win/scoped_bstr.cc',
309 'win/scoped_bstr.h',
310 'win/scoped_comptr.h',
311 'win/scoped_gdi_object.h',
312 'win/scoped_handle.h',
313 'win/scoped_hdc.h',
314 'win/scoped_hglobal.h',
315 'win/scoped_variant.cc',
316 'win/scoped_variant.h',
brettw@chromium.orgacb14c22010-10-15 10:59:15 +0900317 'win/windows_version.cc',
318 'win/windows_version.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900319 'win_util.cc',
320 'win_util.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900321 'worker_pool.h',
thakis@chromium.org68b39962010-12-19 04:53:18 +0900322 'worker_pool_posix.cc',
323 'worker_pool_posix.h',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900324 '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 ],
rsesek@chromium.org56a552f2010-08-14 00:24:53 +0900360 [ 'OS != "mac"', {
361 'sources!': [
362 'scoped_aedesc.h'
363 ],
364 }],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900365 # For now, just test the *BSD platforms enough to exclude them.
366 # Subsequent changes will include them further.
367 [ 'OS != "freebsd"', {
368 'sources/': [ ['exclude', '_freebsd\\.cc$'] ],
369 },
370 ],
371 [ 'OS != "openbsd"', {
372 'sources/': [ ['exclude', '_openbsd\\.cc$'] ],
373 },
374 ],
brettw@chromium.org45352272010-10-16 12:46:05 +0900375 ['OS != "win"', {
376 'sources/': [ ['exclude', '^win/'] ],
377 },
378 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900379 [ 'OS == "win"', {
brettw@chromium.orgacb14c22010-10-15 10:59:15 +0900380 'include_dirs': [
381 '<(DEPTH)/third_party/wtl/include',
382 ],
383 'sources!': [
384 'event_recorder_stubs.cc',
385 'file_descriptor_shuffle.cc',
386 'message_pump_libevent.cc',
387 # Not using sha1_win.cc because it may have caused a
388 # regression to page cycler moz.
389 'sha1_win.cc',
390 'string16.cc',
brettw@chromium.org2f49b122010-10-26 13:07:50 +0900391 'debug/trace_event.cc',
brettw@chromium.orgacb14c22010-10-15 10:59:15 +0900392 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900393 },],
394 ],
395 }],
396 ],
397 },
398 'targets': [
399 {
400 'target_name': 'base',
401 'type': '<(library)',
402 'msvs_guid': '1832A374-8A74-4F9E-B536-69A699B3E165',
403 'variables': {
404 'base_target': 1,
405 },
406 'dependencies': [
407 '../third_party/modp_b64/modp_b64.gyp:modp_b64',
tony@chromium.org2ddfe8c2010-05-19 17:33:37 +0900408 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900409 ],
410 # TODO(gregoryd): direct_dependent_settings should be shared with the
411 # 64-bit target, but it doesn't work due to a bug in gyp
412 'direct_dependent_settings': {
413 'include_dirs': [
414 '..',
415 ],
416 },
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900417 'conditions': [
jam@chromium.org7de295e2010-12-02 05:22:49 +0900418 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900419 'conditions': [
jam@chromium.org7de295e2010-12-02 05:22:49 +0900420 [ 'chromeos==1', {
421 'sources/': [ ['include', '_chromeos\\.cc$'] ]
422 },
423 ],
thestig@chromium.orgbbe65c62010-07-02 10:12:18 +0900424 [ 'linux_use_tcmalloc==0', {
425 'defines': [
426 'NO_TCMALLOC',
427 ],
428 'direct_dependent_settings': {
429 'defines': [
430 'NO_TCMALLOC',
431 ],
432 },
433 },
434 ],
joth@chromium.org0dd35272010-10-22 22:12:34 +0900435 [ 'use_openssl==1', {
436 'dependencies': [
joth@chromium.org6e6305c2010-12-10 03:36:24 +0900437 '../third_party/openssl/openssl.gyp:openssl',
joth@chromium.org0dd35272010-10-22 22:12:34 +0900438 ],
439 }, { # use_openssl==0
440 'dependencies': [
441 '../build/linux/system.gyp:nss',
442 ],
443 }
444 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900445 ],
446 'dependencies': [
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900447 'symbolize',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900448 '../build/util/build_util.gyp:lastchange',
449 '../build/linux/system.gyp:gtk',
rjkroege@google.com3080f442010-10-23 01:17:47 +0900450 '../build/linux/system.gyp:x11',
evan@chromium.orgc4bcf872010-02-03 11:11:40 +0900451 'xdg_mime',
satorux@chromium.org9bd30ff2010-01-26 15:26:26 +0900452 ],
jam@chromium.org7de295e2010-12-02 05:22:49 +0900453 'defines': [
454 'USE_SYMBOLIZE',
455 ],
456 'cflags': [
457 '-Wno-write-strings',
458 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900459 'export_dependent_settings': [
460 '../build/linux/system.gyp:gtk',
rjkroege@google.com3080f442010-10-23 01:17:47 +0900461 '../build/linux/system.gyp:x11',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900462 ],
jam@chromium.org7de295e2010-12-02 05:22:49 +0900463 }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"
464 'sources/': [
465 ['exclude', '/xdg_user_dirs/'],
466 ['exclude', '_nss\.cc$'],
467 ],
468 }],
jam@chromium.orgf497c952010-06-11 14:41:00 +0900469 [ 'OS == "freebsd" or OS == "openbsd"', {
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900470 'link_settings': {
471 'libraries': [
472 '-L/usr/local/lib -lexecinfo',
jam@chromium.orgf497c952010-06-11 14:41:00 +0900473 ],
474 },
475 },
476 ],
bradnelson@google.com65d8cbf2010-06-12 07:45:37 +0900477 [ 'OS == "linux"', {
478 'link_settings': {
479 'libraries': [
480 # We need rt for clock_gettime().
481 '-lrt',
482 # For 'native_library_linux.cc'
483 '-ldl',
484 ],
485 },
486 }],
jam@chromium.orgf497c952010-06-11 14:41:00 +0900487 [ 'OS == "mac"', {
jam@chromium.orgef265dd2010-06-12 06:30:37 +0900488 'link_settings': {
489 'libraries': [
490 '$(SDKROOT)/System/Library/Frameworks/AppKit.framework',
491 '$(SDKROOT)/System/Library/Frameworks/Carbon.framework',
492 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework',
493 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework',
494 '$(SDKROOT)/System/Library/Frameworks/IOKit.framework',
495 '$(SDKROOT)/System/Library/Frameworks/Security.framework',
496 ],
497 },
jam@chromium.org7de295e2010-12-02 05:22:49 +0900498 }, { # OS != "mac"
499 'sources!': [
500 'crypto/cssm_init.cc',
501 'crypto/cssm_init.h',
502 ],
503 }],
wtc@chromium.orgcded8b22010-06-02 05:28:03 +0900504 [ 'OS == "mac" or OS == "win"', {
wtc@chromium.org6e6b7832010-01-28 04:36:22 +0900505 'dependencies': [
506 '../third_party/nss/nss.gyp:nss',
507 ],
wtc@chromium.orgcded8b22010-06-02 05:28:03 +0900508 },],
509 [ 'OS != "win"', {
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900510 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'],
jam@chromium.org7de295e2010-12-02 05:22:49 +0900511 'sources!': [
512 'third_party/purify/pure_api.c',
513 'base_drag_source.cc',
514 'base_drop_target.cc',
515 'cpu.cc',
516 'crypto/capi_util.h',
517 'crypto/capi_util.cc',
518 'debug_on_start.cc',
519 'event_recorder.cc',
520 'file_version_info.cc',
jam@chromium.org7de295e2010-12-02 05:22:49 +0900521 'object_watcher.cc',
522 'pe_image.cc',
523 'registry.cc',
524 'resource_util.cc',
525 'win_util.cc',
526 ],
wtc@chromium.org6e6b7832010-01-28 04:36:22 +0900527 },],
jam@chromium.org7de295e2010-12-02 05:22:49 +0900528 [ 'use_openssl==1', {
529 # TODO(joth): Use a glob to match exclude patterns once the
530 # OpenSSL file set is complete.
531 'sources!': [
532 'crypto/encryptor_nss.cc',
533 'crypto/rsa_private_key_nss.cc',
534 'crypto/signature_creator_nss.cc',
535 'crypto/signature_verifier_nss.cc',
536 'crypto/symmetric_key_nss.cc',
537 'hmac_nss.cc',
538 'nss_util.cc',
539 'nss_util.h',
540 # Note that sha2.cc depends on the NSS files bundled into
541 # chromium; it does not have the _nss postfix as it is required
542 # on platforms besides linux and *bsd.
543 'sha2.cc',
544 'third_party/nss/blapi.h',
545 'third_party/nss/blapit.h',
546 'third_party/nss/sha256.h',
547 'third_party/nss/sha512.cc',
548 ],
549 }, {
550 'sources!': [
551 'crypto/encryptor_openssl.cc',
552 'crypto/rsa_private_key_openssl.cc',
553 'crypto/signature_creator_openssl.cc',
554 'crypto/signature_verifier_openssl.cc',
555 'crypto/symmetric_key_openssl.cc',
556 'hmac_openssl.cc',
557 'openssl_util.cc',
558 'openssl_util.h',
559 'sha2_openssl.cc',
560 ],
561 },],
562 ],
563 'sources': [
564 'crypto/capi_util.cc',
565 'crypto/capi_util.h',
566 'crypto/cssm_init.cc',
567 'crypto/cssm_init.h',
568 'crypto/encryptor.h',
569 'crypto/encryptor_mac.cc',
570 'crypto/encryptor_nss.cc',
571 'crypto/encryptor_openssl.cc',
572 'crypto/encryptor_win.cc',
573 'crypto/rsa_private_key.h',
574 'crypto/rsa_private_key.cc',
575 'crypto/rsa_private_key_mac.cc',
576 'crypto/rsa_private_key_nss.cc',
577 'crypto/rsa_private_key_openssl.cc',
578 'crypto/rsa_private_key_win.cc',
579 'crypto/signature_creator.h',
580 'crypto/signature_creator_mac.cc',
581 'crypto/signature_creator_nss.cc',
582 'crypto/signature_creator_openssl.cc',
583 'crypto/signature_creator_win.cc',
584 'crypto/signature_verifier.h',
585 'crypto/signature_verifier_mac.cc',
586 'crypto/signature_verifier_nss.cc',
587 'crypto/signature_verifier_openssl.cc',
588 'crypto/signature_verifier_win.cc',
589 'crypto/symmetric_key.h',
590 'crypto/symmetric_key_mac.cc',
591 'crypto/symmetric_key_nss.cc',
592 'crypto/symmetric_key_openssl.cc',
593 'crypto/symmetric_key_win.cc',
594 'third_party/nspr/prcpucfg.h',
595 'third_party/nspr/prcpucfg_win.h',
596 'third_party/nspr/prtypes.h',
597 'third_party/nss/blapi.h',
598 'third_party/nss/blapit.h',
599 'third_party/nss/sha256.h',
600 'third_party/nss/sha512.cc',
601 'third_party/purify/pure.h',
602 'third_party/purify/pure_api.c',
603 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
604 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h',
605 'auto_reset.h',
606 'base64.cc',
607 'base64.h',
608 'data_pack.cc',
609 'event_recorder.cc',
610 'event_recorder.h',
611 'event_recorder_stubs.cc',
612 'file_descriptor_shuffle.cc',
613 'file_descriptor_shuffle.h',
614 'hmac.h',
615 'hmac_mac.cc',
616 'hmac_nss.cc',
617 'hmac_openssl.cc',
618 'hmac_win.cc',
jam@chromium.org7de295e2010-12-02 05:22:49 +0900619 'linux_util.cc',
620 'linux_util.h',
621 'md5.cc',
622 'md5.h',
623 'message_pump_glib.cc',
624 'message_pump_glib.h',
625 'message_pump_glib_x.cc',
626 'message_pump_glib_x.h',
627 'message_pump_glib_x_dispatch.h',
628 'message_pump_libevent.cc',
629 'message_pump_libevent.h',
630 'message_pump_mac.h',
631 'message_pump_mac.mm',
632 'metrics/field_trial.cc',
633 'metrics/field_trial.h',
jam@chromium.org7de295e2010-12-02 05:22:49 +0900634 'nss_util.cc',
635 'nss_util.h',
636 'openssl_util.cc',
637 'openssl_util.h',
638 'setproctitle_linux.c',
639 'setproctitle_linux.h',
640 'sha2.cc',
641 'sha2.h',
642 'sha2_openssl.cc',
643 'string16.cc',
644 'string16.h',
645 'sync_socket.h',
646 'sync_socket_win.cc',
647 'sync_socket_posix.cc',
648 'time_mac.cc',
649 'time_posix.cc',
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900650 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900651 },
652 ],
653 'conditions': [
654 [ 'OS == "win"', {
655 'targets': [
656 {
657 'target_name': 'base_nacl_win64',
658 'type': '<(library)',
659 'msvs_guid': 'CEE1F794-DC70-4FED-B7C4-4C12986672FE',
660 'variables': {
661 'base_target': 1,
662 },
timurrrr@chromium.orgf39c3ff2010-05-14 17:24:42 +0900663 'dependencies': [
tony@chromium.org2ddfe8c2010-05-19 17:33:37 +0900664 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
timurrrr@chromium.orgf39c3ff2010-05-14 17:24:42 +0900665 ],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900666 # TODO(gregoryd): direct_dependent_settings should be shared with the
667 # 32-bit target, but it doesn't work due to a bug in gyp
668 'direct_dependent_settings': {
669 'include_dirs': [
670 '..',
671 ],
672 },
673 'defines': [
674 '<@(nacl_win64_defines)',
675 ],
676 'sources': [
677 'i18n/icu_util_nacl_win64.cc',
678 ],
679 'configurations': {
gregoryd@google.comacc30ba2009-12-23 07:57:37 +0900680 'Common_Base': {
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900681 'msvs_target_platform': 'x64',
682 },
683 },
684 },
685 ],
686 }],
evan@chromium.org089339c2010-04-01 09:35:15 +0900687 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
satorux@chromium.org9bd30ff2010-01-26 15:26:26 +0900688 'targets': [
689 {
690 'target_name': 'symbolize',
691 'type': '<(library)',
mark@chromium.org9cc09262010-02-17 04:13:36 +0900692 'variables': {
693 'chromium_code': 0,
694 },
evan@chromium.org089339c2010-04-01 09:35:15 +0900695 'conditions': [
696 [ 'OS == "solaris"', {
697 'include_dirs': [
698 '/usr/gnu/include',
699 '/usr/gnu/include/libelf',
700 ],
701 },],
702 ],
satorux@chromium.org9bd30ff2010-01-26 15:26:26 +0900703 'cflags': [
704 '-Wno-sign-compare',
705 ],
evan@chromium.orga6768f52010-02-06 07:23:20 +0900706 'cflags!': [
707 '-Wextra',
708 ],
satorux@chromium.org9bd30ff2010-01-26 15:26:26 +0900709 'sources': [
710 'third_party/symbolize/symbolize.cc',
711 'third_party/symbolize/demangle.cc',
712 ],
713 },
evan@chromium.orgc4bcf872010-02-03 11:11:40 +0900714 {
715 'target_name': 'xdg_mime',
716 'type': '<(library)',
mark@chromium.org9cc09262010-02-17 04:13:36 +0900717 'variables': {
718 'chromium_code': 0,
719 },
evan@chromium.orga6768f52010-02-06 07:23:20 +0900720 'cflags!': [
721 '-Wextra',
722 ],
evan@chromium.orgc4bcf872010-02-03 11:11:40 +0900723 'sources': [
724 'third_party/xdg_mime/xdgmime.c',
725 'third_party/xdg_mime/xdgmime.h',
726 'third_party/xdg_mime/xdgmimealias.c',
727 'third_party/xdg_mime/xdgmimealias.h',
728 'third_party/xdg_mime/xdgmimecache.c',
729 'third_party/xdg_mime/xdgmimecache.h',
730 'third_party/xdg_mime/xdgmimeglob.c',
731 'third_party/xdg_mime/xdgmimeglob.h',
732 'third_party/xdg_mime/xdgmimeicon.c',
733 'third_party/xdg_mime/xdgmimeicon.h',
734 'third_party/xdg_mime/xdgmimeint.c',
735 'third_party/xdg_mime/xdgmimeint.h',
736 'third_party/xdg_mime/xdgmimemagic.c',
737 'third_party/xdg_mime/xdgmimemagic.h',
738 'third_party/xdg_mime/xdgmimeparent.c',
739 'third_party/xdg_mime/xdgmimeparent.h',
740 ],
741 },
satorux@chromium.org9bd30ff2010-01-26 15:26:26 +0900742 ],
743 }],
gregoryd@google.com9e3cfd62009-12-05 07:46:50 +0900744 ],
745}