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 \
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 \
32 -I$build_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 &
43 #-------------------------------------------------------------------------------
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 &
53 #------------------------------------------------------------------------------
55 #------------------------------------------------------------------------------
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 &
65 #------------------------------------------------------------------------------
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"