Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Commit 87046ba

Browse files
committed
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.
1 parent 009523d commit 87046ba

4 files changed

Lines changed: 43 additions & 4 deletions

File tree

media/libopus/moz.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ include('sources.mozbuild')
7272
UNIFIED_SOURCES += celt_sources
7373
UNIFIED_SOURCES += silk_sources
7474
UNIFIED_SOURCES += opus_sources
75+
SOURCES += opus_nonunified_sources
7576

7677
if CONFIG['MOZ_SAMPLE_TYPE_FLOAT32']:
7778
LOCAL_INCLUDES += [

media/libopus/nonunified.patch

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
--- sources.mozbuild- 2015-12-31 01:09:35.663118019 -0800
2+
+++ sources.mozbuild 2015-12-31 01:12:04.970093876 -0800
3+
@@ -2,8 +2,6 @@
4+
celt_sources = [
5+
'celt/bands.c',
6+
'celt/celt.c',
7+
- 'celt/celt_decoder.c',
8+
- 'celt/celt_encoder.c',
9+
'celt/celt_lpc.c',
10+
'celt/cwrs.c',
11+
'celt/entcode.c',
12+
@@ -20,6 +18,13 @@
13+
'celt/vq.c',
14+
]
15+
16+
+opus_nonunified_sources = [
17+
+ 'celt/celt_decoder.c',
18+
+ 'celt/celt_encoder.c',
19+
+ 'silk/LPC_inv_pred_gain.c',
20+
+ 'silk/NLSF2A.c',
21+
+]
22+
+
23+
celt_sources_sse = [
24+
'celt/x86/pitch_sse.c',
25+
'celt/x86/x86_celt_map.c',
26+
@@ -105,8 +110,6 @@
27+
'silk/log2lin.c',
28+
'silk/LP_variable_cutoff.c',
29+
'silk/LPC_analysis_filter.c',
30+
- 'silk/LPC_inv_pred_gain.c',
31+
- 'silk/NLSF2A.c',
32+
'silk/NLSF_decode.c',
33+
'silk/NLSF_del_dec_quant.c',
34+
'silk/NLSF_encode.c',

media/libopus/sources.mozbuild

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
celt_sources = [
33
'celt/bands.c',
44
'celt/celt.c',
5-
'celt/celt_decoder.c',
6-
'celt/celt_encoder.c',
75
'celt/celt_lpc.c',
86
'celt/cwrs.c',
97
'celt/entcode.c',
@@ -20,6 +18,13 @@ celt_sources = [
2018
'celt/vq.c',
2119
]
2220

21+
opus_nonunified_sources = [
22+
'celt/celt_decoder.c',
23+
'celt/celt_encoder.c',
24+
'silk/LPC_inv_pred_gain.c',
25+
'silk/NLSF2A.c',
26+
]
27+
2328
celt_sources_sse = [
2429
'celt/x86/pitch_sse.c',
2530
'celt/x86/x86_celt_map.c',
@@ -105,8 +110,6 @@ silk_sources = [
105110
'silk/log2lin.c',
106111
'silk/LP_variable_cutoff.c',
107112
'silk/LPC_analysis_filter.c',
108-
'silk/LPC_inv_pred_gain.c',
109-
'silk/NLSF2A.c',
110113
'silk/NLSF_decode.c',
111114
'silk/NLSF_del_dec_quant.c',
112115
'silk/NLSF_encode.c',

media/libopus/update.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,4 @@ python gen-sources.py $1
7676
# apply outstanding local patches
7777
patch -p3 < ./gcc-4.8-ICE.patch
7878
patch -p1 < ./tonality_init.patch
79+
patch -p0 < nonunified.patch

0 commit comments

Comments
 (0)