gfx stack update (still holding the breaking llvm)
[nyanlinux.git] / builders / mesa-gl-amd-sh-ef75752ef8639026e573ba7c97088c965551ef37 / contrib / gallium_state_trackers.sh
blobdf1d73b3078904dfa723835fcd8ba36b80d80f15
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$src_dir/src/gallium/auxiliary \
24 -I$src_dir/src/gallium/include \
25 -I$src_dir/src/mesa/drivers/dri/common \
26 -I$src_dir/src/mesa \
27 -I$src_dir/src/mapi \
28 -I$src_dir/src \
29 -I$src_dir/include \
30 $cco_slib_common_trailer &
31 done
33 wait
35 $ar $build_dir/libdri.a $libdri_a
37 printf "\t<--state trackers sub-components built\n"