mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: android-libziparchive: Enable tests.
* gnu/packages/android.scm (android-libziparchive)[arguments]: Enable tests. <#:phases>[setenv]: New phase. [native-inputs]: Add android-libbase, android-libutils, android-liblog.
This commit is contained in:
parent
52bdbaf2d3
commit
e55e6d30f5
1 changed files with 9 additions and 2 deletions
|
@ -270,13 +270,16 @@ (define-public android-libziparchive
|
||||||
(source (android-platform-system-core version))
|
(source (android-platform-system-core version))
|
||||||
(build-system android-ndk-build-system)
|
(build-system android-ndk-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f ; TODO.
|
`(#:make-flags '("CFLAGS=-Wno-error"
|
||||||
#:make-flags '("CFLAGS=-Wno-error"
|
|
||||||
"CXXFLAGS=-fpermissive -Wno-error -std=gnu++11")
|
"CXXFLAGS=-fpermissive -Wno-error -std=gnu++11")
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'enter-source
|
(add-after 'unpack 'enter-source
|
||||||
(lambda _ (chdir "libziparchive") #t))
|
(lambda _ (chdir "libziparchive") #t))
|
||||||
|
(add-before 'check 'setenv
|
||||||
|
(lambda _
|
||||||
|
(setenv "ziparchive_tests_host_PARAMS" "--test_data_dir=testdata")
|
||||||
|
#t))
|
||||||
(add-after 'install 'install-headers
|
(add-after 'install 'install-headers
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(let ((out (assoc-ref outputs "out")))
|
||||||
|
@ -285,6 +288,10 @@ (define-public android-libziparchive
|
||||||
#t))))))
|
#t))))))
|
||||||
(inputs
|
(inputs
|
||||||
`(("zlib" ,zlib)))
|
`(("zlib" ,zlib)))
|
||||||
|
(native-inputs
|
||||||
|
`(("android-libbase" ,android-libbase)
|
||||||
|
("android-libutils" ,android-libutils)
|
||||||
|
("android-liblog" ,android-liblog)))
|
||||||
(home-page "https://developer.android.com/")
|
(home-page "https://developer.android.com/")
|
||||||
(synopsis "Android platform ZIP library")
|
(synopsis "Android platform ZIP library")
|
||||||
(description "@code{android-libziparchive} is a library in common use by the
|
(description "@code{android-libziparchive} is a library in common use by the
|
||||||
|
|
Loading…
Reference in a new issue