diff options
author | Danny Milosavljevic <dannym@scratchpost.org> | 2018-05-09 20:11:30 +0200 |
---|---|---|
committer | Danny Milosavljevic <dannym@scratchpost.org> | 2018-05-09 22:32:36 +0200 |
commit | be906ad16e9bf5ab322cc2a79cf934d37a06dcc7 (patch) | |
tree | ba0f4c5931995dc18daad26c94866071d313990b /gnu/packages/android.scm | |
parent | 055e6fb3eb12b863ce6176f682fee62a36387b24 (diff) | |
download | patches-be906ad16e9bf5ab322cc2a79cf934d37a06dcc7.tar patches-be906ad16e9bf5ab322cc2a79cf934d37a06dcc7.tar.gz |
gnu: Add android-libutils.
* gnu/packages/patches/libutils-add-includes.patch: New file.
* gnu/packages/patches/libutils-remove-damaging-includes.patch: New file.
* gnu/packages/android.scm (android-platform-system-core): Use them.
(android-libutils): New variable.
* gnu/local.mk: Add them.
Diffstat (limited to 'gnu/packages/android.scm')
-rw-r--r-- | gnu/packages/android.scm | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gnu/packages/android.scm b/gnu/packages/android.scm index 21b0c7c64c..34525f1eca 100644 --- a/gnu/packages/android.scm +++ b/gnu/packages/android.scm @@ -102,6 +102,8 @@ use their packages mostly unmodified in our Android NDK build system.") (patches (search-patches "libbase-use-own-logging.patch" "libbase-fix-includes.patch" + "libutils-remove-damaging-includes.patch" + "libutils-add-includes.patch" "adb-add-libraries.patch" "libziparchive-add-includes.patch")))) @@ -536,6 +538,33 @@ Android core.") Android core.") (license license:asl2.0))) +(define-public android-libutils + (package + (name "android-libutils") + (version (android-platform-version)) + (source (android-platform-system-core version)) + (build-system android-ndk-build-system) + (arguments + `(#:tests? #f ; TODO + #:make-flags '("CXXFLAGS=-std=gnu++11 -Wno-error") + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'enter-source + (lambda _ (chdir "libutils") #t)) + + (add-after 'install 'install-headers + (lambda* (#:key inputs outputs #:allow-other-keys) + (copy-recursively "../include/utils" (string-append (assoc-ref outputs "out") "/include/utils"))))))) + (inputs + `(("android-safe-iop" ,android-safe-iop) + ("libcutils" ,libcutils))) + (native-inputs + `(("android-bionic-uapi" ,android-bionic-uapi))) + (home-page "https://developer.android.com/") + (synopsis "Android utility library") + (description "@code{android-libutils} provides utilities for Android NDK developers.") + (license license:asl2.0))) + (define-public android-udev-rules (package (name "android-udev-rules") |