[email protected] | 225c8f5 | 2010-02-05 22:23:20 | [diff] [blame] | 1 | # Copyright (c) 2010 The Chromium Authors. All rights reserved. |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 2 | # 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, |
[email protected] | 97a28e72 | 2010-06-11 21:30:37 | [diff] [blame] | 9 | 'base_extra_target': 0, |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 10 | }, |
| 11 | 'target_conditions': [ |
[email protected] | 0ea5482 | 2010-07-01 20:14:50 | [diff] [blame] | 12 | # This part is shared between the targets defined below. |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 13 | ['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', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 23 | 'at_exit.cc', |
| 24 | 'at_exit.h', |
| 25 | 'atomic_ref_count.h', |
| 26 | 'atomic_sequence_num.h', |
| 27 | 'atomicops.h', |
[email protected] | 9bc8cff | 2010-04-03 01:05:39 | [diff] [blame] | 28 | 'atomicops_internals_x86_gcc.cc', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 29 | 'atomicops_internals_x86_msvc.h', |
| 30 | 'base_paths.cc', |
| 31 | 'base_paths.h', |
| 32 | 'base_paths_mac.h', |
| 33 | 'base_paths_mac.mm', |
| 34 | 'base_paths_posix.cc', |
| 35 | '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', |
[email protected] | 2041cf34 | 2010-02-19 03:15:59 | [diff] [blame] | 42 | 'callback.h', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 43 | 'cancellation_flag.cc', |
[email protected] | 9bc8cff | 2010-04-03 01:05:39 | [diff] [blame] | 44 | 'cancellation_flag.h', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 45 | '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', |
| 61 | 'debug_util_posix.cc', |
| 62 | 'debug_util_win.cc', |
[email protected] | ef73044e | 2010-03-11 15:25:54 | [diff] [blame] | 63 | 'dir_reader_fallback.h', |
| 64 | 'dir_reader_linux.h', |
| 65 | 'dir_reader_posix.h', |
[email protected] | 76b90d31 | 2010-08-03 03:00:50 | [diff] [blame] | 66 | 'environment.cc', |
| 67 | 'environment.h', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 68 | 'event_trace_consumer_win.h', |
| 69 | 'event_trace_controller_win.cc', |
| 70 | 'event_trace_controller_win.h', |
| 71 | 'event_trace_provider_win.cc', |
| 72 | 'event_trace_provider_win.h', |
[email protected] | 687e25d | 2010-05-19 03:39:27 | [diff] [blame] | 73 | 'event_synthesis_gtk.cc', |
| 74 | 'event_synthesis_gtk.h', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 75 | 'file_path.cc', |
| 76 | 'file_path.h', |
| 77 | 'file_util.cc', |
| 78 | 'file_util.h', |
[email protected] | a84ab95 | 2010-02-23 11:34:54 | [diff] [blame] | 79 | 'file_util_deprecated.h', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 80 | 'file_util_mac.mm', |
| 81 | 'file_util_posix.cc', |
| 82 | 'file_util_win.cc', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 83 | 'file_version_info.h', |
[email protected] | bcff05a | 2010-04-14 01:46:43 | [diff] [blame] | 84 | 'file_version_info_mac.h', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 85 | 'file_version_info_mac.mm', |
[email protected] | bcff05a | 2010-04-14 01:46:43 | [diff] [blame] | 86 | 'file_version_info_win.cc', |
| 87 | 'file_version_info_win.h', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 88 | 'fix_wp64.h', |
| 89 | 'float_util.h', |
| 90 | 'foundation_utils_mac.h', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 91 | 'global_descriptors_posix.cc', |
[email protected] | 9bc8cff | 2010-04-03 01:05:39 | [diff] [blame] | 92 | 'global_descriptors_posix.h', |
[email protected] | a918f87 | 2010-06-01 14:30:51 | [diff] [blame] | 93 | 'gtest_prod_util.h', |
[email protected] | 0ea5482 | 2010-07-01 20:14:50 | [diff] [blame] | 94 | 'gtk_util.cc', |
| 95 | 'gtk_util.h', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 96 | 'hash_tables.h', |
| 97 | 'histogram.cc', |
| 98 | 'histogram.h', |
| 99 | 'iat_patch.cc', |
| 100 | 'iat_patch.h', |
| 101 | 'id_map.h', |
| 102 | 'lazy_instance.cc', |
| 103 | 'lazy_instance.h', |
| 104 | 'leak_annotations.h', |
| 105 | 'leak_tracker.h', |
| 106 | 'linked_list.h', |
| 107 | 'linked_ptr.h', |
| 108 | 'lock.cc', |
| 109 | 'lock.h', |
| 110 | 'lock_impl.h', |
| 111 | 'lock_impl_posix.cc', |
| 112 | 'lock_impl_win.cc', |
| 113 | 'logging.cc', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 114 | 'logging.h', |
[email protected] | 9bc8cff | 2010-04-03 01:05:39 | [diff] [blame] | 115 | 'logging_win.cc', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 116 | 'mac_util.h', |
| 117 | 'mac_util.mm', |
[email protected] | c002879 | 2010-01-12 00:39:15 | [diff] [blame] | 118 | 'mach_ipc_mac.h', |
| 119 | 'mach_ipc_mac.mm', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 120 | 'memory_debug.cc', |
| 121 | 'memory_debug.h', |
| 122 | 'message_loop.cc', |
| 123 | 'message_loop.h', |
[email protected] | 2cbac9e | 2010-04-29 03:31:34 | [diff] [blame] | 124 | 'message_loop_proxy.h', |
[email protected] | 656475d | 2010-05-06 18:34:24 | [diff] [blame] | 125 | 'message_loop_proxy_impl.cc', |
| 126 | 'message_loop_proxy_impl.h', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 127 | 'message_pump.h', |
| 128 | 'message_pump_default.cc', |
| 129 | 'message_pump_default.h', |
| 130 | 'message_pump_win.cc', |
| 131 | 'message_pump_win.h', |
| 132 | 'mime_util.h', |
[email protected] | 1c65785 | 2010-04-22 23:28:05 | [diff] [blame] | 133 | 'mime_util_xdg.cc', |
[email protected] | 0fecda6 | 2010-03-19 21:59:01 | [diff] [blame] | 134 | 'move.h', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 135 | 'native_library.h', |
| 136 | 'native_library_linux.cc', |
| 137 | 'native_library_mac.mm', |
| 138 | 'native_library_win.cc', |
| 139 | 'non_thread_safe.cc', |
| 140 | 'non_thread_safe.h', |
| 141 | 'nullable_string16.h', |
| 142 | 'object_watcher.cc', |
| 143 | 'object_watcher.h', |
| 144 | 'observer_list.h', |
| 145 | 'observer_list_threadsafe.h', |
| 146 | 'path_service.cc', |
| 147 | 'path_service.h', |
[email protected] | 4bc818e | 2010-02-04 22:47:37 | [diff] [blame] | 148 | 'pe_image.cc', |
| 149 | 'pe_image.h', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 150 | 'pickle.cc', |
| 151 | 'pickle.h', |
| 152 | 'platform_file.h', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 153 | 'platform_file_posix.cc', |
[email protected] | 9bc8cff | 2010-04-03 01:05:39 | [diff] [blame] | 154 | 'platform_file_win.cc', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 155 | 'platform_thread.h', |
| 156 | 'platform_thread_mac.mm', |
| 157 | 'platform_thread_posix.cc', |
| 158 | 'platform_thread_win.cc', |
| 159 | 'port.h', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 160 | 'process.h', |
| 161 | 'process_linux.cc', |
| 162 | 'process_posix.cc', |
[email protected] | b6128aa | 2010-04-29 17:44:42 | [diff] [blame] | 163 | 'process_util.cc', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 164 | 'process_util.h', |
| 165 | 'process_util_linux.cc', |
| 166 | 'process_util_mac.mm', |
| 167 | 'process_util_posix.cc', |
| 168 | 'process_util_win.cc', |
| 169 | 'process_win.cc', |
[email protected] | 9bc8cff | 2010-04-03 01:05:39 | [diff] [blame] | 170 | 'profiler.cc', |
| 171 | 'profiler.h', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 172 | 'rand_util.cc', |
| 173 | 'rand_util.h', |
| 174 | 'rand_util_posix.cc', |
| 175 | 'rand_util_win.cc', |
| 176 | 'raw_scoped_refptr_mismatch_checker.h', |
| 177 | 'ref_counted.cc', |
| 178 | 'ref_counted.h', |
[email protected] | 307175443 | 2010-07-28 00:09:54 | [diff] [blame] | 179 | 'ref_counted_memory.cc', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 180 | 'ref_counted_memory.h', |
| 181 | 'registry.cc', |
| 182 | 'registry.h', |
| 183 | 'resource_util.cc', |
| 184 | 'resource_util.h', |
| 185 | 'safe_strerror_posix.cc', |
| 186 | 'safe_strerror_posix.h', |
[email protected] | 824ff72 | 2010-08-13 15:24:53 | [diff] [blame] | 187 | 'scoped_aedesc.h', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 188 | 'scoped_bstr_win.cc', |
| 189 | 'scoped_bstr_win.h', |
[email protected] | 21ae1f9 | 2010-07-30 23:05:15 | [diff] [blame] | 190 | 'scoped_callback_factory.h', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 191 | 'scoped_cftyperef.h', |
| 192 | 'scoped_comptr_win.h', |
| 193 | 'scoped_handle.h', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 194 | 'scoped_handle_win.h', |
| 195 | 'scoped_nsautorelease_pool.h', |
| 196 | 'scoped_nsautorelease_pool.mm', |
| 197 | 'scoped_nsdisable_screen_updates.h', |
| 198 | 'scoped_nsobject.h', |
[email protected] | 8ceb44c | 2010-02-24 22:27:04 | [diff] [blame] | 199 | 'scoped_open_process.h', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 200 | 'scoped_ptr.h', |
| 201 | 'scoped_temp_dir.cc', |
| 202 | 'scoped_temp_dir.h', |
| 203 | 'scoped_variant_win.cc', |
| 204 | 'scoped_variant_win.h', |
| 205 | 'scoped_vector.h', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 206 | 'sha1.h', |
[email protected] | 94d557e | 2010-06-23 21:41:40 | [diff] [blame] | 207 | 'sha1_portable.cc', |
| 208 | 'sha1_win.cc', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 209 | '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', |
| 217 | 'stats_counters.h', |
| 218 | 'stats_table.cc', |
| 219 | 'stats_table.h', |
| 220 | 'stl_util-inl.h', |
[email protected] | 528c56d | 2010-07-30 19:28:44 | [diff] [blame] | 221 | 'string_number_conversions.cc', |
| 222 | 'string_number_conversions.h', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 223 | 'string_piece.cc', |
| 224 | 'string_piece.h', |
[email protected] | 0477554f | 2010-01-21 19:29:25 | [diff] [blame] | 225 | 'string_split.cc', |
| 226 | 'string_split.h', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 227 | 'string_tokenizer.h', |
| 228 | 'string_util.cc', |
| 229 | 'string_util.h', |
| 230 | 'string_util_win.h', |
[email protected] | e6811ed5 | 2010-08-17 03:45:37 | [diff] [blame^] | 231 | 'stringprintf.cc', |
| 232 | 'stringprintf.h', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 233 | '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', |
[email protected] | 3a3d4747 | 2010-07-15 21:03:54 | [diff] [blame] | 245 | 'task.cc', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 246 | 'task.h', |
[email protected] | 951269b | 2010-06-15 19:39:24 | [diff] [blame] | 247 | 'template_util.h', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 248 | 'thread.cc', |
| 249 | 'thread.h', |
| 250 | 'thread_collision_warner.cc', |
| 251 | 'thread_collision_warner.h', |
| 252 | 'thread_local.h', |
| 253 | 'thread_local_posix.cc', |
| 254 | 'thread_local_storage.h', |
| 255 | 'thread_local_storage_posix.cc', |
| 256 | 'thread_local_storage_win.cc', |
| 257 | 'thread_local_win.cc', |
| 258 | 'time.cc', |
| 259 | 'time.h', |
| 260 | 'time_win.cc', |
| 261 | 'timer.cc', |
| 262 | 'timer.h', |
[email protected] | 3e56955 | 2010-05-07 20:25:49 | [diff] [blame] | 263 | 'trace_event_win.cc', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 264 | 'trace_event.cc', |
| 265 | 'trace_event.h', |
| 266 | 'tracked.cc', |
| 267 | 'tracked.h', |
| 268 | 'tracked_objects.cc', |
| 269 | 'tracked_objects.h', |
| 270 | 'tuple.h', |
[email protected] | 9bc8cff | 2010-04-03 01:05:39 | [diff] [blame] | 271 | 'unix_domain_socket_posix.cc', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 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', |
[email protected] | c604a55 | 2010-03-22 20:12:50 | [diff] [blame] | 278 | 'values.cc', |
| 279 | 'values.h', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 280 | 'waitable_event.h', |
| 281 | 'waitable_event_posix.cc', |
| 282 | 'waitable_event_watcher.h', |
| 283 | 'waitable_event_watcher_posix.cc', |
| 284 | 'waitable_event_watcher_win.cc', |
| 285 | 'waitable_event_win.cc', |
| 286 | 'watchdog.cc', |
| 287 | 'watchdog.h', |
[email protected] | 3a3d4747 | 2010-07-15 21:03:54 | [diff] [blame] | 288 | 'weak_ptr.cc', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 289 | 'weak_ptr.h', |
| 290 | 'win_util.cc', |
| 291 | 'win_util.h', |
| 292 | 'windows_message_list.h', |
| 293 | 'wmi_util.cc', |
| 294 | 'wmi_util.h', |
| 295 | 'worker_pool.h', |
| 296 | 'worker_pool_linux.cc', |
| 297 | 'worker_pool_linux.h', |
| 298 | 'worker_pool_mac.h', |
| 299 | 'worker_pool_mac.mm', |
| 300 | 'worker_pool_win.cc', |
[email protected] | 1c65785 | 2010-04-22 23:28:05 | [diff] [blame] | 301 | 'xdg_util.h', |
| 302 | 'xdg_util.cc', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 303 | ], |
| 304 | 'include_dirs': [ |
| 305 | '..', |
| 306 | ], |
| 307 | # These warnings are needed for the files in third_party\dmg_fp. |
| 308 | 'msvs_disabled_warnings': [ |
| 309 | 4244, 4554, 4018, 4102, |
| 310 | ], |
| 311 | 'mac_framework_dirs': [ |
| 312 | '$(SDKROOT)/System/Library/Frameworks/ApplicationServices.framework/Frameworks', |
| 313 | ], |
| 314 | 'conditions': [ |
[email protected] | 93f21e4 | 2010-04-01 00:35:15 | [diff] [blame] | 315 | [ 'OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris"', { |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 316 | 'sources/': [ |
[email protected] | 1c65785 | 2010-04-22 23:28:05 | [diff] [blame] | 317 | ['exclude', '/xdg_[^/]*\\.cc$'], |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 318 | ], |
| 319 | 'sources!': [ |
| 320 | 'atomicops_internals_x86_gcc.cc', |
| 321 | 'base_paths_posix.cc', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 322 | 'message_pump_glib.cc', |
[email protected] | 1c65785 | 2010-04-22 23:28:05 | [diff] [blame] | 323 | 'xdg_util.cc', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 324 | ], |
[email protected] | bcff05a | 2010-04-14 01:46:43 | [diff] [blame] | 325 | }], |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 326 | [ 'OS != "linux"', { |
| 327 | 'sources!': [ |
| 328 | # Not automatically excluded by the *linux.cc rules. |
[email protected] | 0ea5482 | 2010-07-01 20:14:50 | [diff] [blame] | 329 | 'gtk_util.cc', |
| 330 | 'gtk_util.h', |
[email protected] | 1c65785 | 2010-04-22 23:28:05 | [diff] [blame] | 331 | 'linux_util.cc', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 332 | 'setproctitle_linux.c', |
| 333 | 'setproctitle_linux.h', |
| 334 | ], |
| 335 | }, |
| 336 | ], |
[email protected] | 824ff72 | 2010-08-13 15:24:53 | [diff] [blame] | 337 | [ 'OS != "mac"', { |
| 338 | 'sources!': [ |
| 339 | 'scoped_aedesc.h' |
| 340 | ], |
| 341 | }], |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 342 | # For now, just test the *BSD platforms enough to exclude them. |
| 343 | # Subsequent changes will include them further. |
| 344 | [ 'OS != "freebsd"', { |
| 345 | 'sources/': [ ['exclude', '_freebsd\\.cc$'] ], |
| 346 | }, |
| 347 | ], |
| 348 | [ 'OS != "openbsd"', { |
| 349 | 'sources/': [ ['exclude', '_openbsd\\.cc$'] ], |
| 350 | }, |
| 351 | ], |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 352 | [ 'OS == "win"', { |
| 353 | 'include_dirs': [ |
[email protected] | cd134c8c | 2010-03-09 05:23:12 | [diff] [blame] | 354 | '<(DEPTH)/third_party/wtl/include', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 355 | ], |
| 356 | 'sources!': [ |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 357 | 'event_recorder_stubs.cc', |
| 358 | 'file_descriptor_shuffle.cc', |
| 359 | 'message_pump_libevent.cc', |
[email protected] | 5ac07d5b | 2010-06-25 21:53:41 | [diff] [blame] | 360 | # Not using sha1_win.cc because it may have caused a |
| 361 | # regression to page cycler moz. |
| 362 | 'sha1_win.cc', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 363 | 'string16.cc', |
[email protected] | 3e56955 | 2010-05-07 20:25:49 | [diff] [blame] | 364 | 'trace_event.cc', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 365 | ], |
| 366 | },], |
| 367 | ], |
| 368 | }], |
[email protected] | 90f1891 | 2010-07-08 16:51:04 | [diff] [blame] | 369 | ['base_extra_target==1', { |
[email protected] | 97a28e72 | 2010-06-11 21:30:37 | [diff] [blame] | 370 | 'sources': [ |
[email protected] | 3bcd5790 | 2010-06-23 22:46:04 | [diff] [blame] | 371 | 'crypto/capi_util.cc', |
| 372 | 'crypto/capi_util.h', |
[email protected] | 97a28e72 | 2010-06-11 21:30:37 | [diff] [blame] | 373 | 'crypto/cssm_init.cc', |
| 374 | 'crypto/cssm_init.h', |
| 375 | 'crypto/encryptor.h', |
| 376 | 'crypto/encryptor_mac.cc', |
| 377 | 'crypto/encryptor_nss.cc', |
| 378 | 'crypto/encryptor_win.cc', |
| 379 | 'crypto/rsa_private_key.h', |
| 380 | 'crypto/rsa_private_key.cc', |
| 381 | 'crypto/rsa_private_key_mac.cc', |
| 382 | 'crypto/rsa_private_key_nss.cc', |
| 383 | 'crypto/rsa_private_key_win.cc', |
| 384 | 'crypto/signature_creator.h', |
| 385 | 'crypto/signature_creator_mac.cc', |
| 386 | 'crypto/signature_creator_nss.cc', |
| 387 | 'crypto/signature_creator_win.cc', |
| 388 | 'crypto/signature_verifier.h', |
| 389 | 'crypto/signature_verifier_mac.cc', |
| 390 | 'crypto/signature_verifier_nss.cc', |
| 391 | 'crypto/signature_verifier_win.cc', |
| 392 | 'crypto/symmetric_key.h', |
| 393 | 'crypto/symmetric_key_mac.cc', |
| 394 | 'crypto/symmetric_key_nss.cc', |
| 395 | 'crypto/symmetric_key_win.cc', |
| 396 | 'third_party/nspr/prcpucfg.h', |
| 397 | 'third_party/nspr/prcpucfg_win.h', |
| 398 | 'third_party/nspr/prtypes.h', |
| 399 | 'third_party/nss/blapi.h', |
| 400 | 'third_party/nss/blapit.h', |
| 401 | 'third_party/nss/sha256.h', |
| 402 | 'third_party/nss/sha512.cc', |
| 403 | 'third_party/purify/pure.h', |
| 404 | 'third_party/purify/pure_api.c', |
| 405 | 'third_party/xdg_user_dirs/xdg_user_dir_lookup.cc', |
| 406 | 'third_party/xdg_user_dirs/xdg_user_dir_lookup.h', |
| 407 | 'auto_reset.h', |
| 408 | 'base64.cc', |
| 409 | 'base64.h', |
| 410 | 'base_drag_source.cc', |
| 411 | 'base_drag_source.h', |
| 412 | 'base_drop_target.cc', |
| 413 | 'base_drop_target.h', |
| 414 | 'data_pack.cc', |
| 415 | 'event_recorder.cc', |
| 416 | 'event_recorder.h', |
| 417 | 'event_recorder_stubs.cc', |
| 418 | 'field_trial.cc', |
| 419 | 'field_trial.h', |
| 420 | 'file_descriptor_shuffle.cc', |
| 421 | 'file_descriptor_shuffle.h', |
| 422 | 'hmac.h', |
| 423 | 'hmac_mac.cc', |
| 424 | 'hmac_nss.cc', |
| 425 | 'hmac_win.cc', |
| 426 | 'image_util.cc', |
| 427 | 'image_util.h', |
| 428 | 'json/json_reader.cc', |
| 429 | 'json/json_reader.h', |
| 430 | 'json/json_writer.cc', |
| 431 | 'json/json_writer.h', |
| 432 | 'json/string_escape.cc', |
| 433 | 'json/string_escape.h', |
| 434 | 'keyboard_code_conversion_gtk.cc', |
| 435 | 'keyboard_code_conversion_gtk.h', |
[email protected] | 853300a8 | 2010-07-27 21:17:57 | [diff] [blame] | 436 | 'keyboard_code_conversion_mac.mm', |
| 437 | 'keyboard_code_conversion_mac.h', |
[email protected] | 97a28e72 | 2010-06-11 21:30:37 | [diff] [blame] | 438 | 'keyboard_codes.h', |
| 439 | 'keyboard_codes_win.h', |
| 440 | 'keyboard_codes_posix.h', |
| 441 | 'linux_util.cc', |
| 442 | 'linux_util.h', |
| 443 | 'md5.cc', |
| 444 | 'md5.h', |
| 445 | 'message_pump_glib.cc', |
| 446 | 'message_pump_glib.h', |
| 447 | 'message_pump_libevent.cc', |
| 448 | 'message_pump_libevent.h', |
| 449 | 'message_pump_mac.h', |
| 450 | 'message_pump_mac.mm', |
| 451 | 'nsimage_cache_mac.h', |
| 452 | 'nsimage_cache_mac.mm', |
| 453 | 'nss_util.cc', |
| 454 | 'nss_util.h', |
| 455 | 'setproctitle_linux.c', |
| 456 | 'setproctitle_linux.h', |
| 457 | 'sha2.cc', |
| 458 | 'sha2.h', |
| 459 | 'string16.cc', |
| 460 | 'string16.h', |
| 461 | 'sync_socket.h', |
| 462 | 'sync_socket_win.cc', |
| 463 | 'sync_socket_posix.cc', |
| 464 | 'time_mac.cc', |
| 465 | 'time_posix.cc', |
| 466 | 'version.cc', |
| 467 | 'version.h', |
| 468 | ], |
| 469 | 'conditions': [ |
[email protected] | e001408d | 2010-07-09 03:07:58 | [diff] [blame] | 470 | [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', { |
[email protected] | 97a28e72 | 2010-06-11 21:30:37 | [diff] [blame] | 471 | 'conditions': [ |
| 472 | [ 'chromeos==1', { |
| 473 | 'sources/': [ ['include', '_chromeos\\.cc$'] ] |
| 474 | }, |
| 475 | ], |
[email protected] | 97a28e72 | 2010-06-11 21:30:37 | [diff] [blame] | 476 | ], |
| 477 | 'defines': [ |
| 478 | 'USE_SYMBOLIZE', |
| 479 | ], |
| 480 | 'cflags': [ |
| 481 | '-Wno-write-strings', |
| 482 | ], |
[email protected] | e001408d | 2010-07-09 03:07:58 | [diff] [blame] | 483 | }, { # OS != "linux" and OS != "freebsd" and OS != "openbsd" and OS != "solaris" |
[email protected] | 90f1891 | 2010-07-08 16:51:04 | [diff] [blame] | 484 | 'sources/': [ |
| 485 | ['exclude', '/xdg_user_dirs/'], |
| 486 | ['exclude', '_nss\.cc$'], |
| 487 | ], |
| 488 | }], |
| 489 | [ 'OS != "mac"', { |
| 490 | 'sources!': [ |
| 491 | 'crypto/cssm_init.cc', |
| 492 | 'crypto/cssm_init.h', |
| 493 | ], |
| 494 | },], |
[email protected] | 97a28e72 | 2010-06-11 21:30:37 | [diff] [blame] | 495 | [ 'OS != "win"', { |
| 496 | 'sources!': [ |
| 497 | 'third_party/purify/pure_api.c', |
| 498 | 'base_drag_source.cc', |
| 499 | 'base_drop_target.cc', |
| 500 | 'cpu.cc', |
[email protected] | 3bcd5790 | 2010-06-23 22:46:04 | [diff] [blame] | 501 | 'crypto/capi_util.h', |
| 502 | 'crypto/capi_util.cc', |
[email protected] | 97a28e72 | 2010-06-11 21:30:37 | [diff] [blame] | 503 | 'debug_on_start.cc', |
| 504 | 'event_recorder.cc', |
| 505 | 'file_version_info.cc', |
| 506 | 'iat_patch.cc', |
| 507 | 'image_util.cc', |
| 508 | 'object_watcher.cc', |
| 509 | 'pe_image.cc', |
| 510 | 'registry.cc', |
| 511 | 'resource_util.cc', |
| 512 | 'win_util.cc', |
| 513 | 'wmi_util.cc', |
| 514 | ], |
| 515 | },], |
| 516 | ], |
| 517 | }], |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 518 | ], |
| 519 | }, |
| 520 | 'targets': [ |
| 521 | { |
| 522 | 'target_name': 'base', |
| 523 | 'type': '<(library)', |
| 524 | 'msvs_guid': '1832A374-8A74-4F9E-B536-69A699B3E165', |
| 525 | 'variables': { |
| 526 | 'base_target': 1, |
[email protected] | 97a28e72 | 2010-06-11 21:30:37 | [diff] [blame] | 527 | 'base_extra_target': 1, |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 528 | }, |
| 529 | 'dependencies': [ |
| 530 | '../third_party/modp_b64/modp_b64.gyp:modp_b64', |
[email protected] | b4a0b9995 | 2010-05-19 08:33:37 | [diff] [blame] | 531 | 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 532 | ], |
| 533 | # TODO(gregoryd): direct_dependent_settings should be shared with the |
| 534 | # 64-bit target, but it doesn't work due to a bug in gyp |
| 535 | 'direct_dependent_settings': { |
| 536 | 'include_dirs': [ |
| 537 | '..', |
| 538 | ], |
| 539 | }, |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 540 | 'conditions': [ |
[email protected] | 66700d4 | 2010-03-10 07:46:43 | [diff] [blame] | 541 | [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', { |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 542 | 'conditions': [ |
[email protected] | 3e0a8b8 | 2010-07-02 01:12:18 | [diff] [blame] | 543 | [ 'linux_use_tcmalloc==0', { |
| 544 | 'defines': [ |
| 545 | 'NO_TCMALLOC', |
| 546 | ], |
| 547 | 'direct_dependent_settings': { |
| 548 | 'defines': [ |
| 549 | 'NO_TCMALLOC', |
| 550 | ], |
| 551 | }, |
| 552 | }, |
| 553 | ], |
[email protected] | ef8f5ba | 2010-04-02 14:54:22 | [diff] [blame] | 554 | [ 'linux_use_tcmalloc==1', { |
| 555 | 'dependencies': [ |
| 556 | 'allocator/allocator.gyp:allocator', |
| 557 | ], |
| 558 | }, |
| 559 | ], |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 560 | ], |
| 561 | 'dependencies': [ |
[email protected] | 97a28e72 | 2010-06-11 21:30:37 | [diff] [blame] | 562 | 'symbolize', |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 563 | '../build/util/build_util.gyp:lastchange', |
| 564 | '../build/linux/system.gyp:gtk', |
| 565 | '../build/linux/system.gyp:nss', |
[email protected] | 2d48004e | 2010-02-03 02:11:40 | [diff] [blame] | 566 | 'xdg_mime', |
[email protected] | 48c27f7 | 2010-01-26 06:26:26 | [diff] [blame] | 567 | ], |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 568 | 'export_dependent_settings': [ |
| 569 | '../build/linux/system.gyp:gtk', |
| 570 | ], |
| 571 | },], |
[email protected] | 1d53ce1 | 2010-06-11 05:41:00 | [diff] [blame] | 572 | [ 'OS == "freebsd" or OS == "openbsd"', { |
[email protected] | 97a28e72 | 2010-06-11 21:30:37 | [diff] [blame] | 573 | 'link_settings': { |
| 574 | 'libraries': [ |
| 575 | '-L/usr/local/lib -lexecinfo', |
[email protected] | 1d53ce1 | 2010-06-11 05:41:00 | [diff] [blame] | 576 | ], |
| 577 | }, |
| 578 | }, |
| 579 | ], |
[email protected] | 72d3196 | 2010-06-11 22:45:37 | [diff] [blame] | 580 | [ 'OS == "linux"', { |
| 581 | 'link_settings': { |
| 582 | 'libraries': [ |
| 583 | # We need rt for clock_gettime(). |
| 584 | '-lrt', |
| 585 | # For 'native_library_linux.cc' |
| 586 | '-ldl', |
| 587 | ], |
| 588 | }, |
| 589 | }], |
[email protected] | 1d53ce1 | 2010-06-11 05:41:00 | [diff] [blame] | 590 | [ 'OS == "mac"', { |
[email protected] | 97a28e72 | 2010-06-11 21:30:37 | [diff] [blame] | 591 | 'link_settings': { |
| 592 | 'libraries': [ |
| 593 | '$(SDKROOT)/System/Library/Frameworks/AppKit.framework', |
| 594 | '$(SDKROOT)/System/Library/Frameworks/Carbon.framework', |
| 595 | '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', |
| 596 | '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', |
| 597 | '$(SDKROOT)/System/Library/Frameworks/IOKit.framework', |
| 598 | '$(SDKROOT)/System/Library/Frameworks/Security.framework', |
| 599 | ], |
| 600 | }, |
[email protected] | 1d53ce1 | 2010-06-11 05:41:00 | [diff] [blame] | 601 | },], |
[email protected] | 3dd6f5e | 2010-06-01 20:28:03 | [diff] [blame] | 602 | [ 'OS == "mac" or OS == "win"', { |
[email protected] | abd4aba | 2010-01-27 19:36:22 | [diff] [blame] | 603 | 'dependencies': [ |
| 604 | '../third_party/nss/nss.gyp:nss', |
| 605 | ], |
[email protected] | 3dd6f5e | 2010-06-01 20:28:03 | [diff] [blame] | 606 | },], |
| 607 | [ 'OS != "win"', { |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 608 | 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'], |
[email protected] | abd4aba | 2010-01-27 19:36:22 | [diff] [blame] | 609 | },], |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 610 | ], |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 611 | }, |
| 612 | ], |
| 613 | 'conditions': [ |
| 614 | [ 'OS == "win"', { |
| 615 | 'targets': [ |
| 616 | { |
| 617 | 'target_name': 'base_nacl_win64', |
| 618 | 'type': '<(library)', |
| 619 | 'msvs_guid': 'CEE1F794-DC70-4FED-B7C4-4C12986672FE', |
| 620 | 'variables': { |
| 621 | 'base_target': 1, |
| 622 | }, |
[email protected] | ee85751 | 2010-05-14 08:24:42 | [diff] [blame] | 623 | 'dependencies': [ |
[email protected] | b4a0b9995 | 2010-05-19 08:33:37 | [diff] [blame] | 624 | 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64', |
[email protected] | ee85751 | 2010-05-14 08:24:42 | [diff] [blame] | 625 | ], |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 626 | # TODO(gregoryd): direct_dependent_settings should be shared with the |
| 627 | # 32-bit target, but it doesn't work due to a bug in gyp |
| 628 | 'direct_dependent_settings': { |
| 629 | 'include_dirs': [ |
| 630 | '..', |
| 631 | ], |
| 632 | }, |
| 633 | 'defines': [ |
| 634 | '<@(nacl_win64_defines)', |
| 635 | ], |
| 636 | 'sources': [ |
| 637 | 'i18n/icu_util_nacl_win64.cc', |
| 638 | ], |
| 639 | 'configurations': { |
[email protected] | 8782f707 | 2009-12-22 22:57:37 | [diff] [blame] | 640 | 'Common_Base': { |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 641 | 'msvs_target_platform': 'x64', |
| 642 | }, |
| 643 | }, |
| 644 | }, |
| 645 | ], |
| 646 | }], |
[email protected] | 0c2583a9 | 2010-06-16 00:53:01 | [diff] [blame] | 647 | [ 'OS == "linux" and internal_pdf', { |
[email protected] | 97a28e72 | 2010-06-11 21:30:37 | [diff] [blame] | 648 | 'targets': [ |
| 649 | { |
| 650 | 'target_name': 'base_fpic', |
| 651 | 'type': '<(library)', |
| 652 | 'variables': { |
| 653 | 'base_target': 1, |
| 654 | 'base_extra_target': 1, |
| 655 | }, |
| 656 | 'cflags': [ |
| 657 | '-fPIC', |
| 658 | ], |
[email protected] | 93c4eb0d4 | 2010-06-15 01:54:26 | [diff] [blame] | 659 | # Official builds set -gstabs, which fails when building with -fPIC. |
| 660 | # It's useless on 64 bits anyways because breakpad doesn't work then. |
| 661 | 'cflags!': [ |
| 662 | '-gstabs', |
| 663 | ], |
[email protected] | 97a28e72 | 2010-06-11 21:30:37 | [diff] [blame] | 664 | 'direct_dependent_settings': { |
| 665 | 'include_dirs': [ |
| 666 | '..', |
| 667 | ], |
| 668 | }, |
| 669 | 'conditions': [ |
| 670 | [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd"', { |
| 671 | 'dependencies': [ |
| 672 | '../build/util/build_util.gyp:lastchange', |
| 673 | '../build/linux/system.gyp:gtk', |
| 674 | '../build/linux/system.gyp:nss', |
| 675 | 'xdg_mime', |
| 676 | ], |
| 677 | 'export_dependent_settings': [ |
| 678 | '../build/linux/system.gyp:gtk', |
| 679 | ], |
| 680 | },], |
[email protected] | 72d3196 | 2010-06-11 22:45:37 | [diff] [blame] | 681 | ['OS == "linux"', { |
| 682 | 'link_settings': { |
| 683 | 'libraries': [ |
| 684 | # We need rt for clock_gettime(). |
| 685 | '-lrt', |
| 686 | # For 'native_library_linux.cc' |
| 687 | '-ldl', |
| 688 | ], |
| 689 | }, |
| 690 | }], |
[email protected] | 97a28e72 | 2010-06-11 21:30:37 | [diff] [blame] | 691 | [ 'OS == "mac" or OS == "win"', { |
| 692 | 'dependencies': [ |
| 693 | '../third_party/nss/nss.gyp:nss', |
| 694 | ], |
| 695 | },], |
| 696 | [ 'OS != "win"', { |
| 697 | 'dependencies': ['../third_party/libevent/libevent.gyp:libevent'], |
| 698 | },], |
| 699 | ], |
| 700 | }, |
| 701 | ], |
| 702 | }], |
[email protected] | 93f21e4 | 2010-04-01 00:35:15 | [diff] [blame] | 703 | [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', { |
[email protected] | 48c27f7 | 2010-01-26 06:26:26 | [diff] [blame] | 704 | 'targets': [ |
| 705 | { |
| 706 | 'target_name': 'symbolize', |
| 707 | 'type': '<(library)', |
[email protected] | 076cf93 | 2010-02-16 19:13:36 | [diff] [blame] | 708 | 'variables': { |
| 709 | 'chromium_code': 0, |
| 710 | }, |
[email protected] | 93f21e4 | 2010-04-01 00:35:15 | [diff] [blame] | 711 | 'conditions': [ |
| 712 | [ 'OS == "solaris"', { |
| 713 | 'include_dirs': [ |
| 714 | '/usr/gnu/include', |
| 715 | '/usr/gnu/include/libelf', |
| 716 | ], |
| 717 | },], |
| 718 | ], |
[email protected] | 48c27f7 | 2010-01-26 06:26:26 | [diff] [blame] | 719 | 'cflags': [ |
| 720 | '-Wno-sign-compare', |
| 721 | ], |
[email protected] | 225c8f5 | 2010-02-05 22:23:20 | [diff] [blame] | 722 | 'cflags!': [ |
| 723 | '-Wextra', |
| 724 | ], |
[email protected] | 48c27f7 | 2010-01-26 06:26:26 | [diff] [blame] | 725 | 'sources': [ |
| 726 | 'third_party/symbolize/symbolize.cc', |
| 727 | 'third_party/symbolize/demangle.cc', |
| 728 | ], |
| 729 | }, |
[email protected] | 2d48004e | 2010-02-03 02:11:40 | [diff] [blame] | 730 | { |
| 731 | 'target_name': 'xdg_mime', |
| 732 | 'type': '<(library)', |
[email protected] | 076cf93 | 2010-02-16 19:13:36 | [diff] [blame] | 733 | 'variables': { |
| 734 | 'chromium_code': 0, |
| 735 | }, |
[email protected] | 225c8f5 | 2010-02-05 22:23:20 | [diff] [blame] | 736 | 'cflags!': [ |
| 737 | '-Wextra', |
| 738 | ], |
[email protected] | 2d48004e | 2010-02-03 02:11:40 | [diff] [blame] | 739 | '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 | }, |
[email protected] | 48c27f7 | 2010-01-26 06:26:26 | [diff] [blame] | 758 | ], |
| 759 | }], |
[email protected] | ef4fa407 | 2009-12-04 22:46:50 | [diff] [blame] | 760 | ], |
| 761 | } |