media/webrtc/trunk/webrtc/common_audio/common_audio_c_gn/moz.build
author Daniel Varga <dvarga@mozilla.com>
Fri, 09 Nov 2018 11:59:52 +0200
changeset 501796 5e7636ec12c5c4543b64428e15165031cff32dc4
parent 500747 ef27c14b46bf58f710753ae6bb6d2c01a8c3631f
parent 501751 8d68d175a589e3aba08e4fbb2bc83125b811a66c
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_MOZILLA_BUILD"] = True
DEFINES["WEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS"] = "0"
DEFINES["WEBRTC_RESTRICT_LOGGING"] = True

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/"
]

SOURCES += [
    "/media/webrtc/trunk/webrtc/common_audio/vad/vad_core.c",
    "/media/webrtc/trunk/webrtc/common_audio/vad/webrtc_vad.c"
]

UNIFIED_SOURCES += [
    "/media/webrtc/trunk/webrtc/common_audio/fft4g.c",
    "/media/webrtc/trunk/webrtc/common_audio/ring_buffer.c",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/auto_corr_to_refl_coef.c",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/auto_correlation.c",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/complex_fft.c",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/copy_set_operations.c",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/cross_correlation.c",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/division_operations.c",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/downsample_fast.c",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/energy.c",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/filter_ar.c",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/filter_ma_fast_q12.c",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/get_hanning_window.c",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/get_scaling_square.c",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/ilbc_specific_functions.c",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/levinson_durbin.c",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/lpc_to_refl_coef.c",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/min_max_operations.c",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/randomization_functions.c",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/real_fft.c",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/refl_coef_to_lpc.c",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/resample.c",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/resample_48khz.c",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/resample_by_2.c",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/resample_by_2_internal.c",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/resample_fractional.c",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/spl_init.c",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/spl_inl.c",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/spl_sqrt.c",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/splitting_filter.c",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/sqrt_of_one_minus_x_squared.c",
    "/media/webrtc/trunk/webrtc/common_audio/signal_processing/vector_scaling_operations.c",
    "/media/webrtc/trunk/webrtc/common_audio/vad/vad_filterbank.c",
    "/media/webrtc/trunk/webrtc/common_audio/vad/vad_gmm.c",
    "/media/webrtc/trunk/webrtc/common_audio/vad/vad_sp.c"
]

if not CONFIG["MOZ_DEBUG"]:

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

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["WEBRTC_POSIX"] = True
    DEFINES["_FILE_OFFSET_BITS"] = "64"
    DEFINES["__GNU_SOURCE"] = "1"

    OS_LIBS += [
        "log"
    ]

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

    DEFINES["CR_XCODE_VERSION"] = "0920"
    DEFINES["NO_TCMALLOC"] = True
    DEFINES["WEBRTC_MAC"] = True
    DEFINES["WEBRTC_POSIX"] = True
    DEFINES["__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORE"] = "0"

    OS_LIBS += [
        "-framework Foundation"
    ]

    UNIFIED_SOURCES += [
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/complex_bit_reverse.c",
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/filter_ar_fast_q12.c",
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/spl_sqrt_floor.c"
    ]

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

    DEFINES["USE_X11"] = "1"
    DEFINES["WEBRTC_BSD"] = True
    DEFINES["WEBRTC_POSIX"] = True
    DEFINES["_FILE_OFFSET_BITS"] = "64"

    UNIFIED_SOURCES += [
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/complex_bit_reverse.c",
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/filter_ar_fast_q12.c",
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/spl_sqrt_floor.c"
    ]

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

    DEFINES["USE_X11"] = "1"
    DEFINES["WEBRTC_BSD"] = True
    DEFINES["WEBRTC_POSIX"] = True
    DEFINES["_FILE_OFFSET_BITS"] = "64"

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

    DEFINES["USE_NSS_CERTS"] = "1"
    DEFINES["USE_X11"] = "1"
    DEFINES["WEBRTC_LINUX"] = True
    DEFINES["WEBRTC_POSIX"] = True
    DEFINES["_FILE_OFFSET_BITS"] = "64"

    OS_LIBS += [
        "rt"
    ]

    UNIFIED_SOURCES += [
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/complex_bit_reverse.c",
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/filter_ar_fast_q12.c",
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/spl_sqrt_floor.c"
    ]

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

    DEFINES["USE_X11"] = "1"
    DEFINES["WEBRTC_BSD"] = True
    DEFINES["WEBRTC_POSIX"] = True
    DEFINES["_FILE_OFFSET_BITS"] = "64"

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

    DEFINES["USE_X11"] = "1"
    DEFINES["WEBRTC_BSD"] = True
    DEFINES["WEBRTC_POSIX"] = True
    DEFINES["_FILE_OFFSET_BITS"] = "64"

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

    DEFINES["CERT_CHAIN_PARA_HAS_EXTRA_FIELDS"] = True
    DEFINES["NOMINMAX"] = True
    DEFINES["NO_TCMALLOC"] = True
    DEFINES["NTDDI_VERSION"] = "0x0A000000"
    DEFINES["PSAPI_VERSION"] = "1"
    DEFINES["UNICODE"] = True
    DEFINES["WEBRTC_WIN"] = True
    DEFINES["WIN32"] = True
    DEFINES["WIN32_LEAN_AND_MEAN"] = True
    DEFINES["WINVER"] = "0x0A00"
    DEFINES["_ATL_NO_OPENGL"] = True
    DEFINES["_CRT_RAND_S"] = True
    DEFINES["_CRT_SECURE_NO_DEPRECATE"] = True
    DEFINES["_CRT_SECURE_NO_WARNINGS"] = True
    DEFINES["_HAS_EXCEPTIONS"] = "0"
    DEFINES["_SCL_SECURE_NO_DEPRECATE"] = True
    DEFINES["_SECURE_ATL"] = True
    DEFINES["_UNICODE"] = True
    DEFINES["_USING_V110_SDK71_"] = True
    DEFINES["_WIN32_WINNT"] = "0x0A00"
    DEFINES["_WINDOWS"] = True
    DEFINES["__STD_C"] = True

    OS_LIBS += [
        "winmm"
    ]

    UNIFIED_SOURCES += [
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/complex_bit_reverse.c",
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/filter_ar_fast_q12.c",
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/spl_sqrt_floor.c"
    ]

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

    DEFINES["WEBRTC_ARCH_ARM64"] = True
    DEFINES["WEBRTC_HAS_NEON"] = True

    UNIFIED_SOURCES += [
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/complex_bit_reverse.c",
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/filter_ar_fast_q12.c",
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/spl_sqrt_floor.c"
    ]

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

    CFLAGS += [
        "-mfpu=neon"
    ]

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

if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Android":

    DEFINES["_FORTIFY_SOURCE"] = "2"

if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "Darwin":

    DEFINES["_FORTIFY_SOURCE"] = "2"

if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "DragonFly":

    DEFINES["_FORTIFY_SOURCE"] = "2"

if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "FreeBSD":

    DEFINES["_FORTIFY_SOURCE"] = "2"

if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "NetBSD":

    DEFINES["_FORTIFY_SOURCE"] = "2"

if not CONFIG["MOZ_DEBUG"] and CONFIG["OS_TARGET"] == "OpenBSD":

    DEFINES["_FORTIFY_SOURCE"] = "2"

if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "Android":

    CFLAGS += [
        "-msse2"
    ]

    UNIFIED_SOURCES += [
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/complex_bit_reverse.c",
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/filter_ar_fast_q12.c",
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/spl_sqrt_floor.c"
    ]

if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "Android":

    UNIFIED_SOURCES += [
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/complex_bit_reverse.c",
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/filter_ar_fast_q12.c",
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/spl_sqrt_floor.c"
    ]

if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "FreeBSD":

    CFLAGS += [
        "-msse2"
    ]

    UNIFIED_SOURCES += [
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/complex_bit_reverse.c",
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/filter_ar_fast_q12.c",
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/spl_sqrt_floor.c"
    ]

if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "FreeBSD":

    UNIFIED_SOURCES += [
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/complex_bit_reverse.c",
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/filter_ar_fast_q12.c",
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/spl_sqrt_floor.c"
    ]

if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "NetBSD":

    CFLAGS += [
        "-msse2"
    ]

    UNIFIED_SOURCES += [
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/complex_bit_reverse.c",
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/filter_ar_fast_q12.c",
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/spl_sqrt_floor.c"
    ]

if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "NetBSD":

    UNIFIED_SOURCES += [
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/complex_bit_reverse.c",
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/filter_ar_fast_q12.c",
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/spl_sqrt_floor.c"
    ]

if CONFIG["CPU_ARCH"] == "x86" and CONFIG["OS_TARGET"] == "OpenBSD":

    CFLAGS += [
        "-msse2"
    ]

    UNIFIED_SOURCES += [
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/complex_bit_reverse.c",
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/filter_ar_fast_q12.c",
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/spl_sqrt_floor.c"
    ]

if CONFIG["CPU_ARCH"] == "x86_64" and CONFIG["OS_TARGET"] == "OpenBSD":

    UNIFIED_SOURCES += [
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/complex_bit_reverse.c",
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/filter_ar_fast_q12.c",
        "/media/webrtc/trunk/webrtc/common_audio/signal_processing/spl_sqrt_floor.c"
    ]

Library("common_audio_c_gn")