#!/bin/bash -e #--------------------------------------------------------------------- SCNAME=build-02-fixdirs.sh echo $SCNAME started #--------------------------------------------------------------------- if [ "@$BSCDIR" == "@" ]; then echo Error: $SCNAME called out of order exit 1 fi if [ "@$CHROTOP" == "@" ]; then echo Error: $SCNAME called out of order exit 1 fi if [ "@$INCEXTRA" == "@" ]; then echo Error: $SCNAME called out of order exit 1 fi #--------------------------------------------------------------------- cd $CHROTOP #--------------------------------------------------------------------- rm -fr $INCEXTRA mkdir -p $INCEXTRA pushd $INCEXTRA # for pkg in alsa cups curl expat nspr nss pciutils do ln -nsf $PRODTREE/$pkg/include/* . done # ln -nsf $PRODTREE/xorg/include/GL . ln -nsf $PRODTREE/xorg/include/X11 . ln -nsf $PRODTREE/xorg/include/gbm.h . ln -nsf $PRODTREE/xorg/include/xcb . ln -nsf $PRODTREE/xorg/include/xkbcommon . popd #--------------------------------------------------------------------- PNG=$BSCDIR/chromium.png SVG=$BSCDIR/chromium.svg PRO=product_logo which convert || exit 1 ls $PNG $SVG || exit 1 cp -p \ $SVG \ chrome/app/theme/chromium/${PRO}.svg || exit 1 for x in 22 24 32 44 48 64 128 do convert -scale ${x}x${x} \ $PNG \ chrome/app/theme/chromium/${PRO}_${x}.png || exit 1 done for x in 24 48 64 128 256 do convert -scale ${x}x${x} \ $PNG \ chrome/app/theme/chromium/linux/${PRO}_${x}.png || exit 1 done #--------------------------------------------------------------------- mkdir -p third_party/node/linux/node-linux-x64/bin ln -nsf /usr/bin/node third_party/node/linux/node-linux-x64/bin/ #--------------------------------------------------------------------- # Special: nasm pushd third_party/nasm/ || exit 1 sed -e 's@#include "error.h"@#include "../include/error.h"@' \ -i `ffe c` `ffe h` popd #--------------------------------------------------------------------- # 3p: flac pushd third_party/flac/include/FLAC/ || exit 1 ln -nsf format.h flacformat.h ln -nsf stream_decoder.h 3p-stream_decoder.h popd pushd third_party/flac/src/libFLAC/include/private/ ln -nsf memory.h 3p-memory.h popd pushd third_party/flac/src/libFLAC/include/protected/ || exit 1 ln -nsf stream_decoder.h 3p-stream_decoder.h popd pushd third_party/flac/ || exit 1 sed -e 's@stream_decoder\.h@3p-stream_decoder.h@g' \ -e 's@FLAC/format\.h@FLAC/flacformat.h@g' \ -e 's@memory\.h@3p-memory.h@g' \ \ -e 's@3p-3p-3p@3p@g' \ -e 's@3p-3p@3p@g' \ -i `find . -type f -name \*.c` \ `find . -type f -name \*.cc` \ `find . -type f -name \*.h` popd #--------------------------------------------------------------------- # 3p: fontconfig pushd third_party/fontconfig/include/src/ || exit 1 ln -nsf fcalias.h 3p-fcalias.h popd pushd third_party/fontconfig/src/fontconfig/ || exit 1 ln -nsf fontconfig.h 3p-fontconfig.h popd pushd third_party/fontconfig/ || exit 1 sed -e 's@fcalias\.h@3p-fcalias.h@g' \ -e 's@fontconfig\.h@3p-fontconfig.h@g' \ \ -e 's@3p-3p-3p@3p@g' \ -e 's@3p-3p@3p@g' \ -i `find . -type f -name \*.c` \ `find . -type f -name \*.cc` \ `find . -type f -name \*.h` popd #--------------------------------------------------------------------- # 3p: libaom pushd third_party/libaom/source/libaom/aom/ || exit 1 ln -nsf aomcx.h 3p-aomcx.h ln -nsf aomdx.h 3p-aomdx.h ln -nsf aom_codec.h 3p-aom_codec.h ln -nsf aom_encoder.h 3p-aom_encoder.h ln -nsf aom_image.h 3p-aom_image.h popd pushd third_party/libaom/ || exit 1 sed -e 's@aomcx\.h@3p-aomcx.h@g' \ -e 's@aomdx\.h@3p-aomdx.h@g' \ -e 's@aom_codec\.h@3p-aom_codec.h@g' \ -e 's@aom_encoder\.h@3p-aom_encoder.h@g' \ -e 's@aom_image\.h@3p-aom_image.h@g' \ \ -e 's@3p-3p-3p@3p@g' \ -e 's@3p-3p@3p@g' \ -i `find . -type f -name \*.c` \ `find . -type f -name \*.cc` \ `find . -type f -name \*.h` popd #--------------------------------------------------------------------- # 3p: libavif pushd third_party/libavif/src/include/avif/ || exit 1 ln -nsf avif.h 3p-avif.h popd pushd third_party/libavif/ || exit 1 sed -e 's@avif\.h@3p-avif.h@g' \ \ -e 's@3p-3p-3p@3p@g' \ -e 's@3p-3p@3p@g' \ -i `find . -type f -name \*.c` \ `find . -type f -name \*.cc` \ `find . -type f -name \*.h` popd #--------------------------------------------------------------------- # 3p: libsrtp pushd third_party/libsrtp/crypto/include/ || exit 1 ln -nsf err.h 3p-err.h popd pushd third_party/libsrtp/ || exit 1 sed -e 's@err\.h@3p-err.h@g' \ \ -e 's@3p-3p-3p@3p@g' \ -e 's@3p-3p@3p@g' \ -i `find . -type f -name \*.c` \ `find . -type f -name \*.cc` \ `find . -type f -name \*.h` popd #--------------------------------------------------------------------- # 3p: libxml pushd third_party/libxml/src/ || exit 1 ln -nsf libxml.h 3p-libxml.h popd pushd third_party/libxml/ || exit 1 sed -e 's@libxml\.h@3p-libxml.h@g' \ \ -e 's@3p-3p-3p@3p@g' \ -e 's@3p-3p@3p@g' \ -i `find . -type f -name \*.c` \ `find . -type f -name \*.cc` \ `find . -type f -name \*.h` popd #--------------------------------------------------------------------- echo $SCNAME done #--------------------------------------------------------------------- # End of file.