Gfx stack update
[nyanlinux.git] / builders / mesa-gl-amd-sh-ca92a10800bcb09749758ea1664dc0675955ffa0 / contrib / generators_util.sh
blob8889910fb5b03baea05c4359875bfcc1589ff2bf
1 printf "Running util code generators-->\n"
2 mkdir -p $build_dir/src/util
3 #-------------------------------------------------------------------------------
4 # removing the braindamaged qsort class
5 cp -f $src_dir/src/util/mesa_cache_db.c $build_dir/src/util/mesa_cache_db.c
6 sed -i $build_dir/src/util/mesa_cache_db.c \
7 -e '/u_qsort.h/ d' \
8 -e 's/util_qsort_r/qsort_r/' &
9 #-------------------------------------------------------------------------------
10 $python3 $src_dir/src/util/format_srgb.py >$build_dir/src/util/format_srgb.c &
11 #-------------------------------------------------------------------------------
12 mkdir -p $build_dir/src/util/format
14 $python3 $src_dir/src/util/format/u_format_table.py \
15 $src_dir/src/util/format/u_format.csv \
16 >$build_dir/src/util/format/u_format_table.c &
18 $python3 $src_dir/src/util/format/u_format_table.py \
19 --header \
20 $src_dir/src/util/format/u_format.csv \
21 >$build_dir/src/util/format/u_format_pack.h &
23 export PYTHONPATH=$mako
24 $python3 $src_dir/src/util/driconf_static.py \
25 $src_dir/src/util/00-mesa-defaults.conf \
26 $build_dir/src/util/driconf_static.h &
27 unset PYTHONPATH
28 #-------------------------------------------------------------------------------
29 printf "<--util code generation done\n"