From d312def0ceddc09b7335a77239a8b77bbd4906a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Latan=C3=A9?= Date: Sun, 20 Oct 2019 17:09:23 -0400 Subject: [PATCH] Android CircleCI Build (#574) --- .circleci/config.yml | 55 ++++++++++++++++++++++++++++++++++++++ README.md | 2 ++ src/drivers/fluid_oboe.cpp | 1 + 3 files changed, 58 insertions(+) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 00000000..5ae6adea --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,55 @@ +version: 2.1 +orbs: + android: circleci/android@0.2.0 +jobs: + build: + working_directory: ~/code + docker: + - image: circleci/android:api-29 + environment: + JVM_OPTS: -Xmx3200m + steps: + - run: + name: Setup Git email and user for Cerbero + command: git config --global user.email "ci@beatscratch.io" && git config --global user.name "CI testing" + - android/install-ndk: + ndk-version: android-ndk-r18b + ndk-sha: 500679655da3a86aecf67007e8ab230ea9b4dd7b + - run: + name: Link NDK for Cerbero + command: | + mkdir -p /home/circleci/android-sdk-linux + ln -s /opt/android/android-ndk-r18b /home/circleci/android-sdk-linux/ndk-bundle + - run: + name: Install FluidSynth build dependencies + command: sudo apt-get update && sudo apt-get install autotools-dev automake autoconf libtool g++ autopoint make cmake + bison flex yasm pkg-config gtk-doc-tools libxv-dev libx11-dev libpulse-dev + python3-dev texinfo gettext build-essential pkg-config doxygen curl libxext-dev + libxi-dev x11proto-record-dev libxrender-dev libgl1-mesa-dev libxfixes-dev + libxdamage-dev libxcomposite-dev libasound2-dev libxml-simple-perl dpkg-dev + debhelper build-essential devscripts fakeroot transfig gperf libdbus-glib-1-dev + wget glib-networking libxtst-dev libxrandr-dev libglu1-mesa-dev libegl1-mesa-dev + git subversion xutils-dev intltool ccache python3-setuptools autogen maven make + - checkout + - run: + name: Prepare FluidSynth Android + working_directory: doc/android + command: | + make -f Makefile.android prepare + - run: + name: Build FluidSynth Android + working_directory: doc/android + command: | + make -f Makefile.android + - run: + name: Show directory contents + working_directory: doc/android + command: | + ls -R + - run: + name: Zip FluidSnyth Android Distribution + working_directory: doc/android + command: zip -r android-dist.zip dist + - store_artifacts: + path: doc/android/android-dist.zip + destination: android-dist.zip \ No newline at end of file diff --git a/README.md b/README.md index dd06fe8f..d3bf3bda 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,8 @@ | ![Linux](https://raw.githubusercontent.com/microsoft/azure-pipelines-tasks/master/docs/res/linux_med.png) **Linux** | n.a. | [![Build Status Travis](https://travis-ci.org/FluidSynth/fluidsynth.svg?branch=master)](https://travis-ci.org/FluidSynth/fluidsynth/branches) | | **FreeBSD** | n.a. | [![Build Status](https://api.cirrus-ci.com/github/FluidSynth/fluidsynth.svg?branch=master)](https://cirrus-ci.com/github/FluidSynth/fluidsynth) | | ![Win](https://raw.githubusercontent.com/microsoft/azure-pipelines-tasks/master/docs/res/win_med.png) **Windows** && ![macOS](https://raw.githubusercontent.com/microsoft/azure-pipelines-tasks/master/docs/res/apple_med.png) **MacOSX** | [![Build Status](https://dev.azure.com/tommbrt/tommbrt/_apis/build/status/FluidSynth.fluidsynth?branchName=master)](https://dev.azure.com/tommbrt/tommbrt/_build/latest?definitionId=3&branchName=master) | [![Build status](https://ci.appveyor.com/api/projects/status/anbmtebt5uk4q1it/branch/master?svg=true)](https://ci.appveyor.com/project/derselbst/fluidsynth-g2ouw/branch/master) | +| ![Android](https://www.android.com/favicon.ico) **Android** | n.a. | [![CircleCI](https://circleci.com/gh/Fluidsynth/fluidsynth.svg?style=svg)](https://circleci.com/gh/Fluidsynth/fluidsynth) | + #### FluidSynth is a cross-platform, real-time software synthesizer based on the Soundfont 2 specification. diff --git a/src/drivers/fluid_oboe.cpp b/src/drivers/fluid_oboe.cpp index 91f2b189..d5b343d3 100644 --- a/src/drivers/fluid_oboe.cpp +++ b/src/drivers/fluid_oboe.cpp @@ -28,6 +28,7 @@ extern "C" { #include "fluid_adriver.h" #include "fluid_settings.h" +#include "fluid_sys.h" } // extern "C"