From 87046baee51e1b87b0fd8bb98d18e18568fbf76f Mon Sep 17 00:00:00 2001 From: Ralph Giles Date: Tue, 29 Dec 2015 16:33:31 -0800 Subject: [PATCH] Bug 1229475 - Fix unified build. r=cpearce This was hacked in without fixing the update script to propagate it. Put it back manually for now, and add two new conflicting files. --- media/libopus/moz.build | 1 + media/libopus/nonunified.patch | 34 ++++++++++++++++++++++++++++++++++ media/libopus/sources.mozbuild | 11 +++++++---- media/libopus/update.sh | 1 + 4 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 media/libopus/nonunified.patch diff --git a/media/libopus/moz.build b/media/libopus/moz.build index 9224be06e3c2..d8486ba4b005 100644 --- a/media/libopus/moz.build +++ b/media/libopus/moz.build @@ -72,6 +72,7 @@ include('sources.mozbuild') UNIFIED_SOURCES += celt_sources UNIFIED_SOURCES += silk_sources UNIFIED_SOURCES += opus_sources +SOURCES += opus_nonunified_sources if CONFIG['MOZ_SAMPLE_TYPE_FLOAT32']: LOCAL_INCLUDES += [ diff --git a/media/libopus/nonunified.patch b/media/libopus/nonunified.patch new file mode 100644 index 000000000000..571a3ffd837a --- /dev/null +++ b/media/libopus/nonunified.patch @@ -0,0 +1,34 @@ +--- sources.mozbuild- 2015-12-31 01:09:35.663118019 -0800 ++++ sources.mozbuild 2015-12-31 01:12:04.970093876 -0800 +@@ -2,8 +2,6 @@ + celt_sources = [ + 'celt/bands.c', + 'celt/celt.c', +- 'celt/celt_decoder.c', +- 'celt/celt_encoder.c', + 'celt/celt_lpc.c', + 'celt/cwrs.c', + 'celt/entcode.c', +@@ -20,6 +18,13 @@ + 'celt/vq.c', + ] + ++opus_nonunified_sources = [ ++ 'celt/celt_decoder.c', ++ 'celt/celt_encoder.c', ++ 'silk/LPC_inv_pred_gain.c', ++ 'silk/NLSF2A.c', ++] ++ + celt_sources_sse = [ + 'celt/x86/pitch_sse.c', + 'celt/x86/x86_celt_map.c', +@@ -105,8 +110,6 @@ + 'silk/log2lin.c', + 'silk/LP_variable_cutoff.c', + 'silk/LPC_analysis_filter.c', +- 'silk/LPC_inv_pred_gain.c', +- 'silk/NLSF2A.c', + 'silk/NLSF_decode.c', + 'silk/NLSF_del_dec_quant.c', + 'silk/NLSF_encode.c', diff --git a/media/libopus/sources.mozbuild b/media/libopus/sources.mozbuild index 8a39b9f038c7..f79ec739959a 100644 --- a/media/libopus/sources.mozbuild +++ b/media/libopus/sources.mozbuild @@ -2,8 +2,6 @@ celt_sources = [ 'celt/bands.c', 'celt/celt.c', - 'celt/celt_decoder.c', - 'celt/celt_encoder.c', 'celt/celt_lpc.c', 'celt/cwrs.c', 'celt/entcode.c', @@ -20,6 +18,13 @@ celt_sources = [ 'celt/vq.c', ] +opus_nonunified_sources = [ + 'celt/celt_decoder.c', + 'celt/celt_encoder.c', + 'silk/LPC_inv_pred_gain.c', + 'silk/NLSF2A.c', +] + celt_sources_sse = [ 'celt/x86/pitch_sse.c', 'celt/x86/x86_celt_map.c', @@ -105,8 +110,6 @@ silk_sources = [ 'silk/log2lin.c', 'silk/LP_variable_cutoff.c', 'silk/LPC_analysis_filter.c', - 'silk/LPC_inv_pred_gain.c', - 'silk/NLSF2A.c', 'silk/NLSF_decode.c', 'silk/NLSF_del_dec_quant.c', 'silk/NLSF_encode.c', diff --git a/media/libopus/update.sh b/media/libopus/update.sh index 9ac3acd8e0e2..a1bebe951656 100755 --- a/media/libopus/update.sh +++ b/media/libopus/update.sh @@ -76,3 +76,4 @@ python gen-sources.py $1 # apply outstanding local patches patch -p3 < ./gcc-4.8-ICE.patch patch -p1 < ./tonality_init.patch +patch -p0 < nonunified.patch