mesa-gl:moved to "simplified /usr" and towards RCS
[nyanlinux.git] / builders / mesa-gl-amd-sh-665eae51efef3e836517a7588caddbb902def259 / contrib / compiler.sh
blob5d9fd51d0e346240fea877b631f03a113691b655
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 \
18 -I$linux_incdir \
19 -I$syslib_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 \
28 -I$src_dir/src/mesa \
29 -I$build_dir/src \
30 -I$src_dir/src \
31 -I$build_dir/include \
32 -I$src_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 &
41 done
42 #-------------------------------------------------------------------------------
43 wait
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 &
51 done
52 #------------------------------------------------------------------------------
53 wait
54 #------------------------------------------------------------------------------
55 os=
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 &
63 done
64 #------------------------------------------------------------------------------
65 wait
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"