summaryrefslogtreecommitdiff
path: root/src/codec
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2024-11-12 15:53:02 -0500
committerAndrew Opalach <andrew@akon.city> 2024-11-12 15:53:02 -0500
commitbacabb8f2b488b3da58dc3ea4159326298a003f6 (patch)
tree958590c851b3480c69eb43a969c4ecc6543e7042 /src/codec
parent29fa4f8d667d543595e652e7402d395d507ba464 (diff)
downloadcamu-bacabb8f2b488b3da58dc3ea4159326298a003f6.tar.gz
camu-bacabb8f2b488b3da58dc3ea4159326298a003f6.tar.bz2
camu-bacabb8f2b488b3da58dc3ea4159326298a003f6.zip
Android cross-compile
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/codec')
-rw-r--r--src/codec/meson.build14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/codec/meson.build b/src/codec/meson.build
index d27099a..32a942e 100644
--- a/src/codec/meson.build
+++ b/src/codec/meson.build
@@ -32,12 +32,14 @@ if get_option('codecs').contains('ffmpeg')
libavcodec = ffmpeg_proj.get_variable('avcodec')
libswresample = ffmpeg_proj.get_variable('swresample')
libswscale = ffmpeg_proj.get_variable('swscale')
- # Only used to set include dirs for ffmpeg.
- ffmpeg_inc_dep = ffmpeg_proj.get_variable('ffmpeg_inc_dep')
- # Extra static dependencies.
- zlib = dependency('zlib')
- bcrypt = compiler.find_library('bcrypt')
- ffmpeg_deps += [ffmpeg_inc_dep, zlib, bcrypt]
+ # Only used to set include dirs for FFmpeg.
+ ffmpeg_deps += [ffmpeg_proj.get_variable('ffmpeg_inc_dep')]
+ # We explicitly enable zlib in the FFmpeg build.
+ ffmpeg_deps += [dependency('zlib')]
+ if is_windows
+ # Extra static dependencies for Windows.
+ ffmpeg_deps += [compiler.find_library('bcrypt')]
+ endif
soxr = compiler.find_library('soxr', required: false)
if soxr.found()
ffmpeg_deps += [soxr]