summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar liamwhite2023-10-30 15:32:31 -0400
committerGravatar GitHub2023-10-30 15:32:31 -0400
commit22cac3a5e342e4a98d87c113b2d95b84cb5aa826 (patch)
treeae3d6c6caaae42739b0ff957593a86ba5627c040
parentMerge pull request #11908 from t895/log-spam (diff)
parentexternals/opus: use CMakeLists shipped with Opus itself (diff)
downloadyuzu-22cac3a5e342e4a98d87c113b2d95b84cb5aa826.tar.gz
yuzu-22cac3a5e342e4a98d87c113b2d95b84cb5aa826.tar.xz
yuzu-22cac3a5e342e4a98d87c113b2d95b84cb5aa826.zip
Merge pull request #11728 from liushuyu/update-deps
Update external dependencies
-rw-r--r--.gitmodules2
-rw-r--r--externals/CMakeLists.txt4
m---------externals/SDL0
m---------externals/Vulkan-Headers0
m---------externals/VulkanMemoryAllocator0
m---------externals/cpp-httplib0
m---------externals/cpp-jwt0
m---------externals/ffmpeg/ffmpeg0
m---------externals/inih/inih0
-rw-r--r--externals/libusb/CMakeLists.txt7
m---------externals/libusb/libusb0
m---------externals/opus0
-rw-r--r--externals/opus/CMakeLists.txt259
m---------externals/opus/opus0
m---------externals/vcpkg0
15 files changed, 5 insertions, 267 deletions
diff --git a/.gitmodules b/.gitmodules
index fdddb0d3a..b72a2ec8c 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -32,7 +32,7 @@
32 path = externals/xbyak 32 path = externals/xbyak
33 url = https://github.com/herumi/xbyak.git 33 url = https://github.com/herumi/xbyak.git
34[submodule "opus"] 34[submodule "opus"]
35 path = externals/opus/opus 35 path = externals/opus
36 url = https://github.com/xiph/opus.git 36 url = https://github.com/xiph/opus.git
37[submodule "SDL"] 37[submodule "SDL"]
38 path = externals/SDL 38 path = externals/SDL
diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt
index 61baabb03..be8b0b5e8 100644
--- a/externals/CMakeLists.txt
+++ b/externals/CMakeLists.txt
@@ -134,6 +134,10 @@ endif()
134 134
135# Opus 135# Opus
136if (NOT TARGET Opus::opus) 136if (NOT TARGET Opus::opus)
137 set(OPUS_BUILD_TESTING OFF)
138 set(OPUS_BUILD_PROGRAMS OFF)
139 set(OPUS_INSTALL_PKG_CONFIG_MODULE OFF)
140 set(OPUS_INSTALL_CMAKE_CONFIG_MODULE OFF)
137 add_subdirectory(opus) 141 add_subdirectory(opus)
138endif() 142endif()
139 143
diff --git a/externals/SDL b/externals/SDL
Subproject 031912c4b6c5db80b443f04aa56fec3e4e64515 Subproject cc016b0046d563287f0aa9f09b958b5e70d4369
diff --git a/externals/Vulkan-Headers b/externals/Vulkan-Headers
Subproject ed857118e243fdc0f3a100f00ac9919e874cfe6 Subproject df60f0316899460eeaaefa06d2dd7e4e300c160
diff --git a/externals/VulkanMemoryAllocator b/externals/VulkanMemoryAllocator
Subproject 9b0fc3e7b02afe97895eb3e945fe800c3a7485a Subproject 2f382df218d7e8516dee3b3caccb819a62b571a
diff --git a/externals/cpp-httplib b/externals/cpp-httplib
Subproject 6d963fbe8d415399d65e94db7910bbd22fe3741 Subproject a609330e4c6374f741d3b369269f7848255e195
diff --git a/externals/cpp-jwt b/externals/cpp-jwt
Subproject e12ef06218596b52d9b5d6e1639484866a8e706 Subproject 10ef5735d842b31025f1257ae78899f50a40fb1
diff --git a/externals/ffmpeg/ffmpeg b/externals/ffmpeg/ffmpeg
Subproject 6b6b9e593dd4d3aaf75f48d40a13ef03bdef9fd Subproject 9c1294eaddb88cb0e044c675ccae059a85fc9c6
diff --git a/externals/inih/inih b/externals/inih/inih
Subproject 1e80a47dffbda813604f0913e2ad68c7054c14e Subproject 9cecf0643da0846e77f64d10a126d9f48b9e05e
diff --git a/externals/libusb/CMakeLists.txt b/externals/libusb/CMakeLists.txt
index 6757b59da..1d50c9f8c 100644
--- a/externals/libusb/CMakeLists.txt
+++ b/externals/libusb/CMakeLists.txt
@@ -49,11 +49,6 @@ if (MINGW OR (${CMAKE_SYSTEM_NAME} MATCHES "Linux") OR APPLE)
49 49
50 set(LIBUSB_INCLUDE_DIRS "${LIBUSB_SRC_DIR}/libusb" CACHE PATH "libusb headers path" FORCE) 50 set(LIBUSB_INCLUDE_DIRS "${LIBUSB_SRC_DIR}/libusb" CACHE PATH "libusb headers path" FORCE)
51 51
52 # MINGW: causes "externals/libusb/libusb/libusb/os/windows_winusb.c:1427:2: error: conversion to non-scalar type requested", so cannot statically link it for now.
53 if (NOT MINGW)
54 set(LIBUSB_CFLAGS "-DGUID_DEVINTERFACE_USB_DEVICE=\\(GUID\\){0xA5DCBF10,0x6530,0x11D2,{0x90,0x1F,0x00,0xC0,0x4F,0xB9,0x51,0xED}}")
55 endif()
56
57 make_directory("${LIBUSB_PREFIX}") 52 make_directory("${LIBUSB_PREFIX}")
58 53
59 add_custom_command( 54 add_custom_command(
@@ -146,8 +141,6 @@ else() # MINGW OR (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
146 target_include_directories(usb BEFORE PRIVATE libusb/msvc) 141 target_include_directories(usb BEFORE PRIVATE libusb/msvc)
147 endif() 142 endif()
148 143
149 # Works around other libraries providing their own definition of USB GUIDs (e.g. SDL2)
150 target_compile_definitions(usb PRIVATE "-DGUID_DEVINTERFACE_USB_DEVICE=(GUID){ 0xA5DCBF10, 0x6530, 0x11D2, {0x90, 0x1F, 0x00, 0xC0, 0x4F, 0xB9, 0x51, 0xED}}")
151 else() 144 else()
152 target_include_directories(usb 145 target_include_directories(usb
153 # turns out other projects also have "config.h", so make sure the 146 # turns out other projects also have "config.h", so make sure the
diff --git a/externals/libusb/libusb b/externals/libusb/libusb
Subproject c6a35c56016ea2ab2f19115d2ea1e85e0edae15 Subproject c060e9ce30ac2e3ffb49d94209c4dae77b6642f
diff --git a/externals/opus b/externals/opus
new file mode 160000
Subproject 101a71e03bbf860aaafb7090a0e440675cb2766
diff --git a/externals/opus/CMakeLists.txt b/externals/opus/CMakeLists.txt
deleted file mode 100644
index d9a03423d..000000000
--- a/externals/opus/CMakeLists.txt
+++ /dev/null
@@ -1,259 +0,0 @@
1# SPDX-FileCopyrightText: 2019 yuzu Emulator Project
2# SPDX-License-Identifier: GPL-2.0-or-later
3
4cmake_minimum_required(VERSION 3.8)
5
6project(opus)
7
8option(OPUS_STACK_PROTECTOR "Use stack protection" OFF)
9option(OPUS_USE_ALLOCA "Use alloca for stack arrays (on non-C99 compilers)" OFF)
10option(OPUS_CUSTOM_MODES "Enable non-Opus modes, e.g. 44.1 kHz & 2^n frames" OFF)
11option(OPUS_FIXED_POINT "Compile as fixed-point (for machines without a fast enough FPU)" OFF)
12option(OPUS_ENABLE_FLOAT_API "Compile with the floating point API (for machines with float library" ON)
13
14include(opus/opus_functions.cmake)
15
16if(OPUS_STACK_PROTECTOR)
17 if(NOT MSVC) # GC on by default on MSVC
18 check_and_set_flag(STACK_PROTECTION_STRONG -fstack-protector-strong)
19 endif()
20else()
21 if(MSVC)
22 check_and_set_flag(BUFFER_SECURITY_CHECK /GS-)
23 endif()
24endif()
25
26add_library(opus
27 # CELT sources
28 opus/celt/bands.c
29 opus/celt/celt.c
30 opus/celt/celt_decoder.c
31 opus/celt/celt_encoder.c
32 opus/celt/celt_lpc.c
33 opus/celt/cwrs.c
34 opus/celt/entcode.c
35 opus/celt/entdec.c
36 opus/celt/entenc.c
37 opus/celt/kiss_fft.c
38 opus/celt/laplace.c
39 opus/celt/mathops.c
40 opus/celt/mdct.c
41 opus/celt/modes.c
42 opus/celt/pitch.c
43 opus/celt/quant_bands.c
44 opus/celt/rate.c
45 opus/celt/vq.c
46
47 # SILK sources
48 opus/silk/A2NLSF.c
49 opus/silk/CNG.c
50 opus/silk/HP_variable_cutoff.c
51 opus/silk/LPC_analysis_filter.c
52 opus/silk/LPC_fit.c
53 opus/silk/LPC_inv_pred_gain.c
54 opus/silk/LP_variable_cutoff.c
55 opus/silk/NLSF2A.c
56 opus/silk/NLSF_VQ.c
57 opus/silk/NLSF_VQ_weights_laroia.c
58 opus/silk/NLSF_decode.c
59 opus/silk/NLSF_del_dec_quant.c
60 opus/silk/NLSF_encode.c
61 opus/silk/NLSF_stabilize.c
62 opus/silk/NLSF_unpack.c
63 opus/silk/NSQ.c
64 opus/silk/NSQ_del_dec.c
65 opus/silk/PLC.c
66 opus/silk/VAD.c
67 opus/silk/VQ_WMat_EC.c
68 opus/silk/ana_filt_bank_1.c
69 opus/silk/biquad_alt.c
70 opus/silk/bwexpander.c
71 opus/silk/bwexpander_32.c
72 opus/silk/check_control_input.c
73 opus/silk/code_signs.c
74 opus/silk/control_SNR.c
75 opus/silk/control_audio_bandwidth.c
76 opus/silk/control_codec.c
77 opus/silk/dec_API.c
78 opus/silk/decode_core.c
79 opus/silk/decode_frame.c
80 opus/silk/decode_indices.c
81 opus/silk/decode_parameters.c
82 opus/silk/decode_pitch.c
83 opus/silk/decode_pulses.c
84 opus/silk/decoder_set_fs.c
85 opus/silk/enc_API.c
86 opus/silk/encode_indices.c
87 opus/silk/encode_pulses.c
88 opus/silk/gain_quant.c
89 opus/silk/init_decoder.c
90 opus/silk/init_encoder.c
91 opus/silk/inner_prod_aligned.c
92 opus/silk/interpolate.c
93 opus/silk/lin2log.c
94 opus/silk/log2lin.c
95 opus/silk/pitch_est_tables.c
96 opus/silk/process_NLSFs.c
97 opus/silk/quant_LTP_gains.c
98 opus/silk/resampler.c
99 opus/silk/resampler_down2.c
100 opus/silk/resampler_down2_3.c
101 opus/silk/resampler_private_AR2.c
102 opus/silk/resampler_private_IIR_FIR.c
103 opus/silk/resampler_private_down_FIR.c
104 opus/silk/resampler_private_up2_HQ.c
105 opus/silk/resampler_rom.c
106 opus/silk/shell_coder.c
107 opus/silk/sigm_Q15.c
108 opus/silk/sort.c
109 opus/silk/stereo_LR_to_MS.c
110 opus/silk/stereo_MS_to_LR.c
111 opus/silk/stereo_decode_pred.c
112 opus/silk/stereo_encode_pred.c
113 opus/silk/stereo_find_predictor.c
114 opus/silk/stereo_quant_pred.c
115 opus/silk/sum_sqr_shift.c
116 opus/silk/table_LSF_cos.c
117 opus/silk/tables_LTP.c
118 opus/silk/tables_NLSF_CB_NB_MB.c
119 opus/silk/tables_NLSF_CB_WB.c
120 opus/silk/tables_gain.c
121 opus/silk/tables_other.c
122 opus/silk/tables_pitch_lag.c
123 opus/silk/tables_pulses_per_block.c
124
125 # Opus sources
126 opus/src/analysis.c
127 opus/src/mapping_matrix.c
128 opus/src/mlp.c
129 opus/src/mlp_data.c
130 opus/src/opus.c
131 opus/src/opus_decoder.c
132 opus/src/opus_encoder.c
133 opus/src/opus_multistream.c
134 opus/src/opus_multistream_decoder.c
135 opus/src/opus_multistream_encoder.c
136 opus/src/opus_projection_decoder.c
137 opus/src/opus_projection_encoder.c
138 opus/src/repacketizer.c
139)
140
141if (DEBUG)
142 target_sources(opus PRIVATE opus/silk/debug.c)
143endif()
144
145if (OPUS_FIXED_POINT)
146 target_sources(opus PRIVATE
147 opus/silk/fixed/LTP_analysis_filter_FIX.c
148 opus/silk/fixed/LTP_scale_ctrl_FIX.c
149 opus/silk/fixed/apply_sine_window_FIX.c
150 opus/silk/fixed/autocorr_FIX.c
151 opus/silk/fixed/burg_modified_FIX.c
152 opus/silk/fixed/corrMatrix_FIX.c
153 opus/silk/fixed/encode_frame_FIX.c
154 opus/silk/fixed/find_LPC_FIX.c
155 opus/silk/fixed/find_LTP_FIX.c
156 opus/silk/fixed/find_pitch_lags_FIX.c
157 opus/silk/fixed/find_pred_coefs_FIX.c
158 opus/silk/fixed/k2a_FIX.c
159 opus/silk/fixed/k2a_Q16_FIX.c
160 opus/silk/fixed/noise_shape_analysis_FIX.c
161 opus/silk/fixed/pitch_analysis_core_FIX.c
162 opus/silk/fixed/prefilter_FIX.c
163 opus/silk/fixed/process_gains_FIX.c
164 opus/silk/fixed/regularize_correlations_FIX.c
165 opus/silk/fixed/residual_energy16_FIX.c
166 opus/silk/fixed/residual_energy_FIX.c
167 opus/silk/fixed/schur64_FIX.c
168 opus/silk/fixed/schur_FIX.c
169 opus/silk/fixed/solve_LS_FIX.c
170 opus/silk/fixed/vector_ops_FIX.c
171 opus/silk/fixed/warped_autocorrelation_FIX.c
172 )
173else()
174 target_sources(opus PRIVATE
175 opus/silk/float/LPC_analysis_filter_FLP.c
176 opus/silk/float/LPC_inv_pred_gain_FLP.c
177 opus/silk/float/LTP_analysis_filter_FLP.c
178 opus/silk/float/LTP_scale_ctrl_FLP.c
179 opus/silk/float/apply_sine_window_FLP.c
180 opus/silk/float/autocorrelation_FLP.c
181 opus/silk/float/burg_modified_FLP.c
182 opus/silk/float/bwexpander_FLP.c
183 opus/silk/float/corrMatrix_FLP.c
184 opus/silk/float/encode_frame_FLP.c
185 opus/silk/float/energy_FLP.c
186 opus/silk/float/find_LPC_FLP.c
187 opus/silk/float/find_LTP_FLP.c
188 opus/silk/float/find_pitch_lags_FLP.c
189 opus/silk/float/find_pred_coefs_FLP.c
190 opus/silk/float/inner_product_FLP.c
191 opus/silk/float/k2a_FLP.c
192 opus/silk/float/noise_shape_analysis_FLP.c
193 opus/silk/float/pitch_analysis_core_FLP.c
194 opus/silk/float/process_gains_FLP.c
195 opus/silk/float/regularize_correlations_FLP.c
196 opus/silk/float/residual_energy_FLP.c
197 opus/silk/float/scale_copy_vector_FLP.c
198 opus/silk/float/scale_vector_FLP.c
199 opus/silk/float/schur_FLP.c
200 opus/silk/float/sort_FLP.c
201 opus/silk/float/warped_autocorrelation_FLP.c
202 opus/silk/float/wrappers_FLP.c
203 )
204endif()
205
206target_compile_definitions(opus PRIVATE OPUS_BUILD ENABLE_HARDENING)
207
208if(NOT MSVC)
209 if(MINGW)
210 target_compile_definitions(opus PRIVATE _FORTIFY_SOURCE=0)
211 else()
212 target_compile_definitions(opus PRIVATE _FORTIFY_SOURCE=2)
213 endif()
214endif()
215
216# It is strongly recommended to uncomment one of these VAR_ARRAYS: Use C99
217# variable-length arrays for stack allocation USE_ALLOCA: Use alloca() for stack
218# allocation If none is defined, then the fallback is a non-threadsafe global
219# array
220if(OPUS_USE_ALLOCA OR MSVC)
221 target_compile_definitions(opus PRIVATE USE_ALLOCA)
222else()
223 target_compile_definitions(opus PRIVATE VAR_ARRAYS)
224endif()
225
226if(OPUS_CUSTOM_MODES)
227 target_compile_definitions(opus PRIVATE CUSTOM_MODES)
228endif()
229
230if(NOT OPUS_ENABLE_FLOAT_API)
231 target_compile_definitions(opus PRIVATE DISABLE_FLOAT_API)
232endif()
233
234target_compile_definitions(opus
235PUBLIC
236 -DOPUS_VERSION="\\"1.3.1\\""
237
238PRIVATE
239 # Use C99 intrinsics to speed up float-to-int conversion
240 HAVE_LRINTF
241)
242
243if (FIXED_POINT)
244 target_compile_definitions(opus PRIVATE -DFIXED_POINT=1 -DDISABLE_FLOAT_API)
245endif()
246
247target_include_directories(opus
248PUBLIC
249 opus/include
250
251PRIVATE
252 opus/celt
253 opus/silk
254 opus/silk/fixed
255 opus/silk/float
256 opus/src
257)
258
259add_library(Opus::opus ALIAS opus)
diff --git a/externals/opus/opus b/externals/opus/opus
deleted file mode 160000
Subproject ad8fe90db79b7d2a135e3dfd2ed6631b0c5662a
diff --git a/externals/vcpkg b/externals/vcpkg
Subproject cbf56573a987527b39272e88cbdd11389b78c6e Subproject ef2eef17340f3fbd679327d286fad06dd6e838e