1 echo "building GBM (Generic Buffer Manager) components-->"
2 # only one backend: dri
3 #===============================================================================
4 mkdir
-p $build_dir/src
/gbm
5 #-------------------------------------------------------------------------------
7 $src_dir/src/gbm/main/backend.c \
8 $src_dir/src/gbm/main/gbm.c \
9 $src_dir/src/gbm/backends/dri/gbm_dri.c \
11 #-------------------------------------------------------------------------------
12 for src_pathname
in $gbm_c_pathnames
14 cpp_filename
=$
(basename $src_pathname .c
).cpp.c
15 printf "CPP $src_pathname --> $build_dir/src/gbm/$cpp_filename\n"
16 $cpp $src_pathname -o $build_dir/src
/gbm
/$cpp_filename \
17 -DDEFAULT_BACKENDS_PATH=\"$libdir/gbm
\" \
19 -I$cc_internal_fixed_incdir \
20 -I$cc_internal_incdir \
24 -I$build_dir/src
/gbm
/backends
/dri \
25 -I$src_dir/src
/gbm
/backends
/dri \
26 -I$build_dir/src
/gbm
/main \
27 -I$src_dir/src
/gbm
/main \
28 -I$build_dir/src
/loader \
29 -I$src_dir/src
/loader \
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 $gbm_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/gbm/$cpp_filename --> $build_dir/src/gbm/$asm_filename\n"
51 $cc_s $build_dir/src
/gbm
/$cpp_filename -o $build_dir/src
/gbm
/$asm_filename &
53 #------------------------------------------------------------------------------
55 #------------------------------------------------------------------------------
56 for src_pathname
in $gbm_c_pathnames
58 asm_filename
=$
(basename $src_pathname .c
).cpp.c.s
59 o_filename
=$
(basename $src_pathname .c
).cpp.c.s.o
60 printf "AS $build_dir/src/gbm/$asm_filename --> $build_dir/src/gbm/$o_filename\n"
61 $as $build_dir/src
/gbm
/$asm_filename -o $build_dir/src
/gbm
/$o_filename &
63 #-------------------------------------------------------------------------------
64 #===============================================================================
66 #===============================================================================
68 $build_dir/install_root
$libdir \
69 $build_dir/install_root
$libdir_store
70 #-------------------------------------------------------------------------------
71 printf "BINUTILS LD $build_dir/install_root$libdir_store/libgbm.so.1.0.0\n"
72 $binutils_ld -o $build_dir/install_root
$libdir_store/libgbm.so
.1.0.0 \
78 $syslib_ld_slib_start_files \
79 $cc_ld_slib_start_files \
80 $build_dir/src
/gbm
/backend.cpp.c.s.o \
81 $build_dir/src
/gbm
/gbm.cpp.c.s.o \
82 $build_dir/src
/gbm
/gbm_dri.cpp.c.s.o \
84 $build_dir/libloader.a \
85 $build_dir/libxmlconfig.a \
86 $build_dir/libmesa_util.a \
90 $syslibs_libm_ld_flags \
91 $syslibs_libdl_ld_flags \
92 $syslibs_libpthread_ld_flags \
93 $syslibs_libc_ld_flags \
95 $cc_ld_slib_end_files \
96 $syslib_ld_slib_end_files
97 #-------------------------------------------------------------------------------
98 ln -sf $libdir_store_virtual/libgbm.so
.1.0.0 $build_dir/install_root
$libdir/libgbm.so
.1
99 ln -sf libgbm.so
.1.0.0 $build_dir/install_root
$libdir_store/libgbm.so
100 #===============================================================================
101 mkdir
-p $build_dir/install_root
$incdir_store
102 cp -f $src_dir/src
/gbm
/main
/gbm.h
$build_dir/install_root
$incdir_store
103 #===============================================================================
104 echo "<--GBM components built"