Bug 926838 - [Part 2] Add build files. r=gps
authorJW Wang <jwwang@mozilla.com>
Wed, 13 Nov 2013 11:07:28 +0800
changeset 274125 2605d73cc96631d7b1d61a8cb4b5d585635144fb
parent 274124 30c6c8f10574f2cd0c50086ed462b56c05e3ee67
child 274126 a5fc6164d6271f5d14439030428dbeb1e527627d
push id863
push userraliiev@mozilla.com
push dateMon, 03 Aug 2015 13:22:43 +0000
treeherdermozilla-release@f6321b14228d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps
bugs926838
milestone40.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 926838 - [Part 2] Add build files. r=gps
config/external/moz.build
media/openmax_dl/dl/Makefile.in
media/openmax_dl/dl/moz.build
media/openmax_dl/moz.build
--- a/config/external/moz.build
+++ b/config/external/moz.build
@@ -32,16 +32,19 @@ if CONFIG['MOZ_WEBM_ENCODER']:
     external_dirs += ['media/libmkv']
 
 if CONFIG['MOZ_VPX'] and not CONFIG['MOZ_NATIVE_LIBVPX']:
     external_dirs += ['media/libvpx']
 
 if not CONFIG['MOZ_NATIVE_PNG']:
     external_dirs += ['media/libpng']
 
+if CONFIG['ARM_ARCHITECTURE']:
+    external_dirs += ['media/openmax_dl']
+
 external_dirs += [
     'media/kiss_fft',
     'media/libcubeb',
     'media/libogg',
     'media/libopus',
     'media/libtheora',
     'media/libspeex_resampler',
     'media/libstagefright',
new file mode 100644
--- /dev/null
+++ b/media/openmax_dl/dl/Makefile.in
@@ -0,0 +1,7 @@
+# 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/.
+
+ifeq (WINNT,$(OS_TARGET))
+VISIBILITY_FLAGS =
+endif
new file mode 100644
--- /dev/null
+++ b/media/openmax_dl/dl/moz.build
@@ -0,0 +1,84 @@
+# -*- 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/.
+
+if CONFIG['CPU_ARCH'] == 'arm' and CONFIG['BUILD_ARM_NEON']:
+    MODULE = 'openmax_dl'
+
+    EXPORTS.dl.api += [
+        'api/armCOMM_s.h',
+        'api/armOMX.h',
+        'api/omxtypes.h',
+        'api/omxtypes_s.h',
+    ]
+
+    EXPORTS.dl.sp.api += [
+        'sp/api/armSP.h',
+        'sp/api/omxSP.h',
+    ]
+
+    SOURCES += [
+        'sp/src/armSP_FFT_F32TwiddleTable.c',
+        'sp/src/armSP_FFT_S32TwiddleTable.c',
+        'sp/src/omxSP_FFTGetBufSize_C_FC32.c',
+        'sp/src/omxSP_FFTGetBufSize_C_SC16.c',
+        'sp/src/omxSP_FFTGetBufSize_C_SC32.c',
+        'sp/src/omxSP_FFTGetBufSize_R_F32.c',
+        'sp/src/omxSP_FFTGetBufSize_R_S16S32.c',
+        'sp/src/omxSP_FFTGetBufSize_R_S32.c',
+        'sp/src/omxSP_FFTInit_C_FC32.c',
+        'sp/src/omxSP_FFTInit_C_SC16.c',
+        'sp/src/omxSP_FFTInit_C_SC32.c',
+        'sp/src/omxSP_FFTInit_R_F32.c',
+        'sp/src/omxSP_FFTInit_R_S16S32.c',
+        'sp/src/omxSP_FFTInit_R_S32.c',
+    ]
+
+    SOURCES += [
+        'sp/src/armSP_FFT_CToC_FC32_Radix2_fs_unsafe_s.S',
+        'sp/src/armSP_FFT_CToC_FC32_Radix2_ls_unsafe_s.S',
+        'sp/src/armSP_FFT_CToC_FC32_Radix2_unsafe_s.S',
+        'sp/src/armSP_FFT_CToC_FC32_Radix4_fs_unsafe_s.S',
+        'sp/src/armSP_FFT_CToC_FC32_Radix4_ls_unsafe_s.S',
+        'sp/src/armSP_FFT_CToC_FC32_Radix4_unsafe_s.S',
+        'sp/src/armSP_FFT_CToC_FC32_Radix8_fs_unsafe_s.S',
+        'sp/src/armSP_FFT_CToC_SC16_Radix2_fs_unsafe_s.S',
+        'sp/src/armSP_FFT_CToC_SC16_Radix2_ls_unsafe_s.S',
+        'sp/src/armSP_FFT_CToC_SC16_Radix2_ps_unsafe_s.S',
+        'sp/src/armSP_FFT_CToC_SC16_Radix2_unsafe_s.S',
+        'sp/src/armSP_FFT_CToC_SC16_Radix4_fs_unsafe_s.S',
+        'sp/src/armSP_FFT_CToC_SC16_Radix4_ls_unsafe_s.S',
+        'sp/src/armSP_FFT_CToC_SC16_Radix4_unsafe_s.S',
+        'sp/src/armSP_FFT_CToC_SC16_Radix8_fs_unsafe_s.S',
+        'sp/src/armSP_FFT_CToC_SC32_Radix2_fs_unsafe_s.S',
+        'sp/src/armSP_FFT_CToC_SC32_Radix2_ls_unsafe_s.S',
+        'sp/src/armSP_FFT_CToC_SC32_Radix2_unsafe_s.S',
+        'sp/src/armSP_FFT_CToC_SC32_Radix4_fs_unsafe_s.S',
+        'sp/src/armSP_FFT_CToC_SC32_Radix4_ls_unsafe_s.S',
+        'sp/src/armSP_FFT_CToC_SC32_Radix4_unsafe_s.S',
+        'sp/src/armSP_FFT_CToC_SC32_Radix8_fs_unsafe_s.S',
+        'sp/src/armSP_FFTInv_CCSToR_F32_preTwiddleRadix2_unsafe_s.S',
+        'sp/src/armSP_FFTInv_CCSToR_S32_preTwiddleRadix2_unsafe_s.S',
+        'sp/src/omxSP_FFTFwd_CToC_FC32_Sfs_s.S',
+        'sp/src/omxSP_FFTFwd_CToC_SC16_Sfs_s.S',
+        'sp/src/omxSP_FFTFwd_CToC_SC32_Sfs_s.S',
+        'sp/src/omxSP_FFTFwd_RToCCS_F32_Sfs_s.S',
+        'sp/src/omxSP_FFTFwd_RToCCS_S16S32_Sfs_s.S',
+        'sp/src/omxSP_FFTFwd_RToCCS_S32_Sfs_s.S',
+        'sp/src/omxSP_FFTInv_CCSToR_F32_Sfs_s.S',
+        'sp/src/omxSP_FFTInv_CCSToR_S32_Sfs_s.S',
+        'sp/src/omxSP_FFTInv_CCSToR_S32S16_Sfs_s.S',
+        'sp/src/omxSP_FFTInv_CToC_FC32_Sfs_s.S',
+        'sp/src/omxSP_FFTInv_CToC_SC16_Sfs_s.S',
+        'sp/src/omxSP_FFTInv_CToC_SC32_Sfs_s.S',
+    ]
+
+    LIBRARY_NAME = 'openmax_dl'
+
+    LOCAL_INCLUDES += [
+        '..'
+    ]
+
+    DEFINES['BIG_FFT_TABLE'] = True
new file mode 100644
--- /dev/null
+++ b/media/openmax_dl/moz.build
@@ -0,0 +1,7 @@
+# -*- 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/.
+
+DIRS += ['dl']
\ No newline at end of file