Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- |
michael@0 | 2 | # vim: set filetype=python: |
michael@0 | 3 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 6 | |
michael@0 | 7 | os_win = 0 |
michael@0 | 8 | os_posix = 0 |
michael@0 | 9 | os_macosx = 0 |
michael@0 | 10 | os_dragonfly = 0 |
michael@0 | 11 | os_freebsd = 0 |
michael@0 | 12 | os_netbsd = 0 |
michael@0 | 13 | os_openbsd = 0 |
michael@0 | 14 | os_bsd = 0 |
michael@0 | 15 | os_linux = 0 |
michael@0 | 16 | |
michael@0 | 17 | if CONFIG['OS_ARCH'] == 'WINNT': |
michael@0 | 18 | os_win = 1 |
michael@0 | 19 | else: |
michael@0 | 20 | os_posix = 1 |
michael@0 | 21 | if CONFIG['OS_ARCH'] == 'Darwin': |
michael@0 | 22 | os_macosx = 1 |
michael@0 | 23 | elif CONFIG['OS_ARCH'] == 'DragonFly': |
michael@0 | 24 | os_dragonfly = 1 |
michael@0 | 25 | os_bsd = 1 |
michael@0 | 26 | elif CONFIG['OS_ARCH'] in ['FreeBSD', 'GNU_kFreeBSD']: |
michael@0 | 27 | os_freebsd = 1 |
michael@0 | 28 | os_bsd = 1 |
michael@0 | 29 | elif CONFIG['OS_ARCH'] == 'NetBSD': |
michael@0 | 30 | os_netbsd = 1 |
michael@0 | 31 | os_bsd = 1 |
michael@0 | 32 | elif CONFIG['OS_ARCH'] == 'OpenBSD': |
michael@0 | 33 | os_openbsd = 1 |
michael@0 | 34 | os_bsd = 1 |
michael@0 | 35 | else: |
michael@0 | 36 | os_linux = 1 |
michael@0 | 37 | |
michael@0 | 38 | UNIFIED_SOURCES += [ |
michael@0 | 39 | 'src/base/at_exit.cc', |
michael@0 | 40 | 'src/base/base_paths.cc', |
michael@0 | 41 | 'src/base/base_switches.cc', |
michael@0 | 42 | 'src/base/command_line.cc', |
michael@0 | 43 | 'src/base/debug_util.cc', |
michael@0 | 44 | 'src/base/file_path.cc', |
michael@0 | 45 | 'src/base/file_util.cc', |
michael@0 | 46 | 'src/base/histogram.cc', |
michael@0 | 47 | 'src/base/lazy_instance.cc', |
michael@0 | 48 | 'src/base/lock.cc', |
michael@0 | 49 | 'src/base/logging.cc', |
michael@0 | 50 | 'src/base/memory_debug.cc', |
michael@0 | 51 | 'src/base/message_loop.cc', |
michael@0 | 52 | 'src/base/message_pump_default.cc', |
michael@0 | 53 | 'src/base/non_thread_safe.cc', |
michael@0 | 54 | 'src/base/path_service.cc', |
michael@0 | 55 | 'src/base/pickle.cc', |
michael@0 | 56 | 'src/base/rand_util.cc', |
michael@0 | 57 | 'src/base/ref_counted.cc', |
michael@0 | 58 | 'src/base/revocable_store.cc', |
michael@0 | 59 | 'src/base/scoped_temp_dir.cc', |
michael@0 | 60 | 'src/base/simple_thread.cc', |
michael@0 | 61 | 'src/base/stats_table.cc', |
michael@0 | 62 | 'src/base/string_piece.cc', |
michael@0 | 63 | 'src/base/string_util.cc', |
michael@0 | 64 | 'src/base/system_monitor.cc', |
michael@0 | 65 | 'src/base/thread.cc', |
michael@0 | 66 | 'src/base/thread_collision_warner.cc', |
michael@0 | 67 | 'src/base/time.cc', |
michael@0 | 68 | 'src/base/timer.cc', |
michael@0 | 69 | 'src/base/trace_event.cc', |
michael@0 | 70 | 'src/base/tracked.cc', |
michael@0 | 71 | 'src/base/tracked_objects.cc', |
michael@0 | 72 | 'src/chrome/common/child_process.cc', |
michael@0 | 73 | 'src/chrome/common/child_process_host.cc', |
michael@0 | 74 | 'src/chrome/common/child_process_info.cc', |
michael@0 | 75 | 'src/chrome/common/child_thread.cc', |
michael@0 | 76 | 'src/chrome/common/chrome_switches.cc', |
michael@0 | 77 | 'src/chrome/common/debug_flags.cc', |
michael@0 | 78 | 'src/chrome/common/env_vars.cc', |
michael@0 | 79 | 'src/chrome/common/ipc_channel_proxy.cc', |
michael@0 | 80 | 'src/chrome/common/ipc_logging.cc', |
michael@0 | 81 | 'src/chrome/common/ipc_message.cc', |
michael@0 | 82 | 'src/chrome/common/ipc_sync_channel.cc', |
michael@0 | 83 | 'src/chrome/common/ipc_sync_message.cc', |
michael@0 | 84 | 'src/chrome/common/message_router.cc', |
michael@0 | 85 | 'src/chrome/common/notification_service.cc', |
michael@0 | 86 | 'src/chrome/common/task_queue.cc', |
michael@0 | 87 | ] |
michael@0 | 88 | |
michael@0 | 89 | if os_win: |
michael@0 | 90 | SOURCES += [ |
michael@0 | 91 | 'src/base/base_paths_win.cc', |
michael@0 | 92 | 'src/base/condition_variable_win.cc', |
michael@0 | 93 | 'src/base/cpu.cc', |
michael@0 | 94 | 'src/base/debug_util_win.cc', |
michael@0 | 95 | 'src/base/event_recorder.cc', |
michael@0 | 96 | 'src/base/file_util_win.cc', |
michael@0 | 97 | 'src/base/idle_timer.cc', |
michael@0 | 98 | 'src/base/lock_impl_win.cc', |
michael@0 | 99 | 'src/base/message_pump_win.cc', |
michael@0 | 100 | 'src/base/object_watcher.cc', |
michael@0 | 101 | 'src/base/platform_file_win.cc', |
michael@0 | 102 | 'src/base/platform_thread_win.cc', |
michael@0 | 103 | 'src/base/process_util_win.cc', |
michael@0 | 104 | 'src/base/process_win.cc', |
michael@0 | 105 | 'src/base/rand_util_win.cc', |
michael@0 | 106 | 'src/base/registry.cc', |
michael@0 | 107 | 'src/base/shared_memory_win.cc', |
michael@0 | 108 | 'src/base/sys_info_win.cc', |
michael@0 | 109 | 'src/base/sys_string_conversions_win.cc', |
michael@0 | 110 | 'src/base/system_monitor_win.cc', |
michael@0 | 111 | 'src/base/thread_local_storage_win.cc', |
michael@0 | 112 | 'src/base/thread_local_win.cc', |
michael@0 | 113 | 'src/base/time_win.cc', |
michael@0 | 114 | 'src/base/waitable_event_watcher_win.cc', |
michael@0 | 115 | 'src/base/waitable_event_win.cc', |
michael@0 | 116 | 'src/base/win_util.cc', |
michael@0 | 117 | 'src/chrome/common/ipc_channel_win.cc', |
michael@0 | 118 | 'src/chrome/common/process_watcher_win.cc', |
michael@0 | 119 | 'src/chrome/common/transport_dib_win.cc', |
michael@0 | 120 | ] |
michael@0 | 121 | elif not CONFIG['MOZ_NATIVE_LIBEVENT']: |
michael@0 | 122 | SOURCES += [ |
michael@0 | 123 | 'src/third_party/libevent/buffer.c', |
michael@0 | 124 | 'src/third_party/libevent/bufferevent.c', |
michael@0 | 125 | 'src/third_party/libevent/bufferevent_ratelim.c', |
michael@0 | 126 | 'src/third_party/libevent/bufferevent_sock.c', |
michael@0 | 127 | 'src/third_party/libevent/evdns.c', |
michael@0 | 128 | 'src/third_party/libevent/event.c', |
michael@0 | 129 | 'src/third_party/libevent/event_tagging.c', |
michael@0 | 130 | 'src/third_party/libevent/evmap.c', |
michael@0 | 131 | 'src/third_party/libevent/evrpc.c', |
michael@0 | 132 | 'src/third_party/libevent/evthread.c', |
michael@0 | 133 | 'src/third_party/libevent/evthread_pthread.c', |
michael@0 | 134 | 'src/third_party/libevent/evutil.c', |
michael@0 | 135 | 'src/third_party/libevent/evutil_rand.c', |
michael@0 | 136 | 'src/third_party/libevent/http.c', |
michael@0 | 137 | 'src/third_party/libevent/listener.c', |
michael@0 | 138 | 'src/third_party/libevent/log.c', |
michael@0 | 139 | 'src/third_party/libevent/poll.c', |
michael@0 | 140 | 'src/third_party/libevent/select.c', |
michael@0 | 141 | 'src/third_party/libevent/signal.c', |
michael@0 | 142 | 'src/third_party/libevent/strlcpy.c', |
michael@0 | 143 | ] |
michael@0 | 144 | DEFINES['HAVE_CONFIG_H'] = True |
michael@0 | 145 | LOCAL_INCLUDES += [ |
michael@0 | 146 | 'src/third_party/libevent', |
michael@0 | 147 | 'src/third_party/libevent/include', |
michael@0 | 148 | ] |
michael@0 | 149 | |
michael@0 | 150 | if os_posix: |
michael@0 | 151 | SOURCES += [ |
michael@0 | 152 | 'src/base/condition_variable_posix.cc', |
michael@0 | 153 | 'src/base/debug_util_posix.cc', |
michael@0 | 154 | 'src/base/event_recorder_stubs.cc', |
michael@0 | 155 | 'src/base/file_descriptor_shuffle.cc', |
michael@0 | 156 | 'src/base/file_util_posix.cc', |
michael@0 | 157 | 'src/base/lock_impl_posix.cc', |
michael@0 | 158 | 'src/base/message_pump_libevent.cc', |
michael@0 | 159 | 'src/base/platform_file_posix.cc', |
michael@0 | 160 | 'src/base/platform_thread_posix.cc', |
michael@0 | 161 | 'src/base/process_posix.cc', |
michael@0 | 162 | 'src/base/process_util_posix.cc', |
michael@0 | 163 | 'src/base/rand_util_posix.cc', |
michael@0 | 164 | 'src/base/shared_memory_posix.cc', |
michael@0 | 165 | 'src/base/string16.cc', |
michael@0 | 166 | 'src/base/sys_info_posix.cc', |
michael@0 | 167 | 'src/base/system_monitor_posix.cc', |
michael@0 | 168 | 'src/base/thread_local_posix.cc', |
michael@0 | 169 | 'src/base/thread_local_storage_posix.cc', |
michael@0 | 170 | 'src/base/waitable_event_posix.cc', |
michael@0 | 171 | 'src/base/waitable_event_watcher_posix.cc', |
michael@0 | 172 | 'src/chrome/common/file_descriptor_set_posix.cc', |
michael@0 | 173 | 'src/chrome/common/ipc_channel_posix.cc', |
michael@0 | 174 | 'src/chrome/common/process_watcher_posix_sigchld.cc', |
michael@0 | 175 | ] |
michael@0 | 176 | if CONFIG['OS_TARGET'] == 'Android': |
michael@0 | 177 | SOURCES += [ |
michael@0 | 178 | 'src/base/message_pump_android.cc', |
michael@0 | 179 | ] |
michael@0 | 180 | DEFINES['ANDROID'] = True |
michael@0 | 181 | DEFINES['_POSIX_MONOTONIC_CLOCK'] = 0 |
michael@0 | 182 | |
michael@0 | 183 | if os_macosx: |
michael@0 | 184 | UNIFIED_SOURCES += [ |
michael@0 | 185 | 'src/base/debug_util_mac.cc', |
michael@0 | 186 | 'src/base/hmac_mac.cc', |
michael@0 | 187 | 'src/base/idle_timer.cc', |
michael@0 | 188 | 'src/base/sys_info_mac.cc', |
michael@0 | 189 | 'src/base/time_mac.cc', |
michael@0 | 190 | 'src/chrome/common/mach_message_source_mac.cc', |
michael@0 | 191 | 'src/chrome/common/transport_dib_mac.cc', |
michael@0 | 192 | ] |
michael@0 | 193 | SOURCES += [ |
michael@0 | 194 | 'src/base/base_paths_mac.mm', |
michael@0 | 195 | 'src/base/chrome_application_mac.mm', |
michael@0 | 196 | 'src/base/file_util_mac.mm', |
michael@0 | 197 | 'src/base/mac_util.mm', |
michael@0 | 198 | 'src/base/message_pump_mac.mm', |
michael@0 | 199 | 'src/base/platform_thread_mac.mm', |
michael@0 | 200 | 'src/base/process_util_mac.mm', |
michael@0 | 201 | 'src/base/scoped_nsautorelease_pool.mm', |
michael@0 | 202 | 'src/base/sys_string_conversions_mac.mm', |
michael@0 | 203 | 'src/base/worker_pool_mac.mm', |
michael@0 | 204 | 'src/chrome/common/mach_ipc_mac.mm', |
michael@0 | 205 | ] |
michael@0 | 206 | if not CONFIG['MOZ_NATIVE_LIBEVENT']: |
michael@0 | 207 | UNIFIED_SOURCES += [ |
michael@0 | 208 | 'src/third_party/libevent/kqueue.c', |
michael@0 | 209 | ] |
michael@0 | 210 | LOCAL_INCLUDES += ['src/third_party/libevent/mac'] |
michael@0 | 211 | |
michael@0 | 212 | if os_linux: |
michael@0 | 213 | SOURCES += [ |
michael@0 | 214 | 'src/base/atomicops_internals_x86_gcc.cc', |
michael@0 | 215 | 'src/base/base_paths_linux.cc', |
michael@0 | 216 | 'src/base/idle_timer_none.cc', |
michael@0 | 217 | 'src/base/process_util_linux.cc', |
michael@0 | 218 | 'src/base/time_posix.cc', |
michael@0 | 219 | ] |
michael@0 | 220 | if CONFIG['MOZ_WIDGET_GTK']: |
michael@0 | 221 | SOURCES += [ |
michael@0 | 222 | 'src/base/message_pump_glib.cc', |
michael@0 | 223 | ] |
michael@0 | 224 | if CONFIG['MOZ_ENABLE_QT']: |
michael@0 | 225 | SOURCES += [ |
michael@0 | 226 | 'src/base/message_pump_qt.cc', |
michael@0 | 227 | ] |
michael@0 | 228 | GENERATED_SOURCES += [ |
michael@0 | 229 | 'moc_message_pump_qt.cc', |
michael@0 | 230 | ] |
michael@0 | 231 | if not CONFIG['MOZ_NATIVE_LIBEVENT']: |
michael@0 | 232 | if CONFIG['OS_TARGET'] != 'Android': |
michael@0 | 233 | SOURCES += [ |
michael@0 | 234 | 'src/third_party/libevent/epoll_sub.c', |
michael@0 | 235 | ] |
michael@0 | 236 | SOURCES += [ |
michael@0 | 237 | 'src/third_party/libevent/epoll.c', |
michael@0 | 238 | ] |
michael@0 | 239 | if CONFIG['OS_TARGET'] == 'Android': |
michael@0 | 240 | LOCAL_INCLUDES += ['src/third_party/libevent/android'] |
michael@0 | 241 | else: |
michael@0 | 242 | LOCAL_INCLUDES += ['src/third_party/libevent/linux'] |
michael@0 | 243 | |
michael@0 | 244 | if os_bsd: |
michael@0 | 245 | SOURCES += [ |
michael@0 | 246 | 'src/base/atomicops_internals_x86_gcc.cc', |
michael@0 | 247 | 'src/base/time_posix.cc', |
michael@0 | 248 | ] |
michael@0 | 249 | if CONFIG['OS_ARCH'] == 'GNU_kFreeBSD': |
michael@0 | 250 | SOURCES += [ |
michael@0 | 251 | 'src/base/process_util_linux.cc' |
michael@0 | 252 | ] |
michael@0 | 253 | else: |
michael@0 | 254 | SOURCES += [ |
michael@0 | 255 | 'src/base/process_util_bsd.cc' |
michael@0 | 256 | ] |
michael@0 | 257 | if CONFIG['MOZ_WIDGET_GTK']: |
michael@0 | 258 | SOURCES += [ |
michael@0 | 259 | 'src/base/message_pump_glib.cc', |
michael@0 | 260 | ] |
michael@0 | 261 | if CONFIG['MOZ_ENABLE_QT']: |
michael@0 | 262 | SOURCES += [ |
michael@0 | 263 | 'src/base/message_pump_qt.cc', |
michael@0 | 264 | ] |
michael@0 | 265 | GENERATED_SOURCES += [ |
michael@0 | 266 | 'moc_message_pump_qt.cc', |
michael@0 | 267 | ] |
michael@0 | 268 | if not CONFIG['MOZ_NATIVE_LIBEVENT']: |
michael@0 | 269 | SOURCES += [ |
michael@0 | 270 | 'src/third_party/libevent/kqueue.c', |
michael@0 | 271 | ] |
michael@0 | 272 | LOCAL_INCLUDES += ['src/third_party/libevent/bsd'] |
michael@0 | 273 | |
michael@0 | 274 | if CONFIG['_MSC_VER']: |
michael@0 | 275 | SOURCES += [ |
michael@0 | 276 | 'src/base/debug_on_start.cc', |
michael@0 | 277 | ] |
michael@0 | 278 | |
michael@0 | 279 | ost = CONFIG['OS_TEST'] |
michael@0 | 280 | if ost.find('86') == -1 and ost.find('arm') == -1 and ost.find('mips') == -1: |
michael@0 | 281 | SOURCES += [ |
michael@0 | 282 | 'src/base/atomicops_internals_mutex.cc', |
michael@0 | 283 | ] |
michael@0 | 284 | |
michael@0 | 285 | include('/ipc/chromium/chromium-config.mozbuild') |
michael@0 | 286 | |
michael@0 | 287 | FINAL_LIBRARY = 'xul' |