media/libcubeb/src/moz.build
author Mike Hommey <mh+mozilla@glandium.org>
Tue, 19 Nov 2013 11:47:39 +0900
changeset 156201 05e66d941de21f4edbb22801c740878474d23b72
parent 156198 7fac57f507f252571b1e79fb0290871e95ac21b6
child 156210 e4b59fdbc9c2dfc8d28cdcdc2888bf4a21376826
permissions -rw-r--r--
Bug 939044 - Remove most definitions of MODULE. r=mshal

# -*- 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',
    ]

if CONFIG['MOZ_PULSEAUDIO']:
    SOURCES += [
        'cubeb_pulse.c',
    ]

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

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

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

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

LIBRARY_NAME = 'cubeb'

MSVC_ENABLE_PGO = True

if CONFIG['OS_TARGET'] == 'WINNT':
    NO_VISIBILITY_FLAGS = True

FINAL_LIBRARY = 'gkmedias'