MXE (M cross environment) fork
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

92 lines
3.1 KiB

image: ubuntu/20.04
packages:
- autoconf
- automake
- autopoint
- bash
- bison
- bzip2
- flex
- g++
- g++-multilib
- gettext
- git
- gperf
- intltool
- libc6-dev-i386
- libgdk-pixbuf2.0-dev
- libltdl-dev
- libssl-dev
- libtool-bin
- libxml-parser-perl
- lzip
- make
- meson
- openssl
- p7zip-full
- patch
- perl
- pkg-config
- python
- ruby
- sed
- unzip
- wget
- xz-utils
- rsync
sources:
- https://git.zrythm.org/git/mxe
secrets:
- 063cb70d-6da6-492a-b530-04edc07651ba
tasks:
- build_64: |
cd mxe
./bootstrap
make MXE_TARGETS='x86_64-w64-mingw32.shared' MXE_PLUGIN_DIRS=plugins/meson-wrapper JOBS=5 -j5 carla
- deploy_64: |
cd mxe
# set common vars
tmpdir=carla-tmp
sshopts="ssh -o StrictHostKeyChecking=no"
# do 64bit
prefix="usr/x86_64-w64-mingw32.shared"
mkdir -p $tmpdir/include
mkdir -p $tmpdir/lib/pkgconfig
cp -R $prefix/include/carla $tmpdir/include/
cp -R $prefix/lib/carla $tmpdir/lib/
cp $prefix/lib/pkgconfig/carla* $tmpdir/lib/pkgconfig/
cp src/carla.mk $tmpdir/version.txt
carla_commit=$(grep -oE "VERSION := (.*)$" src/carla.mk | cut -c 13-)
cd $tmpdir
current_prefix=/home/build/mxe/$prefix
sed -i -e "s|prefix=$current_prefix|prefix=/mingw64|" lib/pkgconfig/carla-native-plugin.pc
sed -i -e "s|libdir=$current_prefix|libdir=\${prefix}|" lib/pkgconfig/carla-native-plugin.pc
sed -i -e "s|includedir=$current_prefix|includedir=\${prefix}|" lib/pkgconfig/carla-native-plugin.pc
sed -i -e "s|prefix=$current_prefix|prefix=/mingw64|" lib/pkgconfig/carla-standalone.pc
sed -i -e "s|libdir=$current_prefix|libdir=\${prefix}|" lib/pkgconfig/carla-standalone.pc
sed -i -e "s|includedir=$current_prefix|includedir=\${prefix}|" lib/pkgconfig/carla-standalone.pc
sed -i -e "s|prefix=$current_prefix|prefix=/mingw64|" lib/pkgconfig/carla-utils.pc
sed -i -e "s|libdir=$current_prefix|libdir=\${prefix}|" lib/pkgconfig/carla-utils.pc
sed -i -e "s|includedir=$current_prefix|includedir=\${prefix}|" lib/pkgconfig/carla-utils.pc
zip carla-64-$carla_commit.zip -r ./*
rsync --rsh="$sshopts" -rP carla-64-$carla_commit.zip srht@mail.zrythm.org:/var/www/zrythm/downloads/carla/
- build_32: |
cd mxe
make MXE_TARGETS='i686-w64-mingw32.shared' MXE_PLUGIN_DIRS=plugins/meson-wrapper JOBS=5 -j5 carla
- deploy_32: |
cd mxe
# set common vars
tmpdir=carla-tmp
sshopts="ssh -o StrictHostKeyChecking=no"
# do 32bit
prefix="usr/i686-w64-mingw32.static"
mkdir -p $tmpdir/include
mkdir -p $tmpdir/lib/pkgconfig
cp -R $prefix/include/carla $tmpdir/include/
cp -R $prefix/lib/carla $tmpdir/lib/
cp $prefix/lib/pkgconfig/carla* $tmpdir/lib/pkgconfig/
cp src/carla.mk $tmpdir/version.txt
carla_commit=$(grep -oE "VERSION := (.*)$" src/carla.mk | cut -c 13-)
cd $tmpdir
zip carla-32-$carla_commit.zip -r ./*
rsync --rsh="$sshopts" -rP carla-32-$carla_commit.zip srht@mail.zrythm.org:/var/www/zrythm/downloads/carla/