android-ndk r12b
Closes #4045. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
parent
81960c42e1
commit
cf9b216a47
1 changed files with 8 additions and 3 deletions
|
@ -1,9 +1,8 @@
|
|||
class AndroidNdk < Formula
|
||||
desc "Android native-code language toolset"
|
||||
homepage "https://developer.android.com/ndk/index.html"
|
||||
url "https://dl.google.com/android/repository/android-ndk-r12-darwin-x86_64.zip"
|
||||
version "r12"
|
||||
sha256 "fe10b64a65f3e818b852862975ea7b5896295cd1301d1acdbeb1294d9592fb19"
|
||||
url "https://dl.google.com/android/repository/android-ndk-r12b-darwin-x86_64.zip"
|
||||
sha256 "2bdef9143a2c7680fcb7c9fd54fe85013d591f106aea43831eba5e13e10db77e"
|
||||
|
||||
bottle :unneeded
|
||||
|
||||
|
@ -46,4 +45,10 @@ class AndroidNdk < Formula
|
|||
#{prefix}/docs
|
||||
EOS
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.c").write("int main() { return 0; }")
|
||||
cc = Utils.popen_read("#{bin}/ndk-which gcc").strip
|
||||
system cc, "-c", "test.c", "-o", "test"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue