Bug 1251502 - Compile the resampling code in cubeb for OSX and Linux. r=kinetik
authorAlex Chronopoulos <achronop@gmail.com>
Fri, 25 Mar 2016 17:42:30 +0100
changeset 290638 0e4e9eba11eefdb5b9d33f9df2cf46afae157ab1
parent 290637 3deb965ce2e4f9754a48a3e232aeb271b3e62ecc
child 290639 030e5bd797cd2ad57898f41aeae5a6a0616e875f
push id19656
push usergwagner@mozilla.com
push dateMon, 04 Apr 2016 13:43:23 +0000
treeherderb2g-inbound@e99061fde28a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskinetik
bugs1251502
milestone48.0a1
Bug 1251502 - Compile the resampling code in cubeb for OSX and Linux. r=kinetik MozReview-Commit-ID: FqDBIojiAuF
media/libcubeb/src/moz.build
--- a/media/libcubeb/src/moz.build
+++ b/media/libcubeb/src/moz.build
@@ -1,44 +1,48 @@
 # -*- 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/.
 
+DEFINES['CUBEB_GECKO_BUILD'] = True
+
 Library('cubeb')
 
 SOURCES += [
     'cubeb.c',
     'cubeb_panner.cpp'
 ]
 
 if CONFIG['MOZ_ALSA']:
     SOURCES += [
         'cubeb_alsa.c',
     ]
     DEFINES['USE_ALSA'] = True
 
 if CONFIG['MOZ_PULSEAUDIO']:
     SOURCES += [
         'cubeb_pulse.c',
+        'cubeb_resampler.cpp' # for tests
     ]
     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',
+        'cubeb_resampler.cpp'
     ]
     if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
         SOURCES += [
             'cubeb_osx_run_loop.c',
         ]
     DEFINES['USE_AUDIOUNIT'] = True
 
 if CONFIG['OS_TARGET'] == 'WINNT':