1 echo "building gpu compiler components-->"
2 #===============================================================================
3 mkdir
-p $build_dir/src
/compiler
/glsl
4 #------------------------------------------------------------------------------
5 libcompiler_c_pathnames
="\
6 $src_dir/src/compiler/shader_enums.c \
7 $build_dir/src/compiler/builtin_types.c \
8 $src_dir/src/compiler/glsl_types.c \
10 #-------------------------------------------------------------------------------
11 for src_pathname
in $libcompiler_c_pathnames
13 cpp_filename
=$
(basename $src_pathname .c
).cpp.c
14 printf "CPP $src_pathname --> $build_dir/src/compiler/$cpp_filename\n"
15 $cpp $src_pathname -o $build_dir/src
/compiler
/$cpp_filename \
16 -I$cc_internal_fixed_incdir \
17 -I$cc_internal_incdir \
21 -I$build_dir/src
/compiler
/glsl \
22 -I$src_dir/src
/compiler
/glsl \
23 -I$build_dir/src
/compiler \
24 -I$src_dir/src
/compiler \
25 -I$build_dir/src
/gallium
/include \
26 -I$src_dir/src
/gallium
/include \
27 -I$build_dir/src
/mesa \
31 -I$build_dir/include \
34 $syslib_cpp_flags_defs \
35 $linux_cpp_flags_defs \
36 $cc_builtins_cpp_flags_defs \
37 $cc_attributes_cpp_flags_defs \
38 $mesa_cpp_flags_defs \
40 $external_deps_cpp_flags &
42 #-------------------------------------------------------------------------------
44 #------------------------------------------------------------------------------
45 for src_pathname
in $libcompiler_c_pathnames
47 cpp_filename
=$
(basename $src_pathname .c
).cpp.c
48 asm_filename
=$
(basename $src_pathname .c
).cpp.c.s
49 printf "CC_S $build_dir/src/compiler/$cpp_filename --> $build_dir/src/compiler/$asm_filename\n"
50 $cc_s $build_dir/src
/compiler
/$cpp_filename -o $build_dir/src
/compiler
/$asm_filename &
52 #------------------------------------------------------------------------------
54 #------------------------------------------------------------------------------
56 for src_pathname
in $libcompiler_c_pathnames
58 asm_filename
=$
(basename $src_pathname .c
).cpp.c.s
59 o_filename
=$
(basename $src_pathname .c
).cpp.c.s.o
60 os
="$os $build_dir/src/compiler/$o_filename"
61 printf "AS $build_dir/src/compiler/$asm_filename --> $build_dir/src/compiler/$o_filename\n"
62 $as $build_dir/src
/compiler
/$asm_filename -o $build_dir/src
/compiler
/$o_filename &
64 #------------------------------------------------------------------------------
66 #------------------------------------------------------------------------------
67 printf "AR RCS $build_dir/libcompiler.a $os\n"
68 $ar_rcs $build_dir/libcompiler.a
$os &
69 #===============================================================================
70 .
$script_dir/compiler_aco.sh
71 .
$script_dir/compiler_nir.sh
72 .
$script_dir/compiler_glsl.sh
73 #===============================================================================
74 echo "<--gpu compiler components built"