Merge pull request #905 from marcoDallas/improvement/linux-build-scripts

Improved Android SDK detection in Linux build scripts
This commit is contained in:
PhilippC
2019-08-15 05:42:55 +02:00
committed by GitHub
2 changed files with 14 additions and 2 deletions

View File

@@ -3,6 +3,12 @@ set -e
pushd ../keepass2android
xabuild keepass2android.csproj /t:SignAndroidPackage "$@"
# check if ANDROID_HOME is defined
if [ -z ${ANDROID_HOME+x} ];
then
xabuild keepass2android.csproj /t:SignAndroidPackage "$@"
else
xabuild keepass2android.csproj /p:AndroidSdkDirectory=$ANDROID_HOME /t:SignAndroidPackage "$@"
fi
popd

View File

@@ -20,6 +20,12 @@ popd
# call "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" x86_amd64
xabuild KeePass.sln /target:keepass2android /p:BuildProjectReferences=true /p:Configuration="Debug" /p:Platform="Any CPU" "$@"
# check if ANDROID_HOME is defined
if [ -z ${ANDROID_HOME+x} ];
then
xabuild KeePass.sln /target:keepass2android /p:BuildProjectReferences=true /p:Configuration="Debug" /p:Platform="Any CPU" "$@"
else
xabuild KeePass.sln /target:keepass2android /p:AndroidSdkDirectory=$ANDROID_HOME /p:BuildProjectReferences=true /p:Configuration="Debug" /p:Platform="Any CPU" "$@"
fi
popd