Gfx stack update
[nyanlinux.git] / builders / mesa-gl-amd-sh-0976dfeca29527c2175c6925d46cba84391910c3 / contrib / gallium_state_trackers.sh
blob368ac7db786e53d1c36503c706e680379200ac0a
1 printf "\tbuilding state trackers sub-components-->\n"
3 libdri_files="\
4 $src_dir/src/gallium/state_trackers/dri/dri_context.c \
5 $src_dir/src/gallium/state_trackers/dri/dri_drawable.c \
6 $src_dir/src/gallium/state_trackers/dri/dri_helpers.c \
7 $src_dir/src/gallium/state_trackers/dri/dri_query_renderer.c \
8 $src_dir/src/gallium/state_trackers/dri/dri_screen.c \
10 $src_dir/src/gallium/state_trackers/dri/dri2.c \
13 for f in $libdri_files
15 libdri_obj_dir=$(dirname $f)
16 libdri_obj_dir=$build_dir/${libdri_obj_dir#*/src/}
17 mkdir -p $libdri_obj_dir
19 libdri_obj=$libdri_obj_dir/$(basename $f .c).o
20 libdri_a="$libdri_a $libdri_obj"
22 $cco_slib -o $libdri_obj $f \
23 -I$build_dir/src/gallium/auxiliary \
24 -I$src_dir/src/gallium/auxiliary \
25 -I$build_dir/src/gallium/include \
26 -I$src_dir/src/gallium/include \
27 -I$build_dir/src/mesa/drivers/dri/common \
28 -I$src_dir/src/mesa/drivers/dri/common \
29 -I$build_dir/src/mesa \
30 -I$src_dir/src/mesa \
31 -I$build_dir/src/mapi \
32 -I$src_dir/src/mapi \
33 -I$build_dir/src \
34 -I$src_dir/src \
35 -I$build_dir/include \
36 -I$src_dir/include \
37 $cco_slib_common_trailer &
38 done
40 wait
42 $ar $build_dir/libdri.a $libdri_a
44 printf "\t<--state trackers sub-components built\n"