Bug 1350246 - [Part8] Add the native code implementation into source tree.
MozReview-Commit-ID: 6xS4QCrsfJa
new file mode 100644
--- /dev/null
+++ b/dom/media/hls/moz.build
@@ -0,0 +1,26 @@
+# 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/.
+
+
+EXPORTS += [
+ 'HLSDecoder.h',
+ 'HLSDemuxer.h',
+ 'HLSResource.h',
+ 'HLSUtils.h',
+]
+
+UNIFIED_SOURCES += [
+ 'HLSDecoder.cpp',
+ 'HLSDemuxer.cpp',
+ 'HLSResource.cpp',
+ 'HLSUtils.cpp',
+]
+
+include('/ipc/chromium/chromium-config.mozbuild')
+
+FINAL_LIBRARY = 'xul'
+
+if CONFIG['GNU_CXX']:
+ CXXFLAGS += ['-Wno-error=shadow']
--- a/dom/media/moz.build
+++ b/dom/media/moz.build
@@ -48,16 +48,19 @@ DIRS += [
'webrtc',
'webspeech',
'webvtt',
]
if CONFIG['MOZ_ANDROID_OMX']:
DIRS += ['android']
+if CONFIG['MOZ_ANDROID_HLS_SUPPORT']:
+ DIRS += ['hls']
+
if CONFIG['MOZ_FMP4']:
DIRS += ['fmp4']
if CONFIG['MOZ_WEBRTC']:
DIRS += ['bridge']
TEST_DIRS += [
'gtest',