diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm index 7aad7191356644e41b16d01aadc05620ff1228d3..82f6f5360ea46fd5ae5a4914d8a5989fc605a621 100644 --- a/gnu/packages/android.scm +++ b/gnu/packages/android.scm @@ -270,13 +270,16 @@ (define-public android-libziparchive (source (android-platform-system-core version)) (build-system android-ndk-build-system) (arguments - `(#:tests? #f ; TODO. - #:make-flags '("CFLAGS=-Wno-error" + `(#:make-flags '("CFLAGS=-Wno-error" "CXXFLAGS=-fpermissive -Wno-error -std=gnu++11") #:phases (modify-phases %standard-phases (add-after 'unpack 'enter-source (lambda _ (chdir "libziparchive") #t)) + (add-before 'check 'setenv + (lambda _ + (setenv "ziparchive_tests_host_PARAMS" "--test_data_dir=testdata") + #t)) (add-after 'install 'install-headers (lambda* (#:key inputs outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) @@ -285,6 +288,10 @@ (define-public android-libziparchive #t)))))) (inputs `(("zlib" ,zlib))) + (native-inputs + `(("android-libbase" ,android-libbase) + ("android-libutils" ,android-libutils) + ("android-liblog" ,android-liblog))) (home-page "https://developer.android.com/") (synopsis "Android platform ZIP library") (description "@code{android-libziparchive} is a library in common use by the