mesa-gl:moved to "simplified /usr" and towards RCS
[nyanlinux.git] / builders / mesa-gl-amd-sh-e509139f61a2b517ab7e4d08cafd227c2a149aa3 / contrib / generators_util.sh
blob17db5ca13f88229576103df53fa381a5c9dc08fd
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 export PYTHONPATH=$yaml
15 $python3 $src_dir/src/util/format/u_format_table.py \
16 --enums \
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 \
21 --header \
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 &
28 unset PYTHONPATH
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 &
34 unset PYTHONPATH
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"