media/webrtc/trunk/webrtc/modules/audio_coding/isac_neon_gn/moz.build
author Daniel Varga <dvarga@mozilla.com>
Fri, 09 Nov 2018 11:59:52 +0200
changeset 501796 5e7636ec12c5c4543b64428e15165031cff32dc4
parent 500747 ef27c14b46bf58f710753ae6bb6d2c01a8c3631f
child 502468 adc6f14f89e418d1c40b6d3b40a55833f07d7719
permissions -rw-r--r--
Merge mozilla-inbound to mozilla-central. a=merge

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.


  ### This moz.build was AUTOMATICALLY GENERATED from a GN config,  ###
  ### DO NOT edit it by hand.                                       ###

COMPILE_FLAGS["OS_INCLUDES"] = []
AllowCompilerWarnings()

DEFINES["CHROMIUM_BUILD"] = True
DEFINES["V8_DEPRECATION_WARNINGS"] = True
DEFINES["WEBRTC_ENABLE_PROTOBUF"] = "0"
DEFINES["WEBRTC_HAS_NEON"] = True
DEFINES["WEBRTC_MOZILLA_BUILD"] = True
DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
DEFINES["WEBRTC_POSIX"] = True
DEFINES["WEBRTC_RESTRICT_LOGGING"] = True
DEFINES["_FILE_OFFSET_BITS"] = "64"

FINAL_LIBRARY = "webrtc"


LOCAL_INCLUDES += [
    "!/ipc/ipdl/_ipdlheaders",
    "/ipc/chromium/src",
    "/ipc/glue",
    "/media/webrtc/trunk/webrtc/",
    "/media/webrtc/trunk/webrtc/common_audio/resampler/include/",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/include/",
    "/media/webrtc/trunk/webrtc/common_audio/vad/include/",
    "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/fix/include/"
]

UNIFIED_SOURCES += [
    "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/fix/source/entropy_coding_neon.c",
    "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/fix/source/filterbanks_neon.c",
    "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/fix/source/filters_neon.c",
    "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/fix/source/lattice_neon.c",
    "/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/isac/fix/source/transform_neon.c"
]

if not CONFIG["MOZ_DEBUG"]:

    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "0"
    DEFINES["NDEBUG"] = True
    DEFINES["NVALGRIND"] = True
    DEFINES["_FORTIFY_SOURCE"] = "2"

if CONFIG["MOZ_DEBUG"] == "1":

    DEFINES["DYNAMIC_ANNOTATIONS_ENABLED"] = "1"
    DEFINES["WTF_USE_DYNAMIC_ANNOTATIONS"] = "1"

if CONFIG["OS_TARGET"] == "Android":

    DEFINES["ANDROID"] = True
    DEFINES["ANDROID_NDK_VERSION"] = "r12b"
    DEFINES["DISABLE_NACL"] = True
    DEFINES["HAVE_SYS_UIO_H"] = True
    DEFINES["NO_TCMALLOC"] = True
    DEFINES["USE_OPENSSL_CERTS"] = "1"
    DEFINES["WEBRTC_ANDROID"] = True
    DEFINES["WEBRTC_ANDROID_OPENSLES"] = True
    DEFINES["WEBRTC_LINUX"] = True
    DEFINES["__GNU_SOURCE"] = "1"

    OS_LIBS += [
        "log"
    ]

if CONFIG["OS_TARGET"] == "FreeBSD":

    DEFINES["USE_X11"] = "1"
    DEFINES["WEBRTC_BSD"] = True

if CONFIG["OS_TARGET"] == "NetBSD":

    DEFINES["USE_X11"] = "1"
    DEFINES["WEBRTC_BSD"] = True

if CONFIG["OS_TARGET"] == "OpenBSD":

    DEFINES["USE_X11"] = "1"
    DEFINES["WEBRTC_BSD"] = True

if CONFIG["CPU_ARCH"] == "aarch64":

    DEFINES["WEBRTC_ARCH_ARM64"] = True

if CONFIG["CPU_ARCH"] == "arm":

    CFLAGS += [
        "-mfpu=neon"
    ]

    DEFINES["WEBRTC_ARCH_ARM"] = True
    DEFINES["WEBRTC_ARCH_ARM_V7"] = True

Library("isac_neon_gn")