ipc/chromium/moz.build

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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

mercurial