mesa-gl:moved to "simplified /usr" and towards RCS
[nyanlinux.git] / builders / mesa-gl-amd-sh-665eae51efef3e836517a7588caddbb902def259 / contrib / gallium_frontends.sh
blob8585594e5215ce948f550614d00c37edb30f3176
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 $build_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 \
83 $build_dir/src/gallium/frontends/dri/dri2.c \
85 #-------------------------------------------------------------------------------
86 for src_pathname in $libdri_c_pathnames
88 cpp_filename=$(basename $src_pathname .c).cpp.c
89 printf "CPP $src_pathname --> $build_dir/src/gallium/frontends/dri/$cpp_filename\n"
90 $cpp $src_pathname -o $build_dir/src/gallium/frontends/dri/$cpp_filename \
91 -I$cc_internal_fixed_incdir \
92 -I$cc_internal_incdir \
93 -I$linux_incdir \
94 -I$syslib_incdir \
96 -I$build_dir/src/gallium/frontends/dri \
97 -I$src_dir/src/gallium/frontends/dri \
98 -I$build_dir/src/gallium/auxiliary \
99 -I$src_dir/src/gallium/auxiliary \
100 -I$build_dir/src/gallium/include \
101 -I$src_dir/src/gallium/include \
102 -I$build_dir/src/mesa/drivers/dri/common \
103 -I$src_dir/src/mesa/drivers/dri/common \
104 -I$build_dir/src/loader \
105 -I$src_dir/src/loader \
106 -I$build_dir/src/mesa \
107 -I$src_dir/src/mesa \
108 -I$build_dir/src/mapi \
109 -I$src_dir/src/mapi \
110 -I$build_dir/src \
111 -I$src_dir/src \
112 -I$build_dir/include \
113 -I$src_dir/include \
115 $syslib_cpp_flags_defs \
116 $linux_cpp_flags_defs \
117 $cc_builtins_cpp_flags_defs \
118 $cc_attributes_cpp_flags_defs \
119 $mesa_cpp_flags_defs \
121 $external_deps_cpp_flags &
122 done
123 #-------------------------------------------------------------------------------
124 wait
125 #------------------------------------------------------------------------------
126 for src_pathname in $libdri_c_pathnames
128 cpp_filename=$(basename $src_pathname .c).cpp.c
129 asm_filename=$(basename $src_pathname .c).cpp.c.s
130 printf "CC_S $build_dir/src/gallium/frontends/dri/$cpp_filename --> $build_dir/src/gallium/frontends/dri/$asm_filename\n"
131 $cc_s $build_dir/src/gallium/frontends/dri/$cpp_filename -o $build_dir/src/gallium/frontends/dri/$asm_filename &
132 done
133 #------------------------------------------------------------------------------
134 wait
135 #------------------------------------------------------------------------------
137 for src_pathname in $libdri_c_pathnames
139 asm_filename=$(basename $src_pathname .c).cpp.c.s
140 o_filename=$(basename $src_pathname .c).cpp.c.s.o
141 os="$os $build_dir/src/gallium/frontends/dri/$o_filename"
142 printf "AS $build_dir/src/gallium/frontends/dri/$asm_filename --> $build_dir/src/gallium/frontends/dri/$o_filename\n"
143 $as $build_dir/src/gallium/frontends/dri/$asm_filename -o $build_dir/src/gallium/frontends/dri/$o_filename &
144 done
145 #-------------------------------------------------------------------------------
146 wait
147 #-------------------------------------------------------------------------------
148 printf "AR RCS $build_dir/libdri.a $os\n"
149 $ar_rcs $build_dir/libdri.a $os
150 #===============================================================================
151 printf "\t<--frontends sub-components built\n"