mesa-gl:moved to "simplified /usr" and towards RCS
[nyanlinux.git] / builders / mesa-gl-amd-sh-bd2375399180198b777d0dc9da4eba660b5e2afb / contrib / gallium_frontends.sh
blobbff01e888aba1f0d7b8db3c92bbd402c43404e38
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/mapi \
26 -I$src_dir/src/mapi \
27 -I$build_dir/src/mesa \
28 -I$src_dir/src/mesa \
29 -I$build_dir/src/util \
30 -I$src_dir/src/util \
31 -I$build_dir/src/ \
32 -I$src_dir/src/ \
33 -I$build_dir/include \
34 -I$src_dir/include \
36 $syslib_cpp_flags_defs \
37 $linux_cpp_flags_defs \
38 $cc_builtins_cpp_flags_defs \
39 $cc_attributes_cpp_flags_defs \
40 $mesa_cpp_flags_defs \
42 $external_deps_cpp_flags &
43 done
44 #-------------------------------------------------------------------------------
45 wait
46 #------------------------------------------------------------------------------
47 for src_pathname in $libdricommon_c_pathnames
49 cpp_filename=$(basename $src_pathname .c).cpp.c
50 asm_filename=$(basename $src_pathname .c).cpp.c.s
51 printf "CC_S $build_dir/src/gallium/frontends/dri/$cpp_filename --> $build_dir/src/gallium/frontends/dri/$asm_filename\n"
52 $cc_s $build_dir/src/gallium/frontends/dri/$cpp_filename -o $build_dir/src/gallium/frontends/dri/$asm_filename &
53 done
54 #------------------------------------------------------------------------------
55 wait
56 #------------------------------------------------------------------------------
57 os=
58 for src_pathname in $libdricommon_c_pathnames
60 asm_filename=$(basename $src_pathname .c).cpp.c.s
61 o_filename=$(basename $src_pathname .c).cpp.c.s.o
62 os="$os $build_dir/src/gallium/frontends/dri/$o_filename"
63 printf "AS $build_dir/src/gallium/frontends/dri/$asm_filename --> $build_dir/src/gallium/frontends/dri/$o_filename\n"
64 $as $build_dir/src/gallium/frontends/dri/$asm_filename -o $build_dir/src/gallium/frontends/dri/$o_filename &
65 done
66 #-------------------------------------------------------------------------------
67 wait
68 #-------------------------------------------------------------------------------
69 printf "AR RCS $build_dir/libdricommon.a $os\n"
70 $ar_rcs $build_dir/libdricommon.a $os
71 #===============================================================================
72 libdri_c_pathnames="\
73 $src_dir/src/gallium/frontends/dri/dri_context.c \
74 $src_dir/src/gallium/frontends/dri/dri_drawable.c \
75 $src_dir/src/gallium/frontends/dri/dri_helpers.c \
76 $src_dir/src/gallium/frontends/dri/dri_query_renderer.c \
77 $src_dir/src/gallium/frontends/dri/dri_screen.c \
79 $build_dir/src/gallium/frontends/dri/dri2.c \
81 #-------------------------------------------------------------------------------
82 for src_pathname in $libdri_c_pathnames
84 cpp_filename=$(basename $src_pathname .c).cpp.c
85 printf "CPP $src_pathname --> $build_dir/src/gallium/frontends/dri/$cpp_filename\n"
86 $cpp $src_pathname -o $build_dir/src/gallium/frontends/dri/$cpp_filename \
87 -I$cc_internal_fixed_incdir \
88 -I$cc_internal_incdir \
89 -I$linux_incdir \
90 -I$syslib_incdir \
92 -I$build_dir/src/gallium/frontends/dri \
93 -I$src_dir/src/gallium/frontends/dri \
94 -I$build_dir/src/gallium/auxiliary \
95 -I$src_dir/src/gallium/auxiliary \
96 -I$build_dir/src/gallium/include \
97 -I$src_dir/src/gallium/include \
98 -I$build_dir/src/mesa/drivers/dri/common \
99 -I$src_dir/src/mesa/drivers/dri/common \
100 -I$build_dir/src/mesa \
101 -I$src_dir/src/mesa \
102 -I$build_dir/src/mapi \
103 -I$src_dir/src/mapi \
104 -I$build_dir/src \
105 -I$src_dir/src \
106 -I$build_dir/include \
107 -I$src_dir/include \
109 $syslib_cpp_flags_defs \
110 $linux_cpp_flags_defs \
111 $cc_builtins_cpp_flags_defs \
112 $cc_attributes_cpp_flags_defs \
113 $mesa_cpp_flags_defs \
115 $external_deps_cpp_flags &
116 done
117 #-------------------------------------------------------------------------------
118 wait
119 #------------------------------------------------------------------------------
120 for src_pathname in $libdri_c_pathnames
122 cpp_filename=$(basename $src_pathname .c).cpp.c
123 asm_filename=$(basename $src_pathname .c).cpp.c.s
124 printf "CC_S $build_dir/src/gallium/frontends/dri/$cpp_filename --> $build_dir/src/gallium/frontends/dri/$asm_filename\n"
125 $cc_s $build_dir/src/gallium/frontends/dri/$cpp_filename -o $build_dir/src/gallium/frontends/dri/$asm_filename &
126 done
127 #------------------------------------------------------------------------------
128 wait
129 #------------------------------------------------------------------------------
131 for src_pathname in $libdri_c_pathnames
133 asm_filename=$(basename $src_pathname .c).cpp.c.s
134 o_filename=$(basename $src_pathname .c).cpp.c.s.o
135 os="$os $build_dir/src/gallium/frontends/dri/$o_filename"
136 printf "AS $build_dir/src/gallium/frontends/dri/$asm_filename --> $build_dir/src/gallium/frontends/dri/$o_filename\n"
137 $as $build_dir/src/gallium/frontends/dri/$asm_filename -o $build_dir/src/gallium/frontends/dri/$o_filename &
138 done
139 #-------------------------------------------------------------------------------
140 wait
141 #-------------------------------------------------------------------------------
142 printf "AR RCS $build_dir/libdri.a $os\n"
143 $ar_rcs $build_dir/libdri.a $os
144 #===============================================================================
145 printf "\t<--frontends sub-components built\n"