mirror of https://github.com/mosra/magnum.git
Browse Source
* Making use of the builtin support in CMake 3.7, the old toolchain files are no longer needed and thus removed. * Switched to Clang and libc++, as it has better C++11 support. GCC toolchain support will phase out in the following commits. * Having only one PKGBUILD, building for Android ARM64 now. * Updated the building docs to reflect this.pull/205/head
6 changed files with 53 additions and 90 deletions
@ -1,45 +0,0 @@ |
|||||||
# Author: mosra <mosra@centrum.cz> |
|
||||||
pkgname=android-x86-magnum |
|
||||||
pkgver=dev |
|
||||||
pkgrel=1 |
|
||||||
pkgdesc="C++11/C++14 graphics middleware for games and data visualization (Android x86)" |
|
||||||
arch=('any') |
|
||||||
url="http://magnum.graphics" |
|
||||||
license=('MIT') |
|
||||||
depends=('android-x86-corrade') |
|
||||||
makedepends=('cmake' 'ninja' 'android-ndk 'corrade'') |
|
||||||
options=('!strip' '!buildflags') |
|
||||||
|
|
||||||
_rootdir=$startdir/../../ |
|
||||||
|
|
||||||
build() { |
|
||||||
if [ ! -d "$_rootdir/build-android-x86" ] ; then |
|
||||||
mkdir "$_rootdir/build-android-x86" |
|
||||||
cd "$_rootdir/build-android-x86" |
|
||||||
|
|
||||||
cmake .. \ |
|
||||||
-DCMAKE_TOOLCHAIN_FILE="$_rootdir/toolchains/generic/Android-x86.cmake" \ |
|
||||||
-DTARGET_GLES=ON \ |
|
||||||
-DTARGET_GLES2=ON \ |
|
||||||
-G Ninja |
|
||||||
fi |
|
||||||
|
|
||||||
cd "$_rootdir/build-android-x86" |
|
||||||
|
|
||||||
cmake .. \ |
|
||||||
-DCMAKE_BUILD_TYPE=Release \ |
|
||||||
-DCMAKE_INSTALL_PREFIX=/opt/android-ndk/platforms/android-19/arch-x86/usr \ |
|
||||||
-DWITH_MAGNUMFONT=ON \ |
|
||||||
-DWITH_OBJIMPORTER=ON \ |
|
||||||
-DWITH_TGAIMAGECONVERTER=ON \ |
|
||||||
-DWITH_TGAIMPORTER=ON \ |
|
||||||
-DWITH_ANDROIDAPPLICATION=ON \ |
|
||||||
-DWITH_EGLCONTEXT=ON \ |
|
||||||
-DBUILD_TESTS=ON |
|
||||||
ninja |
|
||||||
} |
|
||||||
|
|
||||||
package() { |
|
||||||
cd "$_rootdir/build-android-x86" |
|
||||||
DESTDIR="$pkgdir/" ninja install/strip |
|
||||||
} |
|
||||||
Loading…
Reference in new issue