Commit 5cfbafea authored by Martin Storsjö's avatar Martin Storsjö Committed by Marvin Scholz

meson: Define CONFIG_xBPC to 0 for the bitdepths that aren't enabled

This fixes warnings like these, if not all bitdepths are enabled:

../src/decode.c: In function ‘dav1d_submit_frame’:
../src/decode.c:2825:5: warning: "CONFIG_10BPC" is not defined [-Wundef]
 #if CONFIG_10BPC
parent 227b7eae
......@@ -54,8 +54,8 @@ dav1d_inc_dirs = include_directories(['.', 'include', 'include/dav1d'])
# Bitdepth option
dav1d_bitdepths = get_option('bitdepths')
foreach bitdepth : dav1d_bitdepths
cdata.set('CONFIG_@0@BPC'.format(bitdepth), 1)
foreach bitdepth : ['8', '10']
cdata.set10('CONFIG_@0@BPC'.format(bitdepth), dav1d_bitdepths.contains(bitdepth))
endforeach
# ASM option
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment