ref: 5cfbafea18ff703bffc6612063ce6500ae638fa0
parent: 227b7eae7aa6cca64d4be4659678afc578ee9f93
author: Martin Storsjö <martin@martin.st>
date: Fri Oct 19 06:17:31 EDT 2018
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
--- a/meson.build
+++ b/meson.build
@@ -54,8 +54,8 @@
# 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