netwerk/srtp/src/moz.build

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/netwerk/srtp/src/moz.build	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,67 @@
     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 +UNIFIED_SOURCES += [
    1.11 +    'crypto/cipher/aes.c',
    1.12 +    'crypto/cipher/aes_cbc.c',
    1.13 +    'crypto/cipher/aes_icm.c',
    1.14 +    'crypto/cipher/cipher.c',
    1.15 +    'crypto/cipher/null_cipher.c',
    1.16 +    'crypto/hash/auth.c',
    1.17 +    'crypto/hash/hmac.c',
    1.18 +    'crypto/hash/null_auth.c',
    1.19 +    'crypto/hash/sha1.c',
    1.20 +    'crypto/kernel/alloc.c',
    1.21 +    'crypto/kernel/crypto_kernel.c',
    1.22 +    'crypto/kernel/err.c',
    1.23 +    'crypto/kernel/key.c',
    1.24 +    'crypto/math/datatypes.c',
    1.25 +    'crypto/math/gf2_8.c',
    1.26 +    'crypto/math/stat.c',
    1.27 +    'crypto/replay/rdb.c',
    1.28 +    'crypto/replay/rdbx.c',
    1.29 +    'crypto/replay/ut_sim.c',
    1.30 +    'crypto/rng/ctr_prng.c',
    1.31 +    'crypto/rng/prng.c',
    1.32 +    'crypto/rng/rand_source.c',
    1.33 +    'srtp/ekt.c',
    1.34 +    'srtp/srtp.c',
    1.35 +]
    1.36 +
    1.37 +LIBRARY_NAME = 'nksrtp_s'
    1.38 +
    1.39 +include('/ipc/chromium/chromium-config.mozbuild')
    1.40 +
    1.41 +FINAL_LIBRARY = 'necko'
    1.42 +
    1.43 +LOCAL_INCLUDES += [
    1.44 +    'crypto/include',
    1.45 +    'include',
    1.46 +]
    1.47 +
    1.48 +# We know stdint.h will define uint8/16/32/64_t, so we don't need
    1.49 +# to define SIZEOF_UNSIGNED_LONG/SIZEOF_UNSIGNED_LONG_LONG
    1.50 +for var in ('HAVE_STDLIB_H', 'HAVE_UINT8_T', 'HAVE_UINT16_T',
    1.51 +            'HAVE_UINT32_T', 'HAVE_UINT64_T'):
    1.52 +    DEFINES[var] = 1
    1.53 +
    1.54 +# XXX while arm is not a CISC architecture, the code guarded by CPU_RISC makes
    1.55 +# (at least) the AES ciphers fail their self-tests on ARM, so for now we're
    1.56 +# falling back to the (presumably) slower-on-this-architecture but working
    1.57 +# code path.  https://bugzilla.mozilla.org/show_bug.cgi?id=822380 has been filed
    1.58 +# to make the right and more performant fix and push it back upstream.
    1.59 +if CONFIG['CPU_ARCH'] in ('arm', 'x86', 'x86_64'):
    1.60 +    DEFINES['CPU_CISC'] = 1
    1.61 +else:
    1.62 +    # best guess
    1.63 +    DEFINES['CPU_RISC'] = 1
    1.64 +
    1.65 +if  CONFIG['CPU_ARCH'] in ('x86', 'x86_64'):
    1.66 +    DEFINES['HAVE_X86'] = True
    1.67 +
    1.68 +if CONFIG['OS_TARGET'] == 'WINNT':
    1.69 +    DEFINES['HAVE_WINSOCK2_H'] = True
    1.70 +    DEFINES['inline'] = '__inline'

mercurial