netwerk/sctp/src/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.

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 EXPORTS.mozilla.net += [
michael@0 8 'usrsctp.h',
michael@0 9 ]
michael@0 10
michael@0 11 SOURCES += [
michael@0 12 'netinet/sctp_asconf.c',
michael@0 13 'netinet/sctp_auth.c',
michael@0 14 'netinet/sctp_bsd_addr.c',
michael@0 15 'netinet/sctp_callout.c',
michael@0 16 'netinet/sctp_cc_functions.c',
michael@0 17 'netinet/sctp_crc32.c',
michael@0 18 'netinet/sctp_indata.c',
michael@0 19 'netinet/sctp_input.c',
michael@0 20 'netinet/sctp_output.c',
michael@0 21 'netinet/sctp_pcb.c',
michael@0 22 'netinet/sctp_peeloff.c',
michael@0 23 'netinet/sctp_sha1.c',
michael@0 24 'netinet/sctp_ss_functions.c',
michael@0 25 'netinet/sctp_sysctl.c',
michael@0 26 'netinet/sctp_timer.c',
michael@0 27 'netinet/sctp_userspace.c',
michael@0 28 'netinet/sctp_usrreq.c',
michael@0 29 'netinet/sctputil.c',
michael@0 30 'netinet6/sctp6_usrreq.c',
michael@0 31 'user_environment.c',
michael@0 32 'user_mbuf.c',
michael@0 33 'user_recv_thread.c',
michael@0 34 'user_socket.c',
michael@0 35 ]
michael@0 36
michael@0 37 if CONFIG['OS_TARGET'] == 'Android':
michael@0 38 SOURCES += [
michael@0 39 'ifaddrs_android.cpp',
michael@0 40 ]
michael@0 41
michael@0 42 LIBRARY_NAME = 'nksctp_s'
michael@0 43
michael@0 44 include('/ipc/chromium/chromium-config.mozbuild')
michael@0 45
michael@0 46 FINAL_LIBRARY = 'necko'
michael@0 47
michael@0 48 LOCAL_INCLUDES += [
michael@0 49 '../../base/src',
michael@0 50 '/content/base/src',
michael@0 51 ]
michael@0 52
michael@0 53 for var in ('SCTP_SIMPLE_ALLOCATOR',
michael@0 54 'SCTP_PROCESS_LEVEL_LOCKS', '__Userspace__', 'INET',
michael@0 55 'CALLBACK_API', 'SCTP_DEBUG'):
michael@0 56 DEFINES[var] = 1
michael@0 57
michael@0 58 # Android NDK r5c, used on the builders at the time of this writing, doesn't
michael@0 59 # have the headers we need for IPv6
michael@0 60 if CONFIG['OS_TARGET'] != 'Android':
michael@0 61 DEFINES['INET6'] = 1
michael@0 62
michael@0 63 if CONFIG['OS_TARGET'] == 'WINNT':
michael@0 64 DEFINES['__Userspace_os_Windows'] = 1
michael@0 65 DEFINES['_LIB'] = 1
michael@0 66 elif CONFIG['OS_TARGET'] == 'Android':
michael@0 67 DEFINES['__Userspace_os_Linux'] = 1
michael@0 68 else:
michael@0 69 DEFINES['__Userspace_os_%s' % CONFIG['OS_TARGET']] = 1
michael@0 70
michael@0 71 if CONFIG['OS_TARGET'] == 'Darwin':
michael@0 72 DEFINES['__APPLE_USE_RFC_2292'] = 1
michael@0 73 DEFINES['__APPLE__'] = False
michael@0 74
michael@0 75 if CONFIG['OS_TARGET'] in ('Linux', 'Android'):
michael@0 76 # to make sure that in6_pktinfo gets defined on all distros
michael@0 77 DEFINES['_GNU_SOURCE'] = True
michael@0 78
michael@0 79 if CONFIG['OS_TARGET'] == 'FreeBSD':
michael@0 80 DEFINES['__FreeBSD__'] = False
michael@0 81
michael@0 82 if CONFIG['OS_TARGET'] == 'NetBSD':
michael@0 83 DEFINES['__NetBSD__'] = False
michael@0 84
michael@0 85 if CONFIG['OS_TARGET'] == 'OpenBSD':
michael@0 86 DEFINES['__OpenBSD__'] = False
michael@0 87
michael@0 88 if CONFIG['OS_TARGET'] == 'DragonFly':
michael@0 89 DEFINES['__DragonFly__'] = False
michael@0 90
michael@0 91 NO_PGO = True # Don't PGO

mercurial