netwerk/srtp/src/moz.build

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

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

mercurial