PIKApp/build/windows/jhbuild/split-build

34 lines
898 B
Plaintext
Raw Permalink Normal View History

2023-09-26 00:35:21 +02:00
#!/bin/sh
set -e
BUILD_ARCH=${BUILD_ARCH:-i686}
if [ "x$BUILD_FLAVOUR" = "xdbg" ]; then
EXT="-dbg-$BUILD_ARCH"
else
EXT="-$BUILD_ARCH"
fi
init_target (){
echo "Cleaning Target $1"
rm -rf targets/$1 || true
mkdir -p targets/$1/_jhbuild/manifests
cp -a targets/pika-common$EXT/_jhbuild/manifests/* targets/$1/_jhbuild/manifests
cp -a targets/pika-common$EXT/_jhbuild/packagedb.xml targets/$1/_jhbuild/
}
chmod a-w win32.cache
export MODULE=pika-common
jhbuild --file=build.jhbuildrc $* build pika-common || true
./targetisunchanged pika-common$EXT pika-stable$EXT || init_target pika-stable$EXT
export MODULE=pika-stable
jhbuild --file=build.jhbuildrc $* build --start-at=pika-common || true
./targetisunchanged pika-common$EXT pika-dev$EXT || init_target pika-dev$EXT
export MODULE=pika-dev
jhbuild --file=build.jhbuildrc $* build --start-at=pika-common || true
chmod u+w win32.cache