diff options
| author | 2024-01-16 21:01:49 -0500 | |
|---|---|---|
| committer | 2024-01-16 21:01:49 -0500 | |
| commit | 9065d8778e63ea919506fd0d4a0692042fb503fb (patch) | |
| tree | 09de40e56ac924e60c4f3c080ac74a5064049e90 /src/codec | |
| parent | 863eda6c45a0ed0bf5f460dde6177c257d57cff8 (diff) | |
| download | camu-9065d8778e63ea919506fd0d4a0692042fb503fb.tar.gz camu-9065d8778e63ea919506fd0d4a0692042fb503fb.tar.bz2 camu-9065d8778e63ea919506fd0d4a0692042fb503fb.zip | |
Improve windows build
- Support using libplacebo vulkan backend on windows
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'src/codec')
| -rw-r--r-- | src/codec/meson.build | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/src/codec/meson.build b/src/codec/meson.build index 676be1c..0946a17 100644 --- a/src/codec/meson.build +++ b/src/codec/meson.build @@ -1,16 +1,23 @@ av_src = [ 'libav/common.c', + 'libav/packet_ext.c' +] +av_server_src = [ + av_src, 'libav/demuxer.c', - 'libav/decoder.c', - 'libav/resampler.c', - 'libav/scaler.c', 'libav/encoder.c', - 'libav/packet_ext.c', 'libav/avio.c' ] +av_client_src = [ + av_src, + 'libav/decoder.c', + 'libav/resampler.c', + 'libav/scaler.c' +] av_inc = [] av_ldflags = [] -av_deps = [] +av_server_deps = [] +av_client_deps = [] libavutil = dependency('libavutil', required: false) libavformat = dependency('libavformat', required: false) @@ -27,18 +34,22 @@ if not (libavutil.found() and libavformat.found() and libavcodec.found() and lib libswscale = av_proj.get_variable('swscale') av_inc += [av_proj.get_variable('inc')] av_ldflags += ['-L' + av_proj.get_variable('libdir')] - av_deps += [dependency('zlib')] + av_client_deps += [dependency('zlib')] soxr = compiler.find_library('soxr', required: false) if soxr.found() - av_deps += [soxr] + av_client_deps += [soxr] endif - av_deps += [compiler.find_library('bcrypt')] + av_client_deps += [compiler.find_library('bcrypt')] endif endif if libavutil.found() and libavformat.found() and libavcodec.found() and libswresample.found() and libswscale.found() - av_deps += [libavutil, libavformat, libavcodec, libswresample, libswscale] - av = declare_dependency(sources: av_src, dependencies: av_deps, include_directories: av_inc, link_args: av_ldflags) + av_server_deps += [libavutil, libavformat, libavcodec] + av_client_deps += [libavutil, libavformat, libavcodec, libswresample, libswscale] + av_server = declare_dependency(sources: av_server_src, dependencies: av_server_deps, + include_directories: av_inc, link_args: av_ldflags) + av_client = declare_dependency(sources: av_client_src, dependencies: av_client_deps, + include_directories: av_inc, link_args: av_ldflags) add_project_arguments('-DHAVE_FFMPEG', language: ['c', 'cpp']) endif |