-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
description = "Android SDK Command-line Tools" | ||
homepage = "https://developer.android.com/tools#tools-sdk" | ||
test = "sdkmanager --version" | ||
binaries = [ | ||
"bin/apkanalyzer", | ||
"bin/avdmanager", | ||
"bin/lint", | ||
"bin/retrace", | ||
"bin/sdkmanager", | ||
] | ||
strip = 1 | ||
|
||
// avdmanager respects com.android.sdkmanager.toolsdir | ||
// sdkmanager respects com.android.sdklib.toolsdir | ||
// ANDROID_SDK_ROOT is deprecated. Don't even try it. | ||
// ... and everyone respects ANDROID_HOME | ||
env = { | ||
"AVDMANAGER_OPTS": "'-Dcom.android.sdkmanager.toolsdir=${ANDROID_HOME}/cmdline-tools'", | ||
"SDKMANAGER_OPTS": "'-Dcom.android.sdklib.toolsdir=${ANDROID_HOME}/cmdline-tools/latest'", | ||
"ANDROID_HOME": "${HERMIT_ENV}/.hermit/android/sdk" | ||
} | ||
|
||
on "unpack" { | ||
mkdir { | ||
dir = "${HERMIT_ENV}/.hermit/android/sdk/cmdline-tools" | ||
} | ||
|
||
symlink { | ||
from = "${root}" | ||
to = "${HERMIT_ENV}/.hermit/android/sdk/cmdline-tools/latest" | ||
} | ||
} | ||
|
||
darwin { | ||
source = "https://dl.google.com/android/repository/commandlinetools-mac-${version}_latest.zip" | ||
} | ||
|
||
linux { | ||
source = "https://dl.google.com/android/repository/commandlinetools-linux-${version}_latest.zip" | ||
} | ||
|
||
version "9477386" {} |