diff --git a/chapter08/dbus.xml b/chapter08/dbus.xml index 086b30b93..a8c915135 100644 --- a/chapter08/dbus.xml +++ b/chapter08/dbus.xml @@ -92,6 +92,68 @@ meson setup --prefix=/usr --buildtype=release --wrap-mode=nofallback .. + + + + + + Installation of dbus - 32-bit + + Clean previous build: + +rm -rf * + + Prepare dbus for compilation: + +PKG_CONFIG_PATH="/usr/lib32/pkgconfig" \ +CC="gcc -m32 -march=i686" \ +CXX="g++ -m32 -march=i686" \ +meson setup --prefix=/usr --libdir=/usr/lib32 --buildtype=release --wrap-mode=nofallback .. + + Compile the package: + +ninja + + Install the package: + +DESTDIR=$(pwd)/destdir ninja install +mkdir -pv /usr/lib32/pkgconfig +cp -av $(pwd)/destdir/usr/lib32/libdbus-1.so* /usr/lib32/ +cp -v $(pwd)/destdir/usr/lib32/pkgconfig/dbus-1.pc /usr/lib32/pkgconfig/ + + + + + + + + + Installation of dbus - x32-bit + + Clean previous build: + +rm -rf * + + Prepare dbus for compilation: + +PKG_CONFIG_PATH="/usr/libx32/pkgconfig" \ +CC="gcc -mx32" \ +CXX="g++ -mx32" \ +meson setup --prefix=/usr --libdir=/usr/libx32 --buildtype=release --wrap-mode=nofallback .. + + Compile the package: + +ninja + + Install the package: + +DESTDIR=$(pwd)/destdir ninja install +mkdir -pv /usr/libx32/pkgconfig +cp -av $(pwd)/destdir/usr/libx32/libdbus-1.so* /usr/libx32/ +cp -v $(pwd)/destdir/usr/libx32/pkgconfig/dbus-1.pc /usr/libx32/pkgconfig/ + + + Contents of D-Bus