mesa-gl:moved to "simplified /usr" and towards RCS
[nyanlinux.git] / builders / mesa-gl-amd-sh-a74ebffc6a6193445231563cdaa4494933b6c281 / contrib / gallium_frontends.sh
blobaf8b256e232217ab6936556263bce5761928b79a
1 printf "\tbuilding frontends sub-components-->\n"
2 #===============================================================================
3 mkdir -p $build_dir/src/gallium/frontends/dri
4 #-------------------------------------------------------------------------------
5 # XXX: should merge with libdri.a (below)
6 libdricommon_c_pathnames="\
7 $src_dir/src/gallium/frontends/dri/dri_util.c \
9 #-------------------------------------------------------------------------------
10 for src_pathname in $libdricommon_c_pathnames
12 cpp_filename=$(basename $src_pathname .c).cpp.c
13 printf "CPP $src_pathname --> $build_dir/src/gallium/frontends/dri/$cpp_filename\n"
14 $cpp $src_pathname -o $build_dir/src/gallium/frontends/dri/$cpp_filename \
15 -I$cc_internal_fixed_incdir \
16 -I$cc_internal_incdir \
17 -I$linux_incdir \
18 -I$syslib_incdir \
20 -I$build_dir/src/gallium/frontends/dri \
21 -I$src_dir/src/gallium/frontends/dri \
22 -I$build_dir/src/gallium/auxiliary \
23 -I$src_dir/src/gallium/auxiliary \
24 -I$build_dir/src/gallium/include \
25 -I$src_dir/src/gallium/include \
26 -I$build_dir/src/loader \
27 -I$src_dir/src/loader \
28 -I$build_dir/src/mapi \
29 -I$src_dir/src/mapi \
30 -I$build_dir/src/mesa \
31 -I$src_dir/src/mesa \
32 -I$build_dir/src/util \
33 -I$src_dir/src/util \
34 -I$build_dir/src/ \
35 -I$src_dir/src/ \
36 -I$build_dir/include \
37 -I$src_dir/include \
39 $syslib_cpp_flags_defs \
40 $linux_cpp_flags_defs \
41 $cc_builtins_cpp_flags_defs \
42 $cc_attributes_cpp_flags_defs \
43 $mesa_cpp_flags_defs \
45 $external_deps_cpp_flags &
46 done
47 #-------------------------------------------------------------------------------
48 wait
49 #------------------------------------------------------------------------------
50 for src_pathname in $libdricommon_c_pathnames
52 cpp_filename=$(basename $src_pathname .c).cpp.c
53 asm_filename=$(basename $src_pathname .c).cpp.c.s
54 printf "CC_S $build_dir/src/gallium/frontends/dri/$cpp_filename --> $build_dir/src/gallium/frontends/dri/$asm_filename\n"
55 $cc_s $build_dir/src/gallium/frontends/dri/$cpp_filename -o $build_dir/src/gallium/frontends/dri/$asm_filename &
56 done
57 #------------------------------------------------------------------------------
58 wait
59 #------------------------------------------------------------------------------
60 os=
61 for src_pathname in $libdricommon_c_pathnames
63 asm_filename=$(basename $src_pathname .c).cpp.c.s
64 o_filename=$(basename $src_pathname .c).cpp.c.s.o
65 os="$os $build_dir/src/gallium/frontends/dri/$o_filename"
66 printf "AS $build_dir/src/gallium/frontends/dri/$asm_filename --> $build_dir/src/gallium/frontends/dri/$o_filename\n"
67 $as $build_dir/src/gallium/frontends/dri/$asm_filename -o $build_dir/src/gallium/frontends/dri/$o_filename &
68 done
69 #-------------------------------------------------------------------------------
70 wait
71 #-------------------------------------------------------------------------------
72 printf "AR RCS $build_dir/libdricommon.a $os\n"
73 $ar_rcs $build_dir/libdricommon.a $os
74 #===============================================================================
75 libdri_c_pathnames="\
76 $src_dir/src/gallium/frontends/dri/dri_context.c \
77 $src_dir/src/gallium/frontends/dri/dri_drawable.c \
78 $src_dir/src/gallium/frontends/dri/dri_helpers.c \
79 $src_dir/src/gallium/frontends/dri/dri_query_renderer.c \
80 $src_dir/src/gallium/frontends/dri/dri_screen.c \
81 $src_dir/src/gallium/frontends/dri/kopper_stubs.c \
82 $src_dir/src/gallium/frontends/dri/dri2.c \
83 $src_dir/src/gallium/frontends/dri/loader_dri3_helper.c \
84 $src_dir/src/gallium/frontends/dri/drisw.c \
86 #-------------------------------------------------------------------------------
87 for src_pathname in $libdri_c_pathnames
89 cpp_filename=$(basename $src_pathname .c).cpp.c
90 printf "CPP $src_pathname --> $build_dir/src/gallium/frontends/dri/$cpp_filename\n"
91 $cpp $src_pathname -o $build_dir/src/gallium/frontends/dri/$cpp_filename \
92 -I$cc_internal_fixed_incdir \
93 -I$cc_internal_incdir \
94 -I$linux_incdir \
95 -I$syslib_incdir \
97 -I$build_dir/src/gallium/frontends/dri \
98 -I$src_dir/src/gallium/frontends/dri \
99 -I$build_dir/src/gallium/auxiliary \
100 -I$src_dir/src/gallium/auxiliary \
101 -I$build_dir/src/gallium/include \
102 -I$src_dir/src/gallium/include \
103 -I$build_dir/src/mesa/drivers/dri/common \
104 -I$src_dir/src/mesa/drivers/dri/common \
105 -I$build_dir/src/loader \
106 -I$src_dir/src/loader \
107 -I$build_dir/src/mesa \
108 -I$src_dir/src/mesa \
109 -I$build_dir/src/util \
110 -I$src_dir/src/util \
111 -I$build_dir/src/mapi \
112 -I$src_dir/src/mapi \
113 -I$build_dir/src \
114 -I$src_dir/src \
115 -I$build_dir/include \
116 -I$src_dir/include \
118 $syslib_cpp_flags_defs \
119 $linux_cpp_flags_defs \
120 $cc_builtins_cpp_flags_defs \
121 $cc_attributes_cpp_flags_defs \
122 $mesa_cpp_flags_defs \
124 $external_deps_cpp_flags &
125 done
126 #-------------------------------------------------------------------------------
127 wait
128 #------------------------------------------------------------------------------
129 for src_pathname in $libdri_c_pathnames
131 cpp_filename=$(basename $src_pathname .c).cpp.c
132 asm_filename=$(basename $src_pathname .c).cpp.c.s
133 printf "CC_S $build_dir/src/gallium/frontends/dri/$cpp_filename --> $build_dir/src/gallium/frontends/dri/$asm_filename\n"
134 $cc_s $build_dir/src/gallium/frontends/dri/$cpp_filename -o $build_dir/src/gallium/frontends/dri/$asm_filename &
135 done
136 #------------------------------------------------------------------------------
137 wait
138 #------------------------------------------------------------------------------
140 for src_pathname in $libdri_c_pathnames
142 asm_filename=$(basename $src_pathname .c).cpp.c.s
143 o_filename=$(basename $src_pathname .c).cpp.c.s.o
144 os="$os $build_dir/src/gallium/frontends/dri/$o_filename"
145 printf "AS $build_dir/src/gallium/frontends/dri/$asm_filename --> $build_dir/src/gallium/frontends/dri/$o_filename\n"
146 $as $build_dir/src/gallium/frontends/dri/$asm_filename -o $build_dir/src/gallium/frontends/dri/$o_filename &
147 done
148 #-------------------------------------------------------------------------------
149 wait
150 #-------------------------------------------------------------------------------
151 printf "AR RCS $build_dir/libdri.a $os\n"
152 $ar_rcs $build_dir/libdri.a $os
153 #===============================================================================
154 printf "\t<--frontends sub-components built\n"