Revision 4c4dc3c77b9dc7e51eb365be3172909ede4df92a authored by Marty Rosenberg on 27 May 2014, 13:40:35 UTC, committed by Marty Rosenberg on 27 May 2014, 13:40:35 UTC
1 parent 70cc08d
Raw File
moz.build
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# 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/.

SOURCES += [
    'cubeb.c',
]

if CONFIG['MOZ_ALSA']:
    SOURCES += [
        'cubeb_alsa.c',
    ]
    DEFINES['USE_ALSA'] = True

if CONFIG['MOZ_PULSEAUDIO']:
    SOURCES += [
        'cubeb_pulse.c',
    ]
    DEFINES['USE_PULSE'] = True
    if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
        DEFINES['DISABLE_LIBPULSE_DLOPEN'] = True

if CONFIG['OS_ARCH'] == 'OpenBSD':
    SOURCES += [
        'cubeb_sndio.c',
    ]
    DEFINES['USE_SNDIO'] = True

if CONFIG['OS_TARGET'] == 'Darwin':
    SOURCES += [
        'cubeb_audiounit.c',
    ]
    DEFINES['USE_AUDIOUNIT'] = True

if CONFIG['OS_TARGET'] == 'WINNT':
    SOURCES += [
        'cubeb_wasapi.cpp',
        'cubeb_winmm.c',
    ]
    DEFINES['USE_WINMM'] = True
    DEFINES['USE_WASAPI'] = True

if CONFIG['OS_TARGET'] == 'Android':
    SOURCES += [
        'cubeb_opensl.c',
    ]
    DEFINES['USE_OPENSL'] = True
    if CONFIG['MOZ_WIDGET_TOOLKIT'] != 'gonk':
        SOURCES += [
            'cubeb_audiotrack.c',
        ]
        DEFINES['USE_AUDIOTRACK'] = True

MSVC_ENABLE_PGO = True

if CONFIG['GKMEDIAS_SHARED_LIBRARY']:
    NO_VISIBILITY_FLAGS = True

FINAL_LIBRARY = 'gkmedias'
back to top