@@ -44,6 +44,10 @@ if (LINUX)
44
44
f7_sha256
45
45
1cb946d8b7c6393c2c3ebe1f900b8de7a2885fe614c45d4ec32c9833084f2f26
46
46
)
47
+ set (
48
+ f8_sha256
49
+ c55b3c1a4b5e4d5fdd7c632bea3ab6f45b4e37cc8e0999dda3f84a8ed8defad8
50
+ )
47
51
set (
48
52
f4_library_file_names
49
53
libavutil.so.56
@@ -84,6 +88,16 @@ if (LINUX)
84
88
libswscale.so.8
85
89
libswresample.so.5
86
90
)
91
+ set (
92
+ f8_library_file_names
93
+ libavutil.so.60
94
+ libavcodec.so.62
95
+ libavformat.so.62
96
+ libavdevice.so.62
97
+ libavfilter.so.11
98
+ libswscale.so.9
99
+ libswresample.so.6
100
+ )
87
101
elseif (APPLE )
88
102
set (lib_dir "lib" )
89
103
set (
@@ -106,6 +120,10 @@ elseif (APPLE)
106
120
f7_sha256
107
121
48a4fc8ce098305cfd4a58f40889249c523ca3c285f66ba704b5bad0e3ada53a
108
122
)
123
+ set (
124
+ f8_sha256
125
+ beb936b76f25d2621228a12cdb67c9ae3d1eff7aa713ef8d1167ebf0c25bd5ec
126
+ )
109
127
110
128
set (
111
129
f4_library_file_names
@@ -147,6 +165,16 @@ elseif (APPLE)
147
165
libswscale.8.dylib
148
166
libswresample.5.dylib
149
167
)
168
+ set (
169
+ f8_library_file_names
170
+ libavutil.60.dylib
171
+ libavcodec.62.dylib
172
+ libavformat.62.dylib
173
+ libavdevice.62.dylib
174
+ libavfilter.11.dylib
175
+ libswscale.9.dylib
176
+ libswresample.6.dylib
177
+ )
150
178
151
179
elseif (WIN32 )
152
180
set (lib_dir "bin" )
@@ -170,6 +198,10 @@ elseif (WIN32)
170
198
f7_sha256
171
199
ae391ace382330e912793b70b68529ee7c91026d2869b4df7e7c3e7d3656bdd5
172
200
)
201
+ set (
202
+ f8_sha256
203
+ bac845ac79876b104959cb0e7b9dec772a261116344dd17d2f97e7ddfac4a73f
204
+ )
173
205
174
206
set (
175
207
f4_library_file_names
@@ -211,6 +243,16 @@ elseif (WIN32)
211
243
swscale.lib
212
244
swresample.lib
213
245
)
246
+ set (
247
+ f8_library_file_names
248
+ avutil.lib
249
+ avcodec.lib
250
+ avformat.lib
251
+ avdevice.lib
252
+ avfilter.lib
253
+ swscale.lib
254
+ swresample.lib
255
+ )
214
256
else ()
215
257
message (
216
258
FATAL_ERROR
@@ -242,19 +284,27 @@ FetchContent_Declare(
242
284
URL_HASH
243
285
SHA256=${f7_sha256}
244
286
)
287
+ FetchContent_Declare(
288
+ f8
289
+ URL ${platform_url} /8.0.tar.gz
290
+ URL_HASH
291
+ SHA256=${f8_sha256}
292
+ )
245
293
246
- FetchContent_MakeAvailable(f4 f5 f6 f7)
294
+ FetchContent_MakeAvailable(f4 f5 f6 f7 f8 )
247
295
248
296
add_library (ffmpeg4 INTERFACE )
249
297
add_library (ffmpeg5 INTERFACE )
250
298
add_library (ffmpeg6 INTERFACE )
251
299
add_library (ffmpeg7 INTERFACE )
300
+ add_library (ffmpeg8 INTERFACE )
252
301
253
302
# Note: the f?_SOURCE_DIR variables were set by FetchContent_MakeAvailable
254
303
target_include_directories (ffmpeg4 INTERFACE ${f4_SOURCE_DIR} /include )
255
304
target_include_directories (ffmpeg5 INTERFACE ${f5_SOURCE_DIR} /include )
256
305
target_include_directories (ffmpeg6 INTERFACE ${f6_SOURCE_DIR} /include )
257
306
target_include_directories (ffmpeg7 INTERFACE ${f7_SOURCE_DIR} /include )
307
+ target_include_directories (ffmpeg8 INTERFACE ${f8_SOURCE_DIR} /include )
258
308
259
309
260
310
list (
@@ -277,6 +327,11 @@ list(
277
327
PREPEND ${f7_SOURCE_DIR} /${lib_dir} /
278
328
OUTPUT_VARIABLE f7_library_paths
279
329
)
330
+ list (
331
+ TRANSFORM f8_library_file_names
332
+ PREPEND ${f8_SOURCE_DIR} /${lib_dir} /
333
+ OUTPUT_VARIABLE f8_library_paths
334
+ )
280
335
281
336
target_link_libraries (
282
337
ffmpeg4
@@ -298,3 +353,8 @@ target_link_libraries(
298
353
INTERFACE
299
354
${f7_library_paths}
300
355
)
356
+ target_link_libraries (
357
+ ffmpeg8
358
+ INTERFACE
359
+ ${f8_library_paths}
360
+ )
0 commit comments