tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

moz.build (1709B)


      1 # -*- Mode: python; 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/.
      6 
      7 EXPORTS.mozilla.net += [
      8     'usrsctp.h',
      9 ]
     10 
     11 # for socket
     12 OS_LIBS += CONFIG["SOCKET_LIBS"]
     13 
     14 UNIFIED_SOURCES += [
     15     'netinet/sctp_auth.c',
     16     'netinet/sctp_callout.c',
     17     'netinet/sctp_cc_functions.c',
     18     'netinet/sctp_crc32.c',
     19     'netinet/sctp_indata.c',
     20     'netinet/sctp_input.c',
     21     'netinet/sctp_output.c',
     22     'netinet/sctp_pcb.c',
     23     'netinet/sctp_peeloff.c',
     24     'netinet/sctp_sha1.c',
     25     'netinet/sctp_ss_functions.c',
     26     'netinet/sctp_sysctl.c',
     27     'netinet/sctp_timer.c',
     28     'netinet/sctp_userspace.c',
     29     'netinet/sctp_usrreq.c',
     30     'netinet/sctputil.c',
     31     'netinet6/sctp6_usrreq.c',
     32     'user_mbuf.c',
     33     'user_recv_thread.c',
     34     'user_socket.c',
     35 ]
     36 
     37 SOURCES += [
     38     'netinet/sctp_asconf.c',
     39     'netinet/sctp_bsd_addr.c', # defines some macros (FREE, MALLOC) that clash
     40     'user_environment.c',
     41 ]
     42 
     43 Library('nksctp_s')
     44 
     45 # We allow warnings for third-party code that can be updated from upstream.
     46 AllowCompilerWarnings()
     47 
     48 FINAL_LIBRARY = 'xul'
     49 
     50 LOCAL_INCLUDES += [
     51     '/dom/base',
     52     '/netwerk/base',
     53 ]
     54 
     55 for var in ('__Userspace__',
     56             'SCTP_SIMPLE_ALLOCATOR',
     57             'SCTP_PROCESS_LEVEL_LOCKS',
     58             'SCTP_DEBUG'):
     59     DEFINES[var] = 1
     60 
     61 if CONFIG['OS_TARGET'] in ('Linux', 'Android'):
     62     DEFINES['_GNU_SOURCE'] = 1
     63 elif CONFIG['OS_TARGET'] == 'Darwin':
     64     DEFINES['__APPLE_USE_RFC_2292'] = 1
     65 elif CONFIG['OS_TARGET'] == 'WINNT':
     66     DEFINES['_CRT_RAND_S'] = True