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