gnu: Add android-platform-frameworks-native-headers.
* gnu/package/android.scm (android-platform-frameworks-native): New function. (android-platform-frameworks-native-headers): New variables.
parent
ac40779860
commit
2c3ac9f722
|
@ -193,6 +193,17 @@ use their packages mostly unmodified in our Android NDK build system.")
|
||||||
(base32
|
(base32
|
||||||
checksum))))
|
checksum))))
|
||||||
|
|
||||||
|
(define (android-platform-frameworks-native version)
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://android.googlesource.com/platform/frameworks/native")
|
||||||
|
(commit (string-append "android-" version))))
|
||||||
|
(file-name (string-append "android-platform-frameworks-native-"
|
||||||
|
version "-checkout"))
|
||||||
|
(sha256
|
||||||
|
(base32 "00dgx27wma7wzivniy8zyw2443fi2xx8gyxii081m0fwamqd3jrm"))))
|
||||||
|
|
||||||
(define-public android-liblog
|
(define-public android-liblog
|
||||||
(package
|
(package
|
||||||
(name "android-liblog")
|
(name "android-liblog")
|
||||||
|
@ -731,6 +742,31 @@ it.
|
||||||
to be passed to the @code{udev} service.")
|
to be passed to the @code{udev} service.")
|
||||||
(license license:gpl3+)))
|
(license license:gpl3+)))
|
||||||
|
|
||||||
|
(define-public android-platform-frameworks-native-headers
|
||||||
|
(package
|
||||||
|
(name "android-platform-frameworks-native-headers")
|
||||||
|
(version (android-platform-version))
|
||||||
|
(source (android-platform-frameworks-native version))
|
||||||
|
(build-system trivial-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:modules ((guix build utils))
|
||||||
|
#:builder
|
||||||
|
(begin
|
||||||
|
(use-modules (guix build utils))
|
||||||
|
(let ((source (assoc-ref %build-inputs "source"))
|
||||||
|
(include (string-append %output "/include/android")))
|
||||||
|
(mkdir-p include)
|
||||||
|
(copy-recursively (string-append source "/include/android")
|
||||||
|
(string-append include)) ; "/android"))
|
||||||
|
))))
|
||||||
|
(home-page "https://android.googlesource.com/platform/frameworks/native/")
|
||||||
|
(synopsis "Headers for Android development from
|
||||||
|
android-platform-frameworks-native")
|
||||||
|
(description "This package contains headers used for developing software
|
||||||
|
for Android. More precicely the headers from include/android in
|
||||||
|
platform/frameworks/native.")
|
||||||
|
(license license:asl2.0)))
|
||||||
|
|
||||||
(define-public git-repo
|
(define-public git-repo
|
||||||
(package
|
(package
|
||||||
(name "git-repo")
|
(name "git-repo")
|
||||||
|
|
Reference in New Issue