Merge pull request #905 from marcoDallas/improvement/linux-build-scripts
Improved Android SDK detection in Linux build scripts
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user