gfx stack update (still holding the breaking llvm)
[nyanlinux.git] / builders / mesa-gl-amd-sh-81d85be9a5cfb5860ba5d15f2bf6f1a4946e411e / contrib / gallium_targets.sh
blob0628775877b72fa136155d0d1d93593d5c0920b3
1 printf "\tbuilding targets sub-components-->\n"
3 mkdir -p $build_dir/gallium/targets/dri
5 $cco_slib -o $build_dir/gallium/targets/dri/target.o $src_dir/src/gallium/targets/dri/target.c \
6 -DGALLIUM_RADEONSI \
8 -I$build_dir/src/gallium/auxiliary \
10 -I$build_dir/src/util \
11 -I$build_dir/src/gallium/drivers \
12 -I$build_dir/src/gallium/frontends/dri \
13 -I$src_dir/src/gallium/frontends/dri \
14 -I$src_dir/src/gallium/winsys \
15 -I$src_dir/src/gallium/drivers \
16 -I$src_dir/src/gallium/auxiliary \
17 -I$src_dir/src/gallium/include \
18 -I$src_dir/src/mesa/drivers/dri/common \
19 -I$src_dir/src/mesa \
20 -I$src_dir/src \
21 -I$src_dir/include \
22 $cco_slib_common_trailer
24 #-------------------------------------------------------------------------------
26 # This is the opengl common ("mesa") dri gallium driver
28 mkdir -p $build_dir/install_root$dri_driver_search_dir
30 #TODO: removed
31 #$build_dir/libmesa_sse41.a \
32 if test "${gallium_dri_link_cmd-unset}" = unset ; then
33 gallium_dri_link_cmd="\
34 g++ -o $build_dir/install_root$dri_driver_search_dir/radeonsi_dri.so -Wl,-soname=gallium_dri.so \
35 -shared -static-libgcc -static-libstdc++ \
36 -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib \
37 -Wl,-rpath-link,/nyan/glibc/current/lib \
38 -Wl,--version-script=$src_dir/src/gallium/targets/dri/dri.sym \
39 -Wl,--no-undefined,--gc-sections \
40 $build_dir/gallium/targets/dri/target.o \
42 -Wl,--start-group \
43 $build_dir/libmesa_gallium.a \
44 $build_dir/libglsl.a \
45 $build_dir/libglcpp.a \
46 $build_dir/libnir.a \
47 $build_dir/libcompiler.a \
49 $build_dir/libdricommon.a \
50 $build_dir/libdri.a \
51 $build_dir/libgallium.a \
52 $build_dir/libgalliumvl.a \
54 $build_dir/libpipe_loader_static.a \
55 $build_dir/libloader.a \
56 $build_dir/libxmlconfig.a \
58 $build_dir/libradeonsi.a \
59 $libradeonsi_gfx_libs \
60 $build_dir/libmesa_util.a \
61 $build_dir/libwinsys_amdgpu_drm.a \
62 $build_dir/libaddrlib.a \
63 $build_dir/libamd_llvm.a \
64 $build_dir/libamd_common.a \
65 -Wl,--end-group \
67 $external_deps_static_ldflags \
68 -Wl,--exclude-libs,$external_deps_archives:$llvm_archives:libstdc++.a \
70 -Wl,--as-needed \
71 $build_dir/install_root$libdir/libglapi.so.0.0.0 \
72 $external_deps_ldflags \
73 $glibc_ldflags \
74 -Wl,--no-as-needed"
76 eval $gallium_dri_link_cmd
78 printf "\t<--targets sub-components built\n"