Lines 1-35
Link Here
|
1 |
# Allow more config/external/ libs built against system-wide version. |
1 |
--- ./mozilla/config/external/moz.build.orig 2015-07-21 22:27:33.000000000 +0200 |
2 |
|
2 |
+++ ./mozilla/config/external/moz.build 2015-07-21 22:27:40.000000000 +0200 |
3 |
diff --git config/Makefile.in config/Makefile.in |
3 |
@@ -19,10 +19,19 @@ |
4 |
index 5383399..0410004 100644 |
4 |
# There's no "native brotli" yet, but probably in the future... |
5 |
--- mozilla/config/Makefile.in |
5 |
external_dirs += ['modules/brotli'] |
6 |
+++ mozilla/config/Makefile.in |
|
|
7 |
@@ -79,6 +79,13 @@ export:: $(export-preqs) |
8 |
-DMOZ_NATIVE_ICU=$(MOZ_NATIVE_ICU) \ |
9 |
-DMOZ_NATIVE_GRAPHITE2=$(MOZ_NATIVE_GRAPHITE2) \ |
10 |
-DMOZ_NATIVE_HARFBUZZ=$(MOZ_NATIVE_HARFBUZZ) \ |
11 |
+ -DMOZ_NATIVE_OGG=$(MOZ_NATIVE_OGG) \ |
12 |
+ -DMOZ_NATIVE_THEORA=$(MOZ_NATIVE_THEORA) \ |
13 |
+ -DMOZ_NATIVE_VORBIS=$(MOZ_NATIVE_VORBIS) \ |
14 |
+ -DMOZ_NATIVE_TREMOR=$(MOZ_NATIVE_TREMOR) \ |
15 |
+ -DMOZ_NATIVE_OPUS=$(MOZ_NATIVE_OPUS) \ |
16 |
+ -DMOZ_NATIVE_SPEEX=$(MOZ_NATIVE_SPEEX) \ |
17 |
+ -DMOZ_NATIVE_SOUNDTOUCH=$(MOZ_NATIVE_SOUNDTOUCH) \ |
18 |
$(srcdir)/system-headers | $(PERL) $(topsrcdir)/nsprpub/config/make-system-wrappers.pl system_wrappers |
19 |
$(INSTALL) system_wrappers $(DIST) |
20 |
|
6 |
|
21 |
diff --git config/external/moz.build config/external/moz.build |
|
|
22 |
index f67c5c7..eb909ce 100644 |
23 |
--- mozilla/config/external/moz.build |
24 |
+++ mozilla/config/external/moz.build |
25 |
@@ -15,13 +15,19 @@ if CONFIG['MOZ_UPDATER']: |
26 |
if not CONFIG['MOZ_NATIVE_BZ2']: |
27 |
external_dirs += ['modules/libbz2'] |
28 |
|
29 |
-if CONFIG['MOZ_VORBIS']: |
7 |
-if CONFIG['MOZ_VORBIS']: |
30 |
+if not CONFIG['MOZ_NATIVE_OGG']: |
8 |
+if not CONFIG['MOZ_NATIVE_OGG']: |
31 |
+ external_dirs += ['media/libogg'] |
9 |
+ external_dirs += ['media/libogg'] |
32 |
+ |
10 |
+ |
|
|
11 |
+if not CONFIG['MOZ_NATIVE_CELT'] or not CONFIG['MOZ_NATIVE_OPUS']: |
12 |
+ external_dirs += ['media/libopus'] |
13 |
+ |
33 |
+if not CONFIG['MOZ_NATIVE_THEORA']: |
14 |
+if not CONFIG['MOZ_NATIVE_THEORA']: |
34 |
+ external_dirs += ['media/libtheora'] |
15 |
+ external_dirs += ['media/libtheora'] |
35 |
+ |
16 |
+ |
Lines 40-51
Link Here
|
40 |
+if CONFIG['MOZ_TREMOR'] and not CONFIG['MOZ_NATIVE_TREMOR']: |
21 |
+if CONFIG['MOZ_TREMOR'] and not CONFIG['MOZ_NATIVE_TREMOR']: |
41 |
external_dirs += ['media/libtremor'] |
22 |
external_dirs += ['media/libtremor'] |
42 |
|
23 |
|
43 |
-if CONFIG['MOZ_OPUS']: |
|
|
44 |
+if CONFIG['MOZ_OPUS'] and not CONFIG['MOZ_NATIVE_OPUS']: |
45 |
external_dirs += ['media/libopus'] |
46 |
|
47 |
if CONFIG['MOZ_WEBM']: |
24 |
if CONFIG['MOZ_WEBM']: |
48 |
@@ -36,13 +42,15 @@ if CONFIG['MOZ_VPX'] and not CONFIG['MOZ_NATIVE_LIBVPX']: |
25 |
@@ -37,15 +46,16 @@ |
49 |
if not CONFIG['MOZ_NATIVE_PNG']: |
26 |
if not CONFIG['MOZ_NATIVE_PNG']: |
50 |
external_dirs += ['media/libpng'] |
27 |
external_dirs += ['media/libpng'] |
51 |
|
28 |
|
Lines 59-93
Link Here
|
59 |
'media/kiss_fft', |
36 |
'media/kiss_fft', |
60 |
'media/libcubeb', |
37 |
'media/libcubeb', |
61 |
- 'media/libogg', |
38 |
- 'media/libogg', |
|
|
39 |
- 'media/libopus', |
62 |
- 'media/libtheora', |
40 |
- 'media/libtheora', |
63 |
- 'media/libspeex_resampler', |
41 |
- 'media/libspeex_resampler', |
|
|
42 |
'media/libstagefright', |
64 |
- 'media/libsoundtouch', |
43 |
- 'media/libsoundtouch', |
65 |
] |
44 |
] |
66 |
|
45 |
|
67 |
PARALLEL_DIRS += ['../../' + i for i in external_dirs] |
46 |
DIRS += ['../../' + i for i in external_dirs] |
68 |
diff --git config/system-headers config/system-headers |
47 |
--- ./mozilla/config/Makefile.in.orig 2015-07-21 22:27:09.000000000 +0200 |
69 |
index bef567c..9807c29 100644 |
48 |
+++ ./mozilla/config/Makefile.in 2015-07-21 22:27:14.000000000 +0200 |
70 |
--- mozilla/config/system-headers |
49 |
@@ -79,6 +79,14 @@ |
71 |
+++ mozilla/config/system-headers |
50 |
-DMOZ_NATIVE_ICU=$(MOZ_NATIVE_ICU) \ |
72 |
@@ -1050,8 +1050,6 @@ X11/Xutil.h |
51 |
-DMOZ_NATIVE_GRAPHITE2=$(MOZ_NATIVE_GRAPHITE2) \ |
73 |
xpt_struct.h |
52 |
-DMOZ_NATIVE_HARFBUZZ=$(MOZ_NATIVE_HARFBUZZ) \ |
74 |
xpt_xdr.h |
53 |
+ -DMOZ_NATIVE_OGG=$(MOZ_NATIVE_OGG) \ |
|
|
54 |
+ -DMOZ_NATIVE_THEORA=$(MOZ_NATIVE_THEORA) \ |
55 |
+ -DMOZ_NATIVE_VORBIS=$(MOZ_NATIVE_VORBIS) \ |
56 |
+ -DMOZ_NATIVE_TREMOR=$(MOZ_NATIVE_TREMOR) \ |
57 |
+ -DMOZ_NATIVE_CELT=$(MOZ_NATIVE_CELT) \ |
58 |
+ -DMOZ_NATIVE_OPUS=$(MOZ_NATIVE_OPUS) \ |
59 |
+ -DMOZ_NATIVE_SPEEX=$(MOZ_NATIVE_SPEEX) \ |
60 |
+ -DMOZ_NATIVE_SOUNDTOUCH=$(MOZ_NATIVE_SOUNDTOUCH) \ |
61 |
$(srcdir)/system-headers | $(PERL) $(topsrcdir)/nsprpub/config/make-system-wrappers.pl system_wrappers |
62 |
$(INSTALL) system_wrappers $(DIST) |
63 |
|
64 |
--- ./mozilla/config/system-headers.orig 2015-07-21 22:27:54.000000000 +0200 |
65 |
+++ ./mozilla/config/system-headers 2015-07-21 22:29:34.000000000 +0200 |
66 |
@@ -1268,7 +1268,6 @@ |
67 |
X11/Xos.h |
68 |
X11/Xutil.h |
75 |
zmouse.h |
69 |
zmouse.h |
76 |
-speex/speex_resampler.h |
|
|
77 |
-soundtouch/SoundTouch.h |
70 |
-soundtouch/SoundTouch.h |
78 |
#if MOZ_NATIVE_PNG==1 |
71 |
#if MOZ_NATIVE_PNG==1 |
79 |
png.h |
72 |
png.h |
80 |
#endif |
73 |
#endif |
81 |
@@ -1119,6 +1117,8 @@ ogg/ogg.h |
74 |
@@ -1330,6 +1329,7 @@ |
|
|
75 |
theora/theoradec.h |
76 |
tremor/ivorbiscodec.h |
77 |
speex/speex_resampler.h |
78 |
+soundtouch/SoundTouch.h |
79 |
ogg/ogg.h |
82 |
ogg/os_types.h |
80 |
ogg/os_types.h |
83 |
nestegg/nestegg.h |
81 |
nestegg/nestegg.h |
84 |
cubeb/cubeb.h |
82 |
@@ -1371,3 +1371,35 @@ |
85 |
+speex/speex_resampler.h |
|
|
86 |
+soundtouch/SoundTouch.h |
87 |
#endif |
88 |
gst/gst.h |
89 |
gst/app/gstappsink.h |
90 |
@@ -1155,3 +1155,29 @@ graphite2/Segment.h |
91 |
harfbuzz/hb-ot.h |
83 |
harfbuzz/hb-ot.h |
92 |
harfbuzz/hb.h |
84 |
harfbuzz/hb.h |
93 |
#endif |
85 |
#endif |
Lines 105-110
Link Here
|
105 |
+#if MOZ_NATIVE_TREMOR==1 |
97 |
+#if MOZ_NATIVE_TREMOR==1 |
106 |
+tremor/ivorbiscodec.h |
98 |
+tremor/ivorbiscodec.h |
107 |
+#endif |
99 |
+#endif |
|
|
100 |
+#if MOZ_NATIVE_CELT==1 |
101 |
+celt.h |
102 |
+celt_header.h |
103 |
+celt/celt.h |
104 |
+celt/celt_header.h |
105 |
+#endif |
108 |
+#if MOZ_NATIVE_OPUS==1 |
106 |
+#if MOZ_NATIVE_OPUS==1 |
109 |
+opus.h |
107 |
+opus.h |
110 |
+opus_multistream.h |
108 |
+opus_multistream.h |
Lines 117-127
Link Here
|
117 |
+#if MOZ_NATIVE_SOUNDTOUCH==1 |
115 |
+#if MOZ_NATIVE_SOUNDTOUCH==1 |
118 |
+soundtouch/SoundTouch.h |
116 |
+soundtouch/SoundTouch.h |
119 |
+#endif |
117 |
+#endif |
120 |
diff --git configure.in configure.in |
118 |
--- ./mozilla/media/libspeex_resampler/README_MOZILLA.orig 2015-07-21 22:39:41.000000000 +0200 |
121 |
index 87db361..7947626 100644 |
119 |
+++ ./mozilla/media/libspeex_resampler/README_MOZILLA 2015-07-21 22:39:53.000000000 +0200 |
122 |
--- mozilla/configure.in |
120 |
@@ -3,3 +3,6 @@ |
123 |
+++ mozilla/configure.in |
121 |
|
124 |
@@ -5211,6 +5211,63 @@ if test "${ac_cv_c_attribute_aligned}" != "0"; then |
122 |
It consists in the audio resampling code (resampler.c) and its header files |
|
|
123 |
dependancies, imported into the tree using the update.sh script. |
124 |
+ |
125 |
+The in-tree copy may be omitted during build by --with-system-speex. |
126 |
+Keep version in configure.in in sync on updates. |
127 |
--- ./mozilla/media/libtheora/README_MOZILLA.orig 2015-07-21 22:40:00.000000000 +0200 |
128 |
+++ ./mozilla/media/libtheora/README_MOZILLA 2015-07-21 22:40:13.000000000 +0200 |
129 |
@@ -3,3 +3,6 @@ |
130 |
the addition/update of Makefile.in files for the Mozilla build system. |
131 |
|
132 |
The subversion revision used was r17578. |
133 |
+ |
134 |
+The in-tree copy may be omitted during build by --with-system-theora. |
135 |
+Keep version in configure.in in sync on updates. |
136 |
--- ./mozilla/media/libtheora/moz.build.orig 2015-07-21 22:40:25.000000000 +0200 |
137 |
+++ ./mozilla/media/libtheora/moz.build 2015-07-21 22:41:05.000000000 +0200 |
138 |
@@ -93,3 +93,5 @@ |
139 |
if CONFIG['OS_TARGET'] == 'Android': |
140 |
DEFINES['__linux__'] = True |
141 |
|
142 |
+if CONFIG['MOZ_NATIVE_OGG']: |
143 |
+ CFLAGS += CONFIG['MOZ_OGG_CFLAGS'] |
144 |
--- ./mozilla/media/libogg/README_MOZILLA.orig 2015-07-21 22:37:54.000000000 +0200 |
145 |
+++ ./mozilla/media/libogg/README_MOZILLA 2015-07-21 22:38:28.000000000 +0200 |
146 |
@@ -6,3 +6,6 @@ |
147 |
The int-types.patch address a bug that config_types.h generated from |
148 |
Linux platform can't be used on OpenSolaris directly see Mozilla bug |
149 |
449754 |
150 |
+ |
151 |
+The in-tree copy may be omitted during build by --with-system-ogg. |
152 |
+Keep version in configure.in in sync on updates. |
153 |
--- ./mozilla/media/libopus/README_MOZILLA.orig 2015-07-21 22:38:46.000000000 +0200 |
154 |
+++ ./mozilla/media/libopus/README_MOZILLA 2015-07-21 22:39:03.000000000 +0200 |
155 |
@@ -9,3 +9,6 @@ |
156 |
The upstream repository is https://git.xiph.org/opus.git |
157 |
|
158 |
The git tag/revision used was v1.1. |
159 |
+ |
160 |
+The in-tree copy may be omitted during build by --with-system-opus. |
161 |
+So, keep its pkg-config version check within configure.in in sync on updates. |
162 |
--- ./mozilla/media/libvorbis/README_MOZILLA.orig 2015-07-21 22:42:55.000000000 +0200 |
163 |
+++ ./mozilla/media/libvorbis/README_MOZILLA 2015-07-21 22:43:08.000000000 +0200 |
164 |
@@ -8,3 +8,6 @@ |
165 |
|
166 |
Some files are renamed during the copy to prevent clashes with object |
167 |
file names with other Mozilla libraries. |
168 |
+ |
169 |
+The in-tree copy may be omitted during build by --with-system-vorbis. |
170 |
+Keep version in configure.in in sync on updates. |
171 |
--- ./mozilla/media/libvorbis/moz.build.orig 2015-07-21 22:43:16.000000000 +0200 |
172 |
+++ ./mozilla/media/libvorbis/moz.build 2015-07-21 22:43:55.000000000 +0200 |
173 |
@@ -55,3 +55,6 @@ |
174 |
# Suppress warnings in third-party code. |
175 |
if CONFIG['GNU_CC']: |
176 |
CFLAGS += ['-Wno-uninitialized'] |
177 |
+ |
178 |
+if CONFIG['MOZ_NATIVE_OGG']: |
179 |
+ CFLAGS += CONFIG['MOZ_OGG_CFLAGS'] |
180 |
--- ./mozilla/media/webrtc/trunk/webrtc/modules/audio_coding/neteq/neteq.gypi.orig 2015-07-21 22:47:33.000000000 +0200 |
181 |
+++ ./mozilla/media/webrtc/trunk/webrtc/modules/audio_coding/neteq/neteq.gypi 2015-07-21 22:48:34.000000000 +0200 |
182 |
@@ -84,19 +84,11 @@ |
183 |
], |
184 |
}], |
185 |
['build_with_mozilla==1', { |
186 |
- 'include_dirs': [ |
187 |
- # Need Opus header files for the audio classifier. |
188 |
- '<(DEPTH)/../../../media/opus/celt', |
189 |
-# '<(DEPTH)/third_party/opus/src/src', |
190 |
+ 'cflags_mozilla': [ |
191 |
+ '$(filter -I%, $(MOZ_CELT_CFLAGS))/celt', |
192 |
+ '$(MOZ_OPUS_CFLAGS)', |
193 |
+ '$(filter -I%, $(MOZ_OPUS_CFLAGS))/../src', |
194 |
], |
195 |
- 'direct_dependent_settings': { |
196 |
- 'include_dirs': [ |
197 |
- '../../../../../../media/opus/celt', |
198 |
- # Need Opus header files for the audio classifier. |
199 |
- '<(DEPTH)/../../../media/opus/celt', |
200 |
-# '<(DEPTH)/third_party/opus/src/src', |
201 |
- ], |
202 |
- }, |
203 |
}], |
204 |
], |
205 |
'sources': [ |
206 |
--- ./mozilla/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/opus/opus.gypi.orig 2015-07-21 22:45:37.000000000 +0200 |
207 |
+++ ./mozilla/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/opus/opus.gypi 2015-07-21 22:46:56.000000000 +0200 |
208 |
@@ -17,18 +17,11 @@ |
209 |
'conditions': [ |
210 |
['build_with_mozilla==1', { |
211 |
# Mozilla provides its own build of the opus library. |
212 |
- 'include_dirs': [ |
213 |
- '/media/libopus/include', |
214 |
- '/media/libopus/src', |
215 |
- '/media/libopus/celt', |
216 |
+ 'cflags_mozilla': [ |
217 |
+ '$(filter -I%, $(MOZ_CELT_CFLAGS))/celt', |
218 |
+ '$(MOZ_OPUS_CFLAGS)', |
219 |
+ '$(filter -I%, $(MOZ_OPUS_CFLAGS))/../src', |
220 |
], |
221 |
- 'direct_dependent_settings': { |
222 |
- 'include_dirs': [ |
223 |
- '/media/libopus/include', |
224 |
- '/media/libopus/src', |
225 |
- '/media/libopus/celt', |
226 |
- ], |
227 |
- }, |
228 |
}, { |
229 |
'dependencies': [ |
230 |
'<(DEPTH)/third_party/opus/opus.gyp:opus' |
231 |
--- ./mozilla/media/webrtc/signaling/test/moz.build.orig 2015-07-21 22:44:10.000000000 +0200 |
232 |
+++ ./mozilla/media/webrtc/signaling/test/moz.build 2015-07-21 22:44:32.000000000 +0200 |
233 |
@@ -119,6 +119,9 @@ |
234 |
if CONFIG['MOZ_NATIVE_JPEG']: |
235 |
OS_LIBS += CONFIG['MOZ_JPEG_LIBS'] |
236 |
|
237 |
+if CONFIG['MOZ_NATIVE_OPUS']: |
238 |
+ OS_LIBS += CONFIG['MOZ_OPUS_LIBS'] |
239 |
+ |
240 |
if CONFIG['MOZ_NATIVE_LIBVPX']: |
241 |
OS_LIBS += CONFIG['MOZ_LIBVPX_LIBS'] |
242 |
|
243 |
--- ./mozilla/media/libtremor/README_MOZILLA.orig 2015-07-21 22:42:11.000000000 +0200 |
244 |
+++ ./mozilla/media/libtremor/README_MOZILLA 2015-07-21 22:42:25.000000000 +0200 |
245 |
@@ -5,3 +5,6 @@ |
246 |
|
247 |
The upstream release used was http://svn.xiph.org/trunk/Tremor/ |
248 |
The subversion revision used was r17547. |
249 |
+ |
250 |
+The in-tree copy may be omitted during build by --with-system-tremor. |
251 |
+Keep version in configure.in in sync on updates. |
252 |
--- ./mozilla/media/libtremor/moz.build.orig 2015-07-21 22:42:31.000000000 +0200 |
253 |
+++ ./mozilla/media/libtremor/moz.build 2015-07-21 22:42:48.000000000 +0200 |
254 |
@@ -6,3 +6,5 @@ |
255 |
|
256 |
DIRS += ['include/tremor', 'lib'] |
257 |
|
258 |
+if CONFIG['MOZ_NATIVE_OGG']: |
259 |
+ CFLAGS += CONFIG['MOZ_OGG_CFLAGS'] |
260 |
--- ./mozilla/media/libsoundtouch/README_MOZILLA.orig 2015-07-21 22:39:12.000000000 +0200 |
261 |
+++ ./mozilla/media/libsoundtouch/README_MOZILLA 2015-07-21 22:39:27.000000000 +0200 |
262 |
@@ -6,3 +6,5 @@ |
263 |
using the script `update.sh`. Some changes have been made to the files, using |
264 |
the patch `moz-libsoundtouch.patch`. We also use a custom soundtouch_config.h. |
265 |
|
266 |
+The in-tree copy may be omitted during build by --with-system-soundtouch. |
267 |
+Keep version in configure.in in sync on updates. |
268 |
--- ./mozilla/media/libcubeb/src/moz.build.orig 2015-07-21 22:37:01.000000000 +0200 |
269 |
+++ ./mozilla/media/libcubeb/src/moz.build 2015-07-21 22:37:33.000000000 +0200 |
270 |
@@ -71,6 +71,9 @@ |
271 |
|
272 |
FINAL_LIBRARY = 'gkmedias' |
273 |
|
274 |
+if CONFIG['MOZ_NATIVE_SPEEX']: |
275 |
+ SOURCES['cubeb_resampler.cpp'].flags += CONFIG['MOZ_SPEEX_CFLAGS'] |
276 |
+ |
277 |
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': |
278 |
CFLAGS += [ |
279 |
'-I%s/%s' % (CONFIG['ANDROID_SOURCE'], d) for d in [ |
280 |
--- ./mozilla/dom/media/AudioStream.h.orig 2015-07-21 22:34:56.000000000 +0200 |
281 |
+++ ./mozilla/dom/media/AudioStream.h 2015-07-21 22:35:18.000000000 +0200 |
282 |
@@ -17,7 +17,7 @@ |
283 |
#include "CubebUtils.h" |
284 |
|
285 |
namespace soundtouch { |
286 |
-class SoundTouch; |
287 |
+class MOZ_IMPORT_API SoundTouch; |
288 |
} |
289 |
|
290 |
namespace mozilla { |
291 |
--- ./mozilla/dom/media/moz.build.orig 2015-07-21 22:35:30.000000000 +0200 |
292 |
+++ ./mozilla/dom/media/moz.build 2015-07-21 22:36:41.000000000 +0200 |
293 |
@@ -280,6 +280,27 @@ |
294 |
CFLAGS += CONFIG['GSTREAMER_CFLAGS'] |
295 |
CXXFLAGS += CONFIG['GSTREAMER_CFLAGS'] |
296 |
|
297 |
+if CONFIG['MOZ_NATIVE_OGG']: |
298 |
+ CXXFLAGS += CONFIG['MOZ_OGG_CFLAGS'] |
299 |
+ |
300 |
+if CONFIG['MOZ_NATIVE_THEORA']: |
301 |
+ CXXFLAGS += CONFIG['MOZ_THEORA_CFLAGS'] |
302 |
+ |
303 |
+if CONFIG['MOZ_NATIVE_VORBIS']: |
304 |
+ CXXFLAGS += CONFIG['MOZ_VORBIS_CFLAGS'] |
305 |
+ |
306 |
+if CONFIG['MOZ_NATIVE_TREMOR']: |
307 |
+ CXXFLAGS += CONFIG['MOZ_TREMOR_CFLAGS'] |
308 |
+ |
309 |
+if CONFIG['MOZ_NATIVE_OPUS']: |
310 |
+ CXXFLAGS += CONFIG['MOZ_OPUS_CFLAGS'] |
311 |
+ |
312 |
+if CONFIG['MOZ_NATIVE_SPEEX']: |
313 |
+ CXXFLAGS += CONFIG['MOZ_SPEEX_CFLAGS'] |
314 |
+ |
315 |
+if CONFIG['MOZ_NATIVE_SOUNDTOUCH']: |
316 |
+ CXXFLAGS += CONFIG['MOZ_SOUNDTOUCH_CFLAGS'] |
317 |
+ |
318 |
include('/ipc/chromium/chromium-config.mozbuild') |
319 |
|
320 |
# Suppress some GCC warnings being treated as errors: |
321 |
--- ./mozilla/xpcom/build/XPCOMInit.cpp.orig 2015-07-21 22:50:47.000000000 +0200 |
322 |
+++ ./mozilla/xpcom/build/XPCOMInit.cpp 2015-07-21 22:53:32.000000000 +0200 |
323 |
@@ -141,7 +141,9 @@ |
324 |
#include "mozilla/VisualEventTracer.h" |
325 |
#endif |
326 |
|
327 |
+#ifndef MOZ_OGG_NO_MEM_REPORTING |
328 |
#include "ogg/ogg.h" |
329 |
+#endif |
330 |
#if defined(MOZ_VPX) && !defined(MOZ_VPX_NO_MEM_REPORTING) |
331 |
#if defined(HAVE_STDINT_H) |
332 |
// mozilla-config.h defines HAVE_STDINT_H, and then it's defined *again* in |
333 |
@@ -669,11 +671,13 @@ |
334 |
// this oddness. |
335 |
mozilla::SetICUMemoryFunctions(); |
336 |
|
337 |
+#ifndef MOZ_OGG_NO_MEM_REPORTING |
338 |
// Do the same for libogg. |
339 |
ogg_set_mem_functions(OggReporter::CountingMalloc, |
340 |
OggReporter::CountingCalloc, |
341 |
OggReporter::CountingRealloc, |
342 |
OggReporter::CountingFree); |
343 |
+#endif |
344 |
|
345 |
#if defined(MOZ_VPX) && !defined(MOZ_VPX_NO_MEM_REPORTING) |
346 |
// And for VPX. |
347 |
--- ./mozilla/toolkit/library/moz.build.orig 2015-07-21 22:49:27.000000000 +0200 |
348 |
+++ ./mozilla/toolkit/library/moz.build 2015-07-21 22:50:12.000000000 +0200 |
349 |
@@ -226,6 +226,30 @@ |
350 |
if CONFIG['MOZ_NATIVE_HUNSPELL']: |
351 |
OS_LIBS += CONFIG['MOZ_HUNSPELL_LIBS'] |
352 |
|
353 |
+if CONFIG['MOZ_NATIVE_OGG']: |
354 |
+ OS_LIBS += CONFIG['MOZ_OGG_LIBS'] |
355 |
+ |
356 |
+if CONFIG['MOZ_NATIVE_THEORA']: |
357 |
+ OS_LIBS += CONFIG['MOZ_THEORA_LIBS'] |
358 |
+ |
359 |
+if CONFIG['MOZ_NATIVE_VORBIS']: |
360 |
+ OS_LIBS += CONFIG['MOZ_VORBIS_LIBS'] |
361 |
+ |
362 |
+if CONFIG['MOZ_NATIVE_TREMOR']: |
363 |
+ OS_LIBS += CONFIG['MOZ_TREMOR_LIBS'] |
364 |
+ |
365 |
+if CONFIG['MOZ_NATIVE_CELT']: |
366 |
+ OS_LIBS += CONFIG['MOZ_CELT_LIBS'] |
367 |
+ |
368 |
+if CONFIG['MOZ_NATIVE_OPUS']: |
369 |
+ OS_LIBS += CONFIG['MOZ_OPUS_LIBS'] |
370 |
+ |
371 |
+if CONFIG['MOZ_NATIVE_SPEEX']: |
372 |
+ OS_LIBS += CONFIG['MOZ_SPEEX_LIBS'] |
373 |
+ |
374 |
+if CONFIG['MOZ_NATIVE_SOUNDTOUCH']: |
375 |
+ OS_LIBS += CONFIG['MOZ_SOUNDTOUCH_LIBS'] |
376 |
+ |
377 |
if CONFIG['MOZ_NATIVE_LIBEVENT']: |
378 |
OS_LIBS += CONFIG['MOZ_LIBEVENT_LIBS'] |
379 |
|
380 |
--- ./mozilla/configure.in.orig 2015-07-21 22:29:55.000000000 +0200 |
381 |
+++ ./mozilla/configure.in 2015-07-21 22:34:38.000000000 +0200 |
382 |
@@ -5251,6 +5251,157 @@ |
125 |
fi |
383 |
fi |
126 |
|
384 |
|
127 |
dnl ======================================================== |
385 |
dnl ======================================================== |
Lines 144-151
Link Here
|
144 |
+fi |
402 |
+fi |
145 |
+ |
403 |
+ |
146 |
+AC_SUBST(MOZ_NATIVE_OGG) |
404 |
+AC_SUBST(MOZ_NATIVE_OGG) |
147 |
+AC_SUBST(MOZ_OGG_CFLAGS) |
|
|
148 |
+AC_SUBST(MOZ_OGG_LIBS) |
149 |
+ |
405 |
+ |
150 |
+dnl ======================================================== |
406 |
+dnl ======================================================== |
151 |
+dnl Check for libvorbis |
407 |
+dnl Check for libvorbis |
Lines 161-168
Link Here
|
161 |
+fi |
417 |
+fi |
162 |
+ |
418 |
+ |
163 |
+AC_SUBST(MOZ_NATIVE_VORBIS) |
419 |
+AC_SUBST(MOZ_NATIVE_VORBIS) |
164 |
+AC_SUBST(MOZ_VORBIS_CFLAGS) |
|
|
165 |
+AC_SUBST(MOZ_VORBIS_LIBS) |
166 |
+ |
420 |
+ |
167 |
+dnl ======================================================== |
421 |
+dnl ======================================================== |
168 |
+dnl Check for integer-only libvorbis aka tremor |
422 |
+dnl Check for integer-only libvorbis aka tremor |
Lines 178-194
Link Here
|
178 |
+fi |
432 |
+fi |
179 |
+ |
433 |
+ |
180 |
+AC_SUBST(MOZ_NATIVE_TREMOR) |
434 |
+AC_SUBST(MOZ_NATIVE_TREMOR) |
181 |
+AC_SUBST(MOZ_TREMOR_CFLAGS) |
|
|
182 |
+AC_SUBST(MOZ_TREMOR_LIBS) |
183 |
+ |
435 |
+ |
184 |
+dnl ======================================================== |
436 |
+dnl ======================================================== |
185 |
dnl = Disable Opus audio codec support |
437 |
+dnl Check for libcelt |
186 |
dnl ======================================================== |
438 |
+dnl ======================================================== |
187 |
MOZ_ARG_DISABLE_BOOL(opus, |
439 |
+ |
188 |
@@ -5219,6 +5274,97 @@ MOZ_ARG_DISABLE_BOOL(opus, |
440 |
+MOZ_ARG_WITH_BOOL(system-celt, |
189 |
MOZ_OPUS=1) |
441 |
+[ --with-system-celt Use system libcelt (located with pkgconfig)], |
190 |
|
442 |
+MOZ_NATIVE_CELT=1, |
191 |
dnl ======================================================== |
443 |
+MOZ_NATIVE_CELT=) |
|
|
444 |
+ |
445 |
+if test -n "$MOZ_NATIVE_CELT"; then |
446 |
+ PKG_CHECK_MODULES(MOZ_CELT, celt) |
447 |
+else |
448 |
+ MOZ_CELT_CFLAGS='-I$(topsrcdir)/media/libopus' |
449 |
+fi |
450 |
+ |
451 |
+AC_SUBST(MOZ_NATIVE_CELT) |
452 |
+ |
453 |
+dnl ======================================================== |
192 |
+dnl Check for libopus |
454 |
+dnl Check for libopus |
193 |
+dnl ======================================================== |
455 |
+dnl ======================================================== |
194 |
+ |
456 |
+ |
Lines 204-211
Link Here
|
204 |
+fi |
466 |
+fi |
205 |
+ |
467 |
+ |
206 |
+AC_SUBST(MOZ_NATIVE_OPUS) |
468 |
+AC_SUBST(MOZ_NATIVE_OPUS) |
207 |
+AC_SUBST(MOZ_OPUS_CFLAGS) |
|
|
208 |
+AC_SUBST(MOZ_OPUS_LIBS) |
209 |
+ |
469 |
+ |
210 |
+dnl ======================================================== |
470 |
+dnl ======================================================== |
211 |
+dnl Check for libtheora |
471 |
+dnl Check for libtheora |
Lines 221-228
Link Here
|
221 |
+fi |
481 |
+fi |
222 |
+ |
482 |
+ |
223 |
+AC_SUBST(MOZ_NATIVE_THEORA) |
483 |
+AC_SUBST(MOZ_NATIVE_THEORA) |
224 |
+AC_SUBST(MOZ_THEORA_CFLAGS) |
|
|
225 |
+AC_SUBST(MOZ_THEORA_LIBS) |
226 |
+ |
484 |
+ |
227 |
+dnl ======================================================== |
485 |
+dnl ======================================================== |
228 |
+dnl Check for libspeex resampler |
486 |
+dnl Check for libspeex resampler |
Lines 238-245
Link Here
|
238 |
+fi |
496 |
+fi |
239 |
+ |
497 |
+ |
240 |
+AC_SUBST(MOZ_NATIVE_SPEEX) |
498 |
+AC_SUBST(MOZ_NATIVE_SPEEX) |
241 |
+AC_SUBST(MOZ_SPEEX_CFLAGS) |
|
|
242 |
+AC_SUBST(MOZ_SPEEX_LIBS) |
243 |
+ |
499 |
+ |
244 |
+dnl ======================================================== |
500 |
+dnl ======================================================== |
245 |
+dnl Check for libsoundtouch |
501 |
+dnl Check for libsoundtouch |
Lines 276-492
Link Here
|
276 |
+fi |
532 |
+fi |
277 |
+ |
533 |
+ |
278 |
+AC_SUBST(MOZ_NATIVE_SOUNDTOUCH) |
534 |
+AC_SUBST(MOZ_NATIVE_SOUNDTOUCH) |
279 |
+AC_SUBST(MOZ_SOUNDTOUCH_CFLAGS) |
|
|
280 |
+AC_SUBST(MOZ_SOUNDTOUCH_LIBS) |
281 |
+ |
535 |
+ |
282 |
+dnl ======================================================== |
536 |
+dnl ======================================================== |
283 |
dnl = Disable VP8 decoder support |
537 |
dnl = Disable VP8 decoder support |
284 |
dnl ======================================================== |
538 |
dnl ======================================================== |
285 |
MOZ_ARG_DISABLE_BOOL(webm, |
539 |
MOZ_ARG_DISABLE_BOOL(webm, |
286 |
diff --git content/media/AudioStream.h content/media/AudioStream.h |
|
|
287 |
index 085676d..00c54fb 100644 |
288 |
--- mozilla/content/media/AudioStream.h |
289 |
+++ mozilla/content/media/AudioStream.h |
290 |
@@ -26,7 +26,7 @@ public: |
291 |
}; |
292 |
|
293 |
namespace soundtouch { |
294 |
-class SoundTouch; |
295 |
+class MOZ_IMPORT_API SoundTouch; |
296 |
} |
297 |
|
298 |
namespace mozilla { |
299 |
diff --git content/media/Makefile.in content/media/Makefile.in |
300 |
index fd34449..c6c42c8 100644 |
301 |
--- mozilla/content/media/Makefile.in |
302 |
+++ mozilla/content/media/Makefile.in |
303 |
@@ -6,3 +6,31 @@ include $(topsrcdir)/config/rules.mk |
304 |
|
305 |
CFLAGS += $(GSTREAMER_CFLAGS) |
306 |
CXXFLAGS += $(GSTREAMER_CFLAGS) |
307 |
+ |
308 |
+ifdef MOZ_NATIVE_OGG |
309 |
+CXXFLAGS += $(MOZ_OGG_CFLAGS) |
310 |
+endif |
311 |
+ |
312 |
+ifdef MOZ_NATIVE_THEORA |
313 |
+CXXFLAGS += $(MOZ_THEORA_CFLAGS) |
314 |
+endif |
315 |
+ |
316 |
+ifdef MOZ_NATIVE_VORBIS |
317 |
+CXXFLAGS += $(MOZ_VORBIS_CFLAGS) |
318 |
+endif |
319 |
+ |
320 |
+ifdef MOZ_NATIVE_TREMOR |
321 |
+CXXFLAGS += $(MOZ_TREMOR_CFLAGS) |
322 |
+endif |
323 |
+ |
324 |
+ifdef MOZ_NATIVE_OPUS |
325 |
+CXXFLAGS += $(MOZ_OPUS_CFLAGS) |
326 |
+endif |
327 |
+ |
328 |
+ifdef MOZ_NATIVE_SPEEX |
329 |
+CXXFLAGS += $(MOZ_SPEEX_CFLAGS) |
330 |
+endif |
331 |
+ |
332 |
+ifdef MOZ_NATIVE_SOUNDTOUCH |
333 |
+CXXFLAGS += $(MOZ_SOUNDTOUCH_CFLAGS) |
334 |
+endif |
335 |
diff --git media/libcubeb/src/Makefile.in media/libcubeb/src/Makefile.in |
336 |
index 4c14494..1cb98e2 100644 |
337 |
--- mozilla/media/libcubeb/src/Makefile.in |
338 |
+++ mozilla/media/libcubeb/src/Makefile.in |
339 |
@@ -9,3 +9,7 @@ CFLAGS += \ |
340 |
$(MOZ_ALSA_CFLAGS) \ |
341 |
$(MOZ_PULSEAUDIO_CFLAGS) \ |
342 |
$(NULL) |
343 |
+ |
344 |
+ifdef MOZ_NATIVE_SPEEX |
345 |
+CFLAGS += $(MOZ_SPEEX_CFLAGS) |
346 |
+endif |
347 |
diff --git media/libtheora/Makefile.in media/libtheora/Makefile.in |
348 |
new file mode 100644 |
349 |
index 0000000..1f02dc0 |
350 |
--- /dev/null |
351 |
+++ mozilla/media/libtheora/Makefile.in |
352 |
@@ -0,0 +1,9 @@ |
353 |
+# This Source Code Form is subject to the terms of the Mozilla Public |
354 |
+# License, v. 2.0. If a copy of the MPL was not distributed with this |
355 |
+# file, You can obtain one at http://mozilla.org/MPL/2.0/. |
356 |
+ |
357 |
+include $(topsrcdir)/config/rules.mk |
358 |
+ |
359 |
+ifdef MOZ_NATIVE_OGG |
360 |
+CFLAGS += $(MOZ_OGG_CFLAGS) |
361 |
+endif |
362 |
diff --git media/libtremor/Makefile.in media/libtremor/Makefile.in |
363 |
new file mode 100644 |
364 |
index 0000000..1f02dc0 |
365 |
--- /dev/null |
366 |
+++ mozilla/media/libtremor/Makefile.in |
367 |
@@ -0,0 +1,9 @@ |
368 |
+# This Source Code Form is subject to the terms of the Mozilla Public |
369 |
+# License, v. 2.0. If a copy of the MPL was not distributed with this |
370 |
+# file, You can obtain one at http://mozilla.org/MPL/2.0/. |
371 |
+ |
372 |
+include $(topsrcdir)/config/rules.mk |
373 |
+ |
374 |
+ifdef MOZ_NATIVE_OGG |
375 |
+CFLAGS += $(MOZ_OGG_CFLAGS) |
376 |
+endif |
377 |
diff --git media/libvorbis/Makefile.in media/libvorbis/Makefile.in |
378 |
new file mode 100644 |
379 |
index 0000000..1f02dc0 |
380 |
--- /dev/null |
381 |
+++ mozilla/media/libvorbis/Makefile.in |
382 |
@@ -0,0 +1,9 @@ |
383 |
+# This Source Code Form is subject to the terms of the Mozilla Public |
384 |
+# License, v. 2.0. If a copy of the MPL was not distributed with this |
385 |
+# file, You can obtain one at http://mozilla.org/MPL/2.0/. |
386 |
+ |
387 |
+include $(topsrcdir)/config/rules.mk |
388 |
+ |
389 |
+ifdef MOZ_NATIVE_OGG |
390 |
+CFLAGS += $(MOZ_OGG_CFLAGS) |
391 |
+endif |
392 |
diff --git media/webrtc/signaling/test/Makefile.in media/webrtc/signaling/test/Makefile.in |
393 |
index bbc971c..6ed7e41 100644 |
394 |
--- mozilla/media/webrtc/signaling/test/Makefile.in |
395 |
+++ mozilla/media/webrtc/signaling/test/Makefile.in |
396 |
@@ -48,6 +48,12 @@ LIBS += \ |
397 |
$(NULL) |
398 |
endif |
399 |
|
400 |
+ifdef MOZ_NATIVE_OPUS |
401 |
+LIBS += \ |
402 |
+ $(MOZ_OPUS_LIBS) \ |
403 |
+ $(NULL) |
404 |
+endif |
405 |
+ |
406 |
ifdef MOZ_NATIVE_LIBVPX |
407 |
LIBS += \ |
408 |
$(MOZ_LIBVPX_LIBS) \ |
409 |
diff --git media/webrtc/trunk/webrtc/modules/audio_coding/codecs/opus/opus.gypi media/webrtc/trunk/webrtc/modules/audio_coding/codecs/opus/opus.gypi |
410 |
index 00e77e7..55f48ab 100644 |
411 |
--- mozilla/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/opus/opus.gypi |
412 |
+++ mozilla/media/webrtc/trunk/webrtc/modules/audio_coding/codecs/opus/opus.gypi |
413 |
@@ -14,9 +14,9 @@ |
414 |
'conditions': [ |
415 |
['build_with_mozilla==1', { |
416 |
# Mozilla provides its own build of the opus library. |
417 |
- 'include_dirs': [ |
418 |
- '/media/libopus/include', |
419 |
- ] |
420 |
+ 'cflags_mozilla': [ |
421 |
+ '$(MOZ_OPUS_CFLAGS)', |
422 |
+ ], |
423 |
}, { |
424 |
'dependencies': [ |
425 |
'<(DEPTH)/third_party/opus/opus.gyp:opus' |
426 |
diff --git toolkit/library/libxul.mk toolkit/library/libxul.mk |
427 |
index d42137a..695e75a8 100644 |
428 |
--- mozilla/toolkit/library/libxul.mk |
429 |
+++ mozilla/toolkit/library/libxul.mk |
430 |
@@ -77,6 +77,34 @@ ifdef MOZ_NATIVE_HUNSPELL |
431 |
EXTRA_DSO_LDOPTS += $(MOZ_HUNSPELL_LIBS) |
432 |
endif |
433 |
|
434 |
+ifdef MOZ_NATIVE_OGG |
435 |
+EXTRA_DSO_LDOPTS += $(MOZ_OGG_LIBS) |
436 |
+endif |
437 |
+ |
438 |
+ifdef MOZ_NATIVE_THEORA |
439 |
+EXTRA_DSO_LDOPTS += $(MOZ_THEORA_LIBS) |
440 |
+endif |
441 |
+ |
442 |
+ifdef MOZ_NATIVE_VORBIS |
443 |
+EXTRA_DSO_LDOPTS += $(MOZ_VORBIS_LIBS) |
444 |
+endif |
445 |
+ |
446 |
+ifdef MOZ_NATIVE_TREMOR |
447 |
+EXTRA_DSO_LDOPTS += $(MOZ_TREMOR_LIBS) |
448 |
+endif |
449 |
+ |
450 |
+ifdef MOZ_NATIVE_OPUS |
451 |
+EXTRA_DSO_LDOPTS += $(MOZ_OPUS_LIBS) |
452 |
+endif |
453 |
+ |
454 |
+ifdef MOZ_NATIVE_SPEEX |
455 |
+EXTRA_DSO_LDOPTS += $(MOZ_SPEEX_LIBS) |
456 |
+endif |
457 |
+ |
458 |
+ifdef MOZ_NATIVE_SOUNDTOUCH |
459 |
+EXTRA_DSO_LDOPTS += $(MOZ_SOUNDTOUCH_LIBS) |
460 |
+endif |
461 |
+ |
462 |
ifdef MOZ_NATIVE_LIBEVENT |
463 |
EXTRA_DSO_LDOPTS += $(MOZ_LIBEVENT_LIBS) |
464 |
endif |
465 |
diff --git xpcom/build/nsXPComInit.cpp xpcom/build/nsXPComInit.cpp |
466 |
index 2cf281e..6d7af0e 100644 |
467 |
--- mozilla/xpcom/build/nsXPComInit.cpp |
468 |
+++ mozilla/xpcom/build/nsXPComInit.cpp |
469 |
@@ -130,7 +130,9 @@ extern nsresult nsStringInputStreamConstructor(nsISupports *, REFNSIID, void **) |
470 |
#include "mozilla/VisualEventTracer.h" |
471 |
#endif |
472 |
|
473 |
+#ifndef MOZ_OGG_NO_MEM_REPORTING |
474 |
#include "ogg/ogg.h" |
475 |
+#endif |
476 |
#if defined(MOZ_VPX) && !defined(MOZ_VPX_NO_MEM_REPORTING) |
477 |
#include "vpx_mem/vpx_mem.h" |
478 |
#endif |
479 |
@@ -571,11 +573,13 @@ NS_InitXPCOM2(nsIServiceManager* *result, |
480 |
// this oddness. |
481 |
mozilla::SetICUMemoryFunctions(); |
482 |
|
483 |
+#ifndef MOZ_OGG_NO_MEM_REPORTING |
484 |
// Do the same for libogg. |
485 |
ogg_set_mem_functions(OggReporter::CountingMalloc, |
486 |
OggReporter::CountingCalloc, |
487 |
OggReporter::CountingRealloc, |
488 |
OggReporter::CountingFree); |
489 |
+#endif |
490 |
|
491 |
#if defined(MOZ_VPX) && !defined(MOZ_VPX_NO_MEM_REPORTING) |
492 |
// And for VPX. |