From ed62aa0af5e6801c398d59c3d67a42d61b060ada Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Tue, 11 Aug 2020 13:12:28 +0200 Subject: gnu: android-liblog: Install headers. * gnu/packages/android.scm (android-liblog): Install headers in a new phase. --- gnu/packages/android.scm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'gnu/packages/android.scm') diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm index 69366693a4..3c3a9cd594 100644 --- a/gnu/packages/android.scm +++ b/gnu/packages/android.scm @@ -201,7 +201,16 @@ (define-public android-liblog (lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) (symlink "liblog.so.0" (string-append out "/lib/liblog.so")) - #t)))))) + #t))) + (add-after 'install 'install-headers + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (copy-recursively + "../include/log" (string-append out "/include/log")) + ;; For android/log.h, the only header in the android directory. + (copy-recursively + "../include/android" (string-append out "/include/android"))) + #t))))) (home-page "https://developer.android.com/") (synopsis "Logging library from the Android platform.") (description "@code{liblog} represents an interface to the volatile Android -- cgit v1.2.3