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 \
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 \
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
&
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"