mesa-gl:moved to "simplified /usr" and towards RCS
[nyanlinux.git] / builders / mesa-gl-amd-sh-6d4577799ce0b789a969b0984c0985901829a707 / contrib / gallium_winsys.sh
blob54d3b3ea6c7e4c8b5691a6625c9f8324ce6cb500
1 printf "\tbuilding winsys sub-components-->\n"
2 #===============================================================================
3 mkdir -p $build_dir/src/gallium/winsys
4 #-------------------------------------------------------------------------------
5 libwinsys_amdgpu_drm_c_pathnames="\
6 $src_dir/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c \
7 $src_dir/src/gallium/winsys/amdgpu/drm/amdgpu_cs.c \
8 $src_dir/src/gallium/winsys/amdgpu/drm/amdgpu_surface.c \
9 $src_dir/src/gallium/winsys/amdgpu/drm/amdgpu_winsys.c \
11 #-------------------------------------------------------------------------------
12 for src_pathname in $libwinsys_amdgpu_drm_c_pathnames
14 cpp_filename=$(basename $src_pathname .c).cpp.c
15 printf "CPP $src_pathname --> $build_dir/src/gallium/winsys/$cpp_filename\n"
16 $cpp $src_pathname -o $build_dir/src/gallium/winsys/$cpp_filename \
17 -I$cc_internal_fixed_incdir \
18 -I$cc_internal_incdir \
19 -I$linux_incdir \
20 -I$syslib_incdir \
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/amd/common \
27 -I$src_dir/src/amd/common \
28 -I$build_dir/src/amd \
29 -I$src_dir/src/amd \
30 -I$build_dir/src \
31 -I$src_dir/src \
32 -I$build_dir/include \
33 -I$src_dir/include \
35 $syslib_cpp_flags_defs \
36 $linux_cpp_flags_defs \
37 $cc_builtins_cpp_flags_defs \
38 $cc_attributes_cpp_flags_defs \
39 $mesa_cpp_flags_defs \
41 $external_deps_cpp_flags &
42 done
43 #-------------------------------------------------------------------------------
44 wait
45 #------------------------------------------------------------------------------
46 for src_pathname in $libwinsys_amdgpu_drm_c_pathnames
48 cpp_filename=$(basename $src_pathname .c).cpp.c
49 asm_filename=$(basename $src_pathname .c).cpp.c.s
50 printf "CC_S $build_dir/src/gallium/winsys/$cpp_filename --> $build_dir/src/gallium/winsys/$asm_filename\n"
51 $cc_s $build_dir/src/gallium/winsys/$cpp_filename -o $build_dir/src/gallium/winsys/$asm_filename &
52 done
53 #------------------------------------------------------------------------------
54 wait
55 #------------------------------------------------------------------------------
56 os=
57 for src_pathname in $libwinsys_amdgpu_drm_c_pathnames
59 asm_filename=$(basename $src_pathname .c).cpp.c.s
60 o_filename=$(basename $src_pathname .c).cpp.c.s.o
61 os="$os $build_dir/src/gallium/winsys/$o_filename"
62 printf "AS $build_dir/src/gallium/winsys/$asm_filename --> $build_dir/src/gallium/winsys/$o_filename\n"
63 $as $build_dir/src/gallium/winsys/$asm_filename -o $build_dir/src/gallium/winsys/$o_filename &
64 done
65 #------------------------------------------------------------------------------
66 wait
67 #-------------------------------------------------------------------------------
68 printf "AR RCS $build_dir/libwinsys_amdgpu_drm.a $os\n"
69 $ar_rcs $build_dir/libwinsys_amdgpu_drm.a $os
70 #===============================================================================
71 printf "\t<--winsys sub-components built\n"