-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
package: added Android PKGBUILD and Jenkins CI job.
- Loading branch information
Showing
3 changed files
with
173 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Author: mosra <[email protected]> | ||
pkgname=android-arm-magnum-plugins | ||
pkgver=dev | ||
pkgrel=1 | ||
pkgdesc="Plugins for Magnum OpenGL graphics engine (Android ARM)" | ||
arch=('any') | ||
url="http://mosra.cz/blog/magnum.php" | ||
license=('MIT') | ||
depends=('android-arm-magnum') | ||
makedepends=('cmake' 'ninja' 'android-ndk' 'corrade') | ||
options=('!strip' '!buildflags') | ||
|
||
_rootdir=$startdir/../../ | ||
|
||
build() { | ||
if [ ! -d "$_rootdir/build-android-arm" ] ; then | ||
mkdir "$_rootdir/build-android-arm" | ||
cd "$_rootdir/build-android-arm" | ||
|
||
cmake .. \ | ||
-DCMAKE_MODULE_PATH="$_rootdir/toolchains/modules" \ | ||
-DCMAKE_TOOLCHAIN_FILE="$_rootdir/toolchains/generic/Android-ARM.cmake" \ | ||
-G Ninja | ||
fi | ||
|
||
cd "$_rootdir/build-android-arm" | ||
|
||
# OpenGEX importer is not ported to platforms without std::stof() etc | ||
cmake .. \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_INSTALL_PREFIX=/opt/android-ndk/platforms/android-19/arch-arm/usr \ | ||
-DWITH_ANYIMAGEIMPORTER=ON \ | ||
-DWITH_ANYSCENEIMPORTER=ON \ | ||
-DWITH_OPENGEXIMPORTER=OFF \ | ||
-DWITH_STANFORDIMPORTER=ON \ | ||
-DWITH_STBIMAGEIMPORTER=ON \ | ||
-DWITH_STBPNGIMAGECONVERTER=ON | ||
ninja | ||
} | ||
|
||
package() { | ||
cd "$_rootdir/build-android-arm" | ||
DESTDIR="$pkgdir/" ninja install/strip | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<matrix-project> | ||
<actions/> | ||
<description></description> | ||
<logRotator class="hudson.tasks.LogRotator"> | ||
<daysToKeep>-1</daysToKeep> | ||
<numToKeep>10</numToKeep> | ||
<artifactDaysToKeep>-1</artifactDaysToKeep> | ||
<artifactNumToKeep>-1</artifactNumToKeep> | ||
</logRotator> | ||
<keepDependencies>false</keepDependencies> | ||
<properties/> | ||
<scm class="hudson.plugins.git.GitSCM" plugin="[email protected]"> | ||
<configVersion>2</configVersion> | ||
<userRemoteConfigs> | ||
<hudson.plugins.git.UserRemoteConfig> | ||
<url>git://github.com/mosra/magnum-plugins.git</url> | ||
</hudson.plugins.git.UserRemoteConfig> | ||
</userRemoteConfigs> | ||
<branches> | ||
<hudson.plugins.git.BranchSpec> | ||
<name>*/master</name> | ||
</hudson.plugins.git.BranchSpec> | ||
</branches> | ||
<doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> | ||
<submoduleCfg class="list"/> | ||
<extensions> | ||
<hudson.plugins.git.extensions.impl.CloneOption> | ||
<shallow>true</shallow> | ||
<reference></reference> | ||
</hudson.plugins.git.extensions.impl.CloneOption> | ||
</extensions> | ||
</scm> | ||
<canRoam>true</canRoam> | ||
<disabled>false</disabled> | ||
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> | ||
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> | ||
<triggers/> | ||
<concurrentBuild>false</concurrentBuild> | ||
<customWorkspace>MagnumPlugins</customWorkspace> | ||
<axes> | ||
<hudson.matrix.TextAxis> | ||
<name>toolchain</name> | ||
<values> | ||
<string>ARM</string> | ||
<string>x86</string> | ||
</values> | ||
</hudson.matrix.TextAxis> | ||
<hudson.matrix.TextAxis> | ||
<name>compatibility</name> | ||
<values> | ||
<string></string> | ||
<string>deprecated</string> | ||
</values> | ||
</hudson.matrix.TextAxis> | ||
</axes> | ||
<builders> | ||
<hudson.tasks.Shell> | ||
<command> | ||
<![CDATA[ | ||
git submodule init | ||
git submodule update | ||
if [ "${compatibility}" = "deprecated" ] ; then | ||
deprecated_build_flag=ON | ||
else | ||
deprecated_build_flag=OFF | ||
fi | ||
mkdir -p build-android-${toolchain}-${compatibility} | ||
cd build-android-${toolchain}-${compatibility} | ||
# OpenGEX importer is not ported to platforms without std::stof() etc. | ||
cmake .. \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_MODULE_PATH="${WORKSPACE}/toolchains/modules" \ | ||
-DCMAKE_TOOLCHAIN_FILE=../toolchains/generic/Android-${toolchain}.cmake \ | ||
-DCMAKE_FIND_ROOT_PATH=${JENKINS_HOME}/filesystem/android-${toolchain}-${compatibility} \ | ||
-DCMAKE_INSTALL_PREFIX=${JENKINS_HOME}/filesystem/android-${toolchain}-${compatibility} \ | ||
-DBUILD_DEPRECATED=${deprecated_build_flag} \ | ||
-DWITH_ANYIMAGEIMPORTER=ON \ | ||
-DWITH_ANYSCENEIMPORTER=ON \ | ||
`#-DWITH_COLLADAIMPORTER=ON` \ | ||
`#-DWITH_FREETYPEFONT=ON` \ | ||
`#-DWITH_HARFBUZZFONT=ON` \ | ||
`#-DWITH_JPEGIMPORTER=ON` \ | ||
-DWITH_OPENGEXIMPORTER=OFF \ | ||
`#-DWITH_PNGIMPORTER=ON` \ | ||
-DWITH_STANFORDIMPORTER=ON \ | ||
-DWITH_STBIMAGEIMPORTER=ON \ | ||
-DWITH_STBPNGIMAGECONVERTER=ON \ | ||
-G Ninja | ||
ninja | ||
ninja install | ||
]]> | ||
</command> | ||
</hudson.tasks.Shell> | ||
</builders> | ||
<publishers> | ||
<hudson.plugins.textfinder.TextFinderPublisher plugin="[email protected]"> | ||
<regexp>Errors while running CTest</regexp> | ||
<succeedIfFound>false</succeedIfFound> | ||
<unstableIfFound>true</unstableIfFound> | ||
<alsoCheckConsoleOutput>true</alsoCheckConsoleOutput> | ||
</hudson.plugins.textfinder.TextFinderPublisher> | ||
</publishers> | ||
<buildWrappers/> | ||
<executionStrategy class="hudson.matrix.DefaultMatrixExecutionStrategyImpl"> | ||
<runSequentially>true</runSequentially> | ||
<touchStoneCombinationFilter> | ||
<![CDATA[ | ||
toolchain == "ARM" && compatibility == "deprecated" | ||
]]> | ||
</touchStoneCombinationFilter> | ||
<touchStoneResultCondition> | ||
<name>UNSTABLE</name> | ||
<ordinal>1</ordinal> | ||
<color>YELLOW</color> | ||
<completeBuild>true</completeBuild> | ||
</touchStoneResultCondition> | ||
</executionStrategy> | ||
<childCustomWorkspace>.</childCustomWorkspace> | ||
</matrix-project> |