mesa-gl:moved to "simplified /usr" and towards RCS
[nyanlinux.git] / builders / mesa-gl-amd-sh-8368a972943d5265b22eab86aa17c9a3cfe3406b / contrib / gallium_state_trackers.sh
blob7b3b76c60d0019b335220d8688991d6cc6b3cb28
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_rcs $build_dir/libdri.a $libdri_a
44 printf "\t<--state trackers sub-components built\n"