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 export PYTHONPATH
=$yaml
15 $python3 $src_dir/src
/util
/format
/u_format_table.py \
17 $src_dir/src
/util
/format
/u_format.yaml \
18 >$build_dir/src
/util
/format
/u_format_gen.h
&
20 $python3 $src_dir/src
/util
/format
/u_format_table.py \
22 $src_dir/src
/util
/format
/u_format.yaml \
23 >$build_dir/src
/util
/format
/u_format_pack.h
&
25 $python3 $src_dir/src
/util
/format
/u_format_table.py \
26 $src_dir/src
/util
/format
/u_format.yaml \
27 >$build_dir/src
/util
/format
/u_format_table.c
&
30 export PYTHONPATH
=$mako
31 $python3 $src_dir/src
/util
/driconf_static.py \
32 $src_dir/src
/util
/00-mesa-defaults.conf \
33 $build_dir/src
/util
/driconf_static.h
&
35 #-------------------------------------------------------------------------------
36 # a stub since it is not generation&compile-able out cleanely
37 mkdir
-p $build_dir/src
/util
/perf
38 cp -f $script_dir/u_trace.c
$build_dir/src
/util
/perf
39 #-------------------------------------------------------------------------------
40 printf "<--util code generation done\n"