Change to native app creation for MacOS (#1459)
* Enable native MacOS builds * Enable native MacOS builds * Use Python 2 * Fix Shellingham bug in pipenv * Add jhbuild bootstrap again additional to gtk bootstrap * Rebuild Cairo with FreeType support for Poppler * Switch to .new_local in build-app script * Switch to .new_local in build-libzip * Switch to .new_local in build-poppler * Switch to .new_local in build-portaudio * Switch to .new_local in build-sndfile * Update macOS native build instructions for macOS 10.13 * Add adwaita-icon-theme to mac os native build instructions * Create build directory if necessary * Make build script gtk-path agnostic and update pipeline * Fix macOS testing and add release code * Add build script for cppunit in macOS * Update CppUnit script * Use precompiled GTK for native mac pipeline * Build in correct directory * Fix test execution for native mac pipeline * Fix release pipeline for macpresentation
parent
857639ac7c
commit
d7313fb0d0
12 changed files with 149 additions and 63 deletions
@ -0,0 +1,32 @@ |
|||||||
|
parameters: |
||||||
|
build_type: '' |
||||||
|
cmake_flags: '' |
||||||
|
|
||||||
|
steps: |
||||||
|
- bash: | |
||||||
|
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)" |
||||||
|
displayName: 'Uninstall brew' |
||||||
|
- bash: | |
||||||
|
cd /Users |
||||||
|
sudo mkdir git-bin |
||||||
|
sudo chown $USER git-bin |
||||||
|
cd git-bin |
||||||
|
curl -L -o gtk-bin.tar.gz https://github.com/xournalpp/xournalpp-pipeline-dependencies/raw/master/gtk/mac/10.13/gtk-bin.tar.gz |
||||||
|
tar -xzf gtk-bin.tar.gz |
||||||
|
export PATH="$HOME/.local/bin:/Users/git-bin/gtk/inst/bin:$PATH" |
||||||
|
displayName: 'Unpack GTK' |
||||||
|
- bash: | |
||||||
|
curl -L -o libxml.tar.gz https://github.com/xournalpp/xournalpp-pipeline-dependencies/raw/master/libxml/mac/10.13/libxml.tar.gz |
||||||
|
sudo tar -xzf libxml.tar.gz -C / |
||||||
|
|
||||||
|
displayName: 'Unpack libxml' |
||||||
|
- bash: | |
||||||
|
mkdir build |
||||||
|
displayName: 'Create Build Directory' |
||||||
|
- bash: | |
||||||
|
export PATH="$HOME/.local/bin:/Users/git-bin/gtk/inst/bin:$PATH" |
||||||
|
cmake -DCMAKE_INSTALL_PREFIX:PATH=/Users/git-bin/gtk/inst .. -DCMAKE_BUILD_TYPE=${{ parameters.build_type}} ${{ parameters.cmake_flags }} |
||||||
|
make -j 4 |
||||||
|
make install |
||||||
|
workingDirectory: ./build |
||||||
|
displayName: 'Build Xournal++' |
||||||
@ -0,0 +1,15 @@ |
|||||||
|
# go to script directory |
||||||
|
cd "${0%/*}" |
||||||
|
|
||||||
|
export PATH="$HOME/.new_local/bin:$PATH" |
||||||
|
export LIBRARY_PATH="$HOME/gtk/inst/lib:$LIBRARY_PATH" |
||||||
|
|
||||||
|
curl -L http://dev-www.libreoffice.org/src/cppunit-1.14.0.tar.gz -o cppunit-1.14.0.tar.gz |
||||||
|
tar xzf cppunit-1.14.0.tar.gz |
||||||
|
|
||||||
|
cd cppunit-1.14.0 |
||||||
|
|
||||||
|
./autogen.sh |
||||||
|
./configure --prefix=$HOME/gtk/inst |
||||||
|
make |
||||||
|
make install |
||||||
Loading…
Reference in new issue