Bug 1350246 - [Part8] Add the native code implementation into source tree. draft
authorJames Cheng <jacheng@mozilla.com>
Thu, 18 May 2017 14:56:50 +0800
changeset 592560 cd62559f10b5a7aaa4ed423b2c9c82f4ba8f22e9
parent 592559 bcb1f3426052aa24ddd031cb1e12b363bb3727dd
child 632860 edc9856a1243efe56ded45a3f3b9c4587e5eb790
push id63431
push userbmo:jacheng@mozilla.com
push dateMon, 12 Jun 2017 12:38:14 +0000
bugs1350246
milestone55.0a1
Bug 1350246 - [Part8] Add the native code implementation into source tree. MozReview-Commit-ID: 6xS4QCrsfJa
dom/media/hls/moz.build
dom/media/moz.build
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',