netwerk/srtp/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.

     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 UNIFIED_SOURCES += [
     8     'crypto/cipher/aes.c',
     9     'crypto/cipher/aes_cbc.c',
    10     'crypto/cipher/aes_icm.c',
    11     'crypto/cipher/cipher.c',
    12     'crypto/cipher/null_cipher.c',
    13     'crypto/hash/auth.c',
    14     'crypto/hash/hmac.c',
    15     'crypto/hash/null_auth.c',
    16     'crypto/hash/sha1.c',
    17     'crypto/kernel/alloc.c',
    18     'crypto/kernel/crypto_kernel.c',
    19     'crypto/kernel/err.c',
    20     'crypto/kernel/key.c',
    21     'crypto/math/datatypes.c',
    22     'crypto/math/gf2_8.c',
    23     'crypto/math/stat.c',
    24     'crypto/replay/rdb.c',
    25     'crypto/replay/rdbx.c',
    26     'crypto/replay/ut_sim.c',
    27     'crypto/rng/ctr_prng.c',
    28     'crypto/rng/prng.c',
    29     'crypto/rng/rand_source.c',
    30     'srtp/ekt.c',
    31     'srtp/srtp.c',
    32 ]
    34 LIBRARY_NAME = 'nksrtp_s'
    36 include('/ipc/chromium/chromium-config.mozbuild')
    38 FINAL_LIBRARY = 'necko'
    40 LOCAL_INCLUDES += [
    41     'crypto/include',
    42     'include',
    43 ]
    45 # We know stdint.h will define uint8/16/32/64_t, so we don't need
    46 # to define SIZEOF_UNSIGNED_LONG/SIZEOF_UNSIGNED_LONG_LONG
    47 for var in ('HAVE_STDLIB_H', 'HAVE_UINT8_T', 'HAVE_UINT16_T',
    48             'HAVE_UINT32_T', 'HAVE_UINT64_T'):
    49     DEFINES[var] = 1
    51 # XXX while arm is not a CISC architecture, the code guarded by CPU_RISC makes
    52 # (at least) the AES ciphers fail their self-tests on ARM, so for now we're
    53 # falling back to the (presumably) slower-on-this-architecture but working
    54 # code path.  https://bugzilla.mozilla.org/show_bug.cgi?id=822380 has been filed
    55 # to make the right and more performant fix and push it back upstream.
    56 if CONFIG['CPU_ARCH'] in ('arm', 'x86', 'x86_64'):
    57     DEFINES['CPU_CISC'] = 1
    58 else:
    59     # best guess
    60     DEFINES['CPU_RISC'] = 1
    62 if  CONFIG['CPU_ARCH'] in ('x86', 'x86_64'):
    63     DEFINES['HAVE_X86'] = True
    65 if CONFIG['OS_TARGET'] == 'WINNT':
    66     DEFINES['HAVE_WINSOCK2_H'] = True
    67     DEFINES['inline'] = '__inline'

mercurial