Gfx stack update
[nyanlinux.git] / builders / mesa-gl-amd-sh-ca92a10800bcb09749758ea1664dc0675955ffa0 / contrib / gallium_frontends.sh
blob15fea7d5e108d5636e90d711d464d57fdc109e9c
1 printf "\tbuilding frontends sub-components-->\n"
3 libdricommon_files="\
4 $build_dir/src/gallium/frontends/dri/dri_util.c \
7 for f in $libdricommon_files
8 do
9 libdricommon_obj_dir=$(dirname $f)
10 libdricommon_obj_dir=$build_dir/${libdricommon_obj_dir#*/src/}
11 mkdir -p $libdricommon_obj_dir
13 libdricommon_obj=$libdricommon_obj_dir/$(basename $f .c).o
14 libdricommon_a="$libdricommon_a $libdricommon_obj"
16 $cco_slib -o $libdricommon_obj $f \
17 -I$build_dir/src/util \
18 -I$build_dir/src/gallium/frontends/dri \
19 -I$src_dir/src/gallium/frontends/dri \
20 -I$src_dir/src/gallium/auxiliary \
21 -I$src_dir/src/gallium/include \
22 -I$src_dir/src/mapi \
23 -I$src_dir/src/mesa \
24 -I$src_dir/src/ \
25 -I$src_dir/include \
27 $cco_slib_common_trailer &
28 done
30 wait
31 $ar $build_dir/libdricommon.a $libdricommon_a
33 #===============================================================================
35 libdri_files="\
36 $src_dir/src/gallium/frontends/dri/dri_context.c \
37 $src_dir/src/gallium/frontends/dri/dri_drawable.c \
38 $src_dir/src/gallium/frontends/dri/dri_helpers.c \
39 $src_dir/src/gallium/frontends/dri/dri_query_renderer.c \
40 $src_dir/src/gallium/frontends/dri/dri_screen.c \
42 $build_dir/src/gallium/frontends/dri/dri2.c \
45 for f in $libdri_files
47 libdri_obj_dir=$(dirname $f)
48 libdri_obj_dir=$build_dir/${libdri_obj_dir#*/src/}
49 mkdir -p $libdri_obj_dir
51 libdri_obj=$libdri_obj_dir/$(basename $f .c).o
52 libdri_a="$libdri_a $libdri_obj"
54 $cco_slib -o $libdri_obj $f \
55 -I$build_dir/src/gallium/frontends/dri \
56 -I$build_dir/src \
57 -I$src_dir/src/gallium/frontends/dri \
58 -I$src_dir/src/gallium/auxiliary \
59 -I$src_dir/src/gallium/include \
60 -I$src_dir/src/mesa/drivers/dri/common \
61 -I$src_dir/src/mesa \
62 -I$src_dir/src/mapi \
63 -I$src_dir/src \
64 -I$src_dir/include \
65 $cco_slib_common_trailer &
66 done
68 wait
70 $ar $build_dir/libdri.a $libdri_a
72 printf "\t<--frontends sub-components built\n"