mesa-gl:moved to "simplified /usr" and towards RCS
[nyanlinux.git] / builders / mesa-gl-amd-sh-e509139f61a2b517ab7e4d08cafd227c2a149aa3 / contrib / gallium_targets.sh
blobbdaa977de446fcbfc191d71869897a0e6b009c66
1 printf "\tbuilding targets sub-components-->\n"
2 #===============================================================================
3 mkdir -p $build_dir/src/gallium/targets/dri
4 #-------------------------------------------------------------------------------
5 printf "CPP $src_dir/src/gallium/targets/dri/dri_target.c --> $build_dir/src/gallium/targets/dri/dri_target.cpp.c\n"
6 $cpp $src_dir/src/gallium/targets/dri/dri_target.c -o $build_dir/src/gallium/targets/dri/dri_target.cpp.c \
7 -DGALLIUM_RADEONSI \
9 -I$cc_internal_fixed_incdir \
10 -I$cc_internal_incdir \
11 -I$linux_incdir \
12 -I$syslib_incdir \
14 -I$build_dir/src/gallium/frontends/dri \
15 -I$src_dir/src/gallium/frontends/dri \
16 -I$build_dir/src/gallium/winsys \
17 -I$src_dir/src/gallium/winsys \
18 -I$build_dir/src/gallium/drivers \
19 -I$src_dir/src/gallium/drivers \
20 -I$build_dir/src/gallium/auxiliary \
21 -I$src_dir/src/gallium/auxiliary \
22 -I$build_dir/src/gallium/include \
23 -I$src_dir/src/gallium/include \
24 -I$build_dir/src/mesa/drivers/dri/common \
25 -I$src_dir/src/mesa/drivers/dri/common \
26 -I$build_dir/src/mesa \
27 -I$src_dir/src/mesa \
28 -I$build_dir/src/util \
29 -I$src_dir/src/util \
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 #------------------------------------------------------------------------------
43 printf "CC_S $build_dir/src/gallium/targets/dri/dri_target.cpp.c --> $build_dir/src/gallium/targets/dri/dri_target.cpp.c.s\n"
44 $cc_s $build_dir/src/gallium/targets/dri/dri_target.cpp.c -o $build_dir/src/gallium/targets/dri/dri_target.cpp.c.s
45 #------------------------------------------------------------------------------
46 printf "AS $build_dir/src/gallium/targets/dri/dri_target.cpp.c.s --> $build_dir/src/gallium/targets/dri/dri_target.cpp.c.s.o\n"
47 $as $build_dir/src/gallium/targets/dri/dri_target.cpp.c.s -o $build_dir/src/gallium/targets/dri/dri_target.cpp.c.s.o
48 #===============================================================================
49 # This is the opengl common ("mesa") dri gallium driver. One dri shared object
50 # can contain more than one dri driver. Inclusion selection is done in the
51 # dri dri_target.c file (we have only the radeonsi one, selected with
52 # GALLIUM_RADEONSI. Nowadays, only one driver or a very small subset of drivers
53 # is in one dri shared object.
54 # This is only for _xorg_ drivers supporting glamor, the other _xorg_ drivers
55 # must use dril.
56 mkdir -p \
57 $build_dir/install_root$libdir \
58 $build_dir/install_root$libdir_store
59 #-------------------------------------------------------------------------------
60 printf "BINUTILS LD $build_dir/install_root$libdir_store/libgallium_dri.so\n"
61 $binutils_ld -o $build_dir/install_root$libdir_store/libgallium_dri.so \
62 -shared \
63 -soname libgallium_dri.so \
64 --version-script $build_dir/src/gallium/targets/dri/dri.sym \
65 --no-undefined \
66 --gc-sections \
67 -s \
68 $syslib_ld_slib_start_files \
69 $cc_ld_slib_start_files \
70 $build_dir/src/gallium/targets/dri/dri_target.cpp.c.s.o \
72 --whole-archive \
73 $build_dir/libdricommon.a \
74 $build_dir/libdri.a \
75 --no-whole-archive \
77 --start-group \
78 $build_dir/libmesa_gallium.a \
79 $build_dir/libglsl.a \
80 $build_dir/libglcpp.a \
81 $build_dir/libnir.a \
82 $build_dir/libaco.a \
83 $build_dir/libcompiler.a \
85 $build_dir/libgallium.a \
86 $build_dir/libgalliumvl.a \
88 $build_dir/libpipe_loader_static.a \
89 $build_dir/libloader.a \
90 $build_dir/libxmlconfig.a \
92 $build_dir/libradeonsi.a \
93 $libradeonsi_gfx_libs \
94 $build_dir/libmesa_util.a \
95 $build_dir/libgallium_winsys_amdgpu_drm.a \
96 $build_dir/libgallium_winsys_sw_dri.a \
97 $build_dir/libgallium_winsys_sw_kms_dri.a \
98 $build_dir/libgallium_winsys_sw_null.a \
99 $build_dir/libgallium_winsys_sw_wrapper.a \
100 $build_dir/libaddrlib.a \
101 $build_dir/libamd_common.a \
103 $libelf_static_ld_flags \
104 $zlib_static_ld_flags \
106 $cxx_runtime_lib \
107 $cc_ld_support_lib \
108 $cc_ld_eh_support_lib \
109 --end-group \
111 --as-needed \
112 $build_dir/install_root$libdir_store/libglapi.so.0.0.0 \
113 $libxcb_ld_flags \
114 $libxshmfence_ld_flags \
115 $libdrm_amdgpu_ld_flags \
116 $libdrm_ld_flags \
117 $syslibs_libm_ld_flags \
118 $syslibs_libdl_ld_flags \
119 $syslibs_libpthread_ld_flags \
120 $syslibs_libc_ld_flags \
121 --no-as-needed \
122 $cc_ld_slib_end_files \
123 $syslib_ld_slib_end_files
124 #-------------------------------------------------------------------------------
125 ln -sf $libdir_store_virtual/libgallium_dri.so $build_dir/install_root$libdir/libgallium_dri.so
126 #===============================================================================
127 printf "\t<--targets sub-components built\n"