mesa-gl:moved to "simplified /usr" and towards RCS
[nyanlinux.git] / builders / mesa-gl-amd-sh-bd2375399180198b777d0dc9da4eba660b5e2afb / contrib / generators_util.sh
blob0d3c5873acdc3ab5a329460edbc4d12657caee24
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 # a stub since it is not generation&compile-able out cleanely
30 mkdir -p $build_dir/src/util/perf
31 cp -f $script_dir/u_trace.c $build_dir/src/util/perf
32 #-------------------------------------------------------------------------------
33 printf "<--util code generation done\n"