guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: gnu: android-liblog: Install headers.


From: guix-commits
Subject: branch master updated: gnu: android-liblog: Install headers.
Date: Tue, 11 Aug 2020 07:17:09 -0400

This is an automated email from the git hooks/post-receive script.

roptat pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new ed62aa0  gnu: android-liblog: Install headers.
ed62aa0 is described below

commit ed62aa0af5e6801c398d59c3d67a42d61b060ada
Author: Julien Lepiller <julien@lepiller.eu>
AuthorDate: Tue Aug 11 13:12:28 2020 +0200

    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(-)

diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm
index 6936669..3c3a9cd 100644
--- a/gnu/packages/android.scm
+++ b/gnu/packages/android.scm
@@ -201,7 +201,16 @@ use their packages mostly unmodified in our Android NDK 
build system.")
            (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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]