ipc/chromium/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ipc/chromium/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,287 @@
     1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
     1.5 +# vim: set filetype=python:
     1.6 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.9 +
    1.10 +os_win = 0
    1.11 +os_posix = 0
    1.12 +os_macosx = 0
    1.13 +os_dragonfly = 0
    1.14 +os_freebsd = 0
    1.15 +os_netbsd = 0
    1.16 +os_openbsd = 0
    1.17 +os_bsd = 0
    1.18 +os_linux = 0
    1.19 +
    1.20 +if CONFIG['OS_ARCH'] == 'WINNT':
    1.21 +    os_win = 1
    1.22 +else:
    1.23 +    os_posix = 1
    1.24 +    if CONFIG['OS_ARCH'] == 'Darwin':
    1.25 +        os_macosx = 1
    1.26 +    elif CONFIG['OS_ARCH'] == 'DragonFly':
    1.27 +        os_dragonfly = 1
    1.28 +        os_bsd = 1
    1.29 +    elif CONFIG['OS_ARCH'] in ['FreeBSD', 'GNU_kFreeBSD']:
    1.30 +        os_freebsd = 1
    1.31 +        os_bsd = 1
    1.32 +    elif CONFIG['OS_ARCH'] == 'NetBSD':
    1.33 +        os_netbsd = 1
    1.34 +        os_bsd = 1
    1.35 +    elif CONFIG['OS_ARCH'] == 'OpenBSD':
    1.36 +        os_openbsd = 1
    1.37 +        os_bsd = 1
    1.38 +    else:
    1.39 +        os_linux = 1
    1.40 +
    1.41 +UNIFIED_SOURCES += [
    1.42 +    'src/base/at_exit.cc',
    1.43 +    'src/base/base_paths.cc',
    1.44 +    'src/base/base_switches.cc',
    1.45 +    'src/base/command_line.cc',
    1.46 +    'src/base/debug_util.cc',
    1.47 +    'src/base/file_path.cc',
    1.48 +    'src/base/file_util.cc',
    1.49 +    'src/base/histogram.cc',
    1.50 +    'src/base/lazy_instance.cc',
    1.51 +    'src/base/lock.cc',
    1.52 +    'src/base/logging.cc',
    1.53 +    'src/base/memory_debug.cc',
    1.54 +    'src/base/message_loop.cc',
    1.55 +    'src/base/message_pump_default.cc',
    1.56 +    'src/base/non_thread_safe.cc',
    1.57 +    'src/base/path_service.cc',
    1.58 +    'src/base/pickle.cc',
    1.59 +    'src/base/rand_util.cc',
    1.60 +    'src/base/ref_counted.cc',
    1.61 +    'src/base/revocable_store.cc',
    1.62 +    'src/base/scoped_temp_dir.cc',
    1.63 +    'src/base/simple_thread.cc',
    1.64 +    'src/base/stats_table.cc',
    1.65 +    'src/base/string_piece.cc',
    1.66 +    'src/base/string_util.cc',
    1.67 +    'src/base/system_monitor.cc',
    1.68 +    'src/base/thread.cc',
    1.69 +    'src/base/thread_collision_warner.cc',
    1.70 +    'src/base/time.cc',
    1.71 +    'src/base/timer.cc',
    1.72 +    'src/base/trace_event.cc',
    1.73 +    'src/base/tracked.cc',
    1.74 +    'src/base/tracked_objects.cc',
    1.75 +    'src/chrome/common/child_process.cc',
    1.76 +    'src/chrome/common/child_process_host.cc',
    1.77 +    'src/chrome/common/child_process_info.cc',
    1.78 +    'src/chrome/common/child_thread.cc',
    1.79 +    'src/chrome/common/chrome_switches.cc',
    1.80 +    'src/chrome/common/debug_flags.cc',
    1.81 +    'src/chrome/common/env_vars.cc',
    1.82 +    'src/chrome/common/ipc_channel_proxy.cc',
    1.83 +    'src/chrome/common/ipc_logging.cc',
    1.84 +    'src/chrome/common/ipc_message.cc',
    1.85 +    'src/chrome/common/ipc_sync_channel.cc',
    1.86 +    'src/chrome/common/ipc_sync_message.cc',
    1.87 +    'src/chrome/common/message_router.cc',
    1.88 +    'src/chrome/common/notification_service.cc',
    1.89 +    'src/chrome/common/task_queue.cc',
    1.90 +]
    1.91 +
    1.92 +if os_win:
    1.93 +    SOURCES += [
    1.94 +        'src/base/base_paths_win.cc',
    1.95 +        'src/base/condition_variable_win.cc',
    1.96 +        'src/base/cpu.cc',
    1.97 +        'src/base/debug_util_win.cc',
    1.98 +        'src/base/event_recorder.cc',
    1.99 +        'src/base/file_util_win.cc',
   1.100 +        'src/base/idle_timer.cc',
   1.101 +        'src/base/lock_impl_win.cc',
   1.102 +        'src/base/message_pump_win.cc',
   1.103 +        'src/base/object_watcher.cc',
   1.104 +        'src/base/platform_file_win.cc',
   1.105 +        'src/base/platform_thread_win.cc',
   1.106 +        'src/base/process_util_win.cc',
   1.107 +        'src/base/process_win.cc',
   1.108 +        'src/base/rand_util_win.cc',
   1.109 +        'src/base/registry.cc',
   1.110 +        'src/base/shared_memory_win.cc',
   1.111 +        'src/base/sys_info_win.cc',
   1.112 +        'src/base/sys_string_conversions_win.cc',
   1.113 +        'src/base/system_monitor_win.cc',
   1.114 +        'src/base/thread_local_storage_win.cc',
   1.115 +        'src/base/thread_local_win.cc',
   1.116 +        'src/base/time_win.cc',
   1.117 +        'src/base/waitable_event_watcher_win.cc',
   1.118 +        'src/base/waitable_event_win.cc',
   1.119 +        'src/base/win_util.cc',
   1.120 +        'src/chrome/common/ipc_channel_win.cc',
   1.121 +        'src/chrome/common/process_watcher_win.cc',
   1.122 +        'src/chrome/common/transport_dib_win.cc',
   1.123 +    ]
   1.124 +elif not CONFIG['MOZ_NATIVE_LIBEVENT']:
   1.125 +    SOURCES += [
   1.126 +        'src/third_party/libevent/buffer.c',
   1.127 +        'src/third_party/libevent/bufferevent.c',
   1.128 +        'src/third_party/libevent/bufferevent_ratelim.c',
   1.129 +        'src/third_party/libevent/bufferevent_sock.c',
   1.130 +        'src/third_party/libevent/evdns.c',
   1.131 +        'src/third_party/libevent/event.c',
   1.132 +        'src/third_party/libevent/event_tagging.c',
   1.133 +        'src/third_party/libevent/evmap.c',
   1.134 +        'src/third_party/libevent/evrpc.c',
   1.135 +        'src/third_party/libevent/evthread.c',
   1.136 +        'src/third_party/libevent/evthread_pthread.c',
   1.137 +        'src/third_party/libevent/evutil.c',
   1.138 +        'src/third_party/libevent/evutil_rand.c',
   1.139 +        'src/third_party/libevent/http.c',
   1.140 +        'src/third_party/libevent/listener.c',
   1.141 +        'src/third_party/libevent/log.c',
   1.142 +        'src/third_party/libevent/poll.c',
   1.143 +        'src/third_party/libevent/select.c',
   1.144 +        'src/third_party/libevent/signal.c',
   1.145 +        'src/third_party/libevent/strlcpy.c',
   1.146 +    ]
   1.147 +    DEFINES['HAVE_CONFIG_H'] = True
   1.148 +    LOCAL_INCLUDES += [
   1.149 +        'src/third_party/libevent',
   1.150 +        'src/third_party/libevent/include',
   1.151 +    ]
   1.152 +
   1.153 +if os_posix:
   1.154 +    SOURCES += [
   1.155 +        'src/base/condition_variable_posix.cc',
   1.156 +        'src/base/debug_util_posix.cc',
   1.157 +        'src/base/event_recorder_stubs.cc',
   1.158 +        'src/base/file_descriptor_shuffle.cc',
   1.159 +        'src/base/file_util_posix.cc',
   1.160 +        'src/base/lock_impl_posix.cc',
   1.161 +        'src/base/message_pump_libevent.cc',
   1.162 +        'src/base/platform_file_posix.cc',
   1.163 +        'src/base/platform_thread_posix.cc',
   1.164 +        'src/base/process_posix.cc',
   1.165 +        'src/base/process_util_posix.cc',
   1.166 +        'src/base/rand_util_posix.cc',
   1.167 +        'src/base/shared_memory_posix.cc',
   1.168 +        'src/base/string16.cc',
   1.169 +        'src/base/sys_info_posix.cc',
   1.170 +        'src/base/system_monitor_posix.cc',
   1.171 +        'src/base/thread_local_posix.cc',
   1.172 +        'src/base/thread_local_storage_posix.cc',
   1.173 +        'src/base/waitable_event_posix.cc',
   1.174 +        'src/base/waitable_event_watcher_posix.cc',
   1.175 +        'src/chrome/common/file_descriptor_set_posix.cc',
   1.176 +        'src/chrome/common/ipc_channel_posix.cc',
   1.177 +        'src/chrome/common/process_watcher_posix_sigchld.cc',
   1.178 +    ]
   1.179 +    if CONFIG['OS_TARGET'] == 'Android':
   1.180 +        SOURCES += [
   1.181 +            'src/base/message_pump_android.cc',
   1.182 +        ]
   1.183 +        DEFINES['ANDROID'] = True
   1.184 +        DEFINES['_POSIX_MONOTONIC_CLOCK'] = 0
   1.185 +
   1.186 +if os_macosx:
   1.187 +    UNIFIED_SOURCES += [
   1.188 +        'src/base/debug_util_mac.cc',
   1.189 +        'src/base/hmac_mac.cc',
   1.190 +        'src/base/idle_timer.cc',
   1.191 +        'src/base/sys_info_mac.cc',
   1.192 +        'src/base/time_mac.cc',
   1.193 +        'src/chrome/common/mach_message_source_mac.cc',
   1.194 +        'src/chrome/common/transport_dib_mac.cc',
   1.195 +    ]
   1.196 +    SOURCES += [
   1.197 +        'src/base/base_paths_mac.mm',
   1.198 +        'src/base/chrome_application_mac.mm',
   1.199 +        'src/base/file_util_mac.mm',
   1.200 +        'src/base/mac_util.mm',
   1.201 +        'src/base/message_pump_mac.mm',
   1.202 +        'src/base/platform_thread_mac.mm',
   1.203 +        'src/base/process_util_mac.mm',
   1.204 +        'src/base/scoped_nsautorelease_pool.mm',
   1.205 +        'src/base/sys_string_conversions_mac.mm',
   1.206 +        'src/base/worker_pool_mac.mm',
   1.207 +        'src/chrome/common/mach_ipc_mac.mm',
   1.208 +    ]
   1.209 +    if not CONFIG['MOZ_NATIVE_LIBEVENT']:
   1.210 +        UNIFIED_SOURCES += [
   1.211 +            'src/third_party/libevent/kqueue.c',
   1.212 +        ]
   1.213 +        LOCAL_INCLUDES += ['src/third_party/libevent/mac']
   1.214 +
   1.215 +if os_linux:
   1.216 +    SOURCES += [
   1.217 +        'src/base/atomicops_internals_x86_gcc.cc',
   1.218 +        'src/base/base_paths_linux.cc',
   1.219 +        'src/base/idle_timer_none.cc',
   1.220 +        'src/base/process_util_linux.cc',
   1.221 +        'src/base/time_posix.cc',
   1.222 +    ]
   1.223 +    if CONFIG['MOZ_WIDGET_GTK']:
   1.224 +        SOURCES += [
   1.225 +            'src/base/message_pump_glib.cc',
   1.226 +        ]
   1.227 +    if CONFIG['MOZ_ENABLE_QT']:
   1.228 +        SOURCES += [
   1.229 +            'src/base/message_pump_qt.cc',
   1.230 +        ]
   1.231 +        GENERATED_SOURCES += [
   1.232 +            'moc_message_pump_qt.cc',
   1.233 +        ]
   1.234 +    if not CONFIG['MOZ_NATIVE_LIBEVENT']:
   1.235 +        if CONFIG['OS_TARGET'] != 'Android':
   1.236 +            SOURCES += [
   1.237 +                'src/third_party/libevent/epoll_sub.c',
   1.238 +            ]
   1.239 +        SOURCES += [
   1.240 +            'src/third_party/libevent/epoll.c',
   1.241 +        ]
   1.242 +        if CONFIG['OS_TARGET'] == 'Android':
   1.243 +            LOCAL_INCLUDES += ['src/third_party/libevent/android']
   1.244 +        else:
   1.245 +            LOCAL_INCLUDES += ['src/third_party/libevent/linux']
   1.246 +
   1.247 +if os_bsd:
   1.248 +    SOURCES += [
   1.249 +        'src/base/atomicops_internals_x86_gcc.cc',
   1.250 +        'src/base/time_posix.cc',
   1.251 +    ]
   1.252 +    if CONFIG['OS_ARCH'] == 'GNU_kFreeBSD':
   1.253 +        SOURCES += [
   1.254 +            'src/base/process_util_linux.cc'
   1.255 +        ]
   1.256 +    else:
   1.257 +        SOURCES += [
   1.258 +            'src/base/process_util_bsd.cc'
   1.259 +        ]
   1.260 +    if CONFIG['MOZ_WIDGET_GTK']:
   1.261 +        SOURCES += [
   1.262 +            'src/base/message_pump_glib.cc',
   1.263 +        ]
   1.264 +    if CONFIG['MOZ_ENABLE_QT']:
   1.265 +        SOURCES += [
   1.266 +            'src/base/message_pump_qt.cc',
   1.267 +        ]
   1.268 +        GENERATED_SOURCES += [
   1.269 +            'moc_message_pump_qt.cc',
   1.270 +        ]
   1.271 +    if not CONFIG['MOZ_NATIVE_LIBEVENT']:
   1.272 +        SOURCES += [
   1.273 +            'src/third_party/libevent/kqueue.c',
   1.274 +        ]
   1.275 +        LOCAL_INCLUDES += ['src/third_party/libevent/bsd']
   1.276 +
   1.277 +if CONFIG['_MSC_VER']:
   1.278 +    SOURCES += [
   1.279 +        'src/base/debug_on_start.cc',
   1.280 +    ]
   1.281 +
   1.282 +ost = CONFIG['OS_TEST']
   1.283 +if ost.find('86') == -1 and ost.find('arm') == -1 and ost.find('mips') == -1:
   1.284 +    SOURCES += [
   1.285 +        'src/base/atomicops_internals_mutex.cc',
   1.286 +    ]
   1.287 +
   1.288 +include('/ipc/chromium/chromium-config.mozbuild')
   1.289 +
   1.290 +FINAL_LIBRARY = 'xul'

mercurial