Bug 1483511 - Only build TestAudioDeviceEnumerator.cpp if webrtc is enabled r=dmajor,firefox-build-system-reviewers
authorDan Minor <dminor@mozilla.com>
Wed, 15 Aug 2018 20:22:30 +0000
changeset 486997 30befe133f2375412cd68a44a234e3aa52de6eca
parent 486996 440497182e75a23fae17afad7853808f4d82f4c1
child 486998 42d6f6784fc21d04838241d35d3ceb82a1ecc935
push id9719
push userffxbld-merge
push dateFri, 24 Aug 2018 17:49:46 +0000
treeherdermozilla-beta@719ec98fba77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdmajor, firefox-build-system-reviewers
bugs1483511
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1483511 - Only build TestAudioDeviceEnumerator.cpp if webrtc is enabled r=dmajor,firefox-build-system-reviewers Differential Revision: https://phabricator.services.mozilla.com/D3416
dom/media/gtest/moz.build
--- a/dom/media/gtest/moz.build
+++ b/dom/media/gtest/moz.build
@@ -11,17 +11,16 @@ LOCAL_INCLUDES += [
     '/media/webrtc/signaling/src/common',
     '/media/webrtc/trunk'
 ]
 
 UNIFIED_SOURCES += [
     'MockMediaResource.cpp',
     'TestAudioBuffers.cpp',
     'TestAudioCompactor.cpp',
-    'TestAudioDeviceEnumerator.cpp',
     'TestAudioMixer.cpp',
     'TestAudioPacketizer.cpp',
     'TestAudioSegment.cpp',
     'TestAudioTrackEncoder.cpp',
     'TestBitWriter.cpp',
     'TestBlankVideoDataCreator.cpp',
     'TestCDMStorage.cpp',
     'TestDataMutex.cpp',
@@ -42,16 +41,21 @@ UNIFIED_SOURCES += [
 ]
 
 if CONFIG['MOZ_WEBM_ENCODER']:
     UNIFIED_SOURCES += [
         'TestVideoTrackEncoder.cpp',
         'TestWebMWriter.cpp',
     ]
 
+if CONFIG['MOZ_WEBRTC']:
+    UNIFIED_SOURCES += [
+        'TestAudioDeviceEnumerator.cpp',
+    ]
+
 TEST_HARNESS_FILES.gtest += [
     '../test/gizmo-frag.mp4',
     '../test/gizmo.mp4',
     '../test/vp9cake.webm',
     'dash_dashinit.mp4',
     'id3v2header.mp3',
     'negative_duration.mp4',
     'noise.mp3',