Verified Commit 2c32b6f6 authored by Julien Lepiller's avatar Julien Lepiller
Browse files

android: Import dexdump and dmtracedump.

* android/packages/android-sources.scm (android-platform-art-12-source):
New variable.
* android/packages/android-tools.scm (dexdump, dmtracedump, libartbase)
(libartpalette, libdexfile, libdexfile-external-headers): New variables.
parent 1efa4d15
......@@ -22,6 +22,31 @@
#:use-module (guix packages)
#:use-module (guix git-download))
(define-public android-platform-art-12-source
(origin
(method git-fetch)
(uri (git-reference
(url "https://android.googlesource.com/platform/art")
(commit %latest-android-12)))
(file-name
(git-file-name
"android-platform-art-12-source"
%latest-android-12))
(sha256
(base32
"0q5l3x7qdyz6a11pgqbfsjf7frfnhxrz5nms5rcijfg9swahrh2b"))
(modules '((guix build utils)))
(snippet
`(begin
(substitute* "libdexfile/dex/dex_file.cc"
(("void EncodedArrayValueIterator::Next")
"std::ostream& operator<<(std::ostream& os, EncodedArrayValueIterator::ValueType code) {
os << \"ValueType[\" << static_cast<int>(code) << \"]\";
return os;
}
void EncodedArrayValueIterator::Next"))))))
(define-public android-platform-build-12-source
(origin
(method git-fetch)
......
......@@ -461,6 +461,50 @@
(description "")
(license #f)))
(define-public dexdump
(package
(name "dexdump")
(version %latest-android-12)
(source android-platform-art-12-source)
(build-system soong-build-system)
(arguments
'(#:module-type
"art_cc_binary"
#:module
"dexdump"
#:blueprint
"dexdump/Android.bp"))
(inputs
`(("libdexfile" ,libdexfile)
("libartbase" ,libartbase)
("libbase" ,libbase)
("libartpalette" ,libartpalette)
("liblog" ,liblog)
("libz" ,libz)
("libziparchive" ,libziparchive)))
(home-page "")
(synopsis "")
(description "")
(license #f)))
(define-public dmtracedump
(package
(name "dmtracedump")
(version %latest-android-12)
(source android-platform-art-12-source)
(build-system soong-build-system)
(arguments
'(#:module-type
"art_cc_binary"
#:module
"dmtracedump"
#:blueprint
"tools/dmtracedump/Android.bp"))
(home-page "")
(synopsis "")
(description "")
(license #f)))
(define-public etc1tool
(package
(name "etc1tool")
......@@ -926,6 +970,33 @@
(description "")
(license #f)))
(define-public libaidl-common
(package
(name "libaidl-common")
(version %latest-android-12)
(source
android-platform-system-tools-aidl-12-source)
(build-system soong-build-system)
(arguments
'(#:module-type
"cc_library_static"
#:module
"libaidl-common"
#:blueprint
"Android.bp"))
(inputs
`(("libgtest-prod-headers" ,libgtest-prod-headers)
("libbase" ,libbase)
("libcutils" ,libcutils)
("libgtest" ,libgtest)))
(native-inputs
`(("bison" ,bison-3.5)
("flex" ,flex)))
(home-page "")
(synopsis "")
(description "")
(license #f)))
(define-public libapp-processes-protos-full
(package
(name "libapp-processes-protos-full")
......@@ -948,28 +1019,46 @@
(description "")
(license #f)))
(define-public libaidl-common
(define-public libartbase
(package
(name "libaidl-common")
(name "libartbase")
(version %latest-android-12)
(source
android-platform-system-tools-aidl-12-source)
(source android-platform-art-12-source)
(build-system soong-build-system)
(arguments
'(#:module-type
"cc_library_static"
"art_cc_library"
#:module
"libaidl-common"
"libartbase"
#:blueprint
"Android.bp"))
"libartbase/Android.bp"))
(inputs
`(("libgtest-prod-headers" ,libgtest-prod-headers)
("libbase" ,libbase)
("libcutils" ,libcutils)
("libgtest" ,libgtest)))
(native-inputs
`(("bison" ,bison-3.5)
("flex" ,flex)))
`(("libziparchive" ,libziparchive)
("libz" ,libz)
("liblog" ,liblog)
("libartpalette" ,libartpalette)
("libbase" ,libbase)))
(home-page "")
(synopsis "")
(description "")
(license #f)))
(define-public libartpalette
(package
(name "libartpalette")
(version %latest-android-12)
(source android-platform-art-12-source)
(build-system soong-build-system)
(arguments
'(#:module-type
"art_cc_library"
#:module
"libartpalette"
#:blueprint
"libartpalette/Android.bp"))
(inputs
`(("libbase-headers" ,libbase-headers)
("jni-headers" ,jni-headers)))
(home-page "")
(synopsis "")
(description "")
......@@ -1217,6 +1306,53 @@
(description "")
(license #f)))
(define-public libdexfile
(package
(name "libdexfile")
(version %latest-android-12)
(source android-platform-art-12-source)
(build-system soong-build-system)
(arguments
'(#:module-type
"art_cc_library"
#:module
"libdexfile"
#:blueprint
"libdexfile/Android.bp"))
(inputs
`(("jni-headers" ,jni-headers)
("libdexfile-external-headers"
,libdexfile-external-headers)
("libziparchive" ,libziparchive)
("libz" ,libz)
("libartpalette" ,libartpalette)
("liblog" ,liblog)
("libbase" ,libbase)
("libartbase" ,libartbase)))
(home-page "")
(synopsis "")
(description "")
(license #f)))
(define-public libdexfile-external-headers
(package
(name "libdexfile-external-headers")
(version %latest-android-12)
(source android-platform-art-12-source)
(build-system soong-build-system)
(arguments
'(#:module-type
"cc_library_headers"
#:module
"libdexfile_external_headers"
#:blueprint
"libdexfile/Android.bp"))
(inputs `(("libbase-headers" ,libbase-headers)))
(home-page "")
(synopsis "")
(description "")
(license #f)))
(define-public libdiagnose-usb
(package
(name "libdiagnose-usb")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment