;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2012 Stefan Handschuh ;;; Copyright © 2015 Kai-Chung Yan ;;; Copyright © 2016, 2020 Marius Bakke ;;; Copyright © 2017 Julien Lepiller ;;; Copyright © 2017 Hartmut Goebel ;;; Copyright © 2017, 2020, 2021, 2022 Maxim Cournoyer ;;; Copyright © 2018–2021 Tobias Geerinckx-Rice ;;; Copyright © 2018 Efraim Flashner ;;; Copyright © 2019, 2020, 2023 Andreas Enge ;;; Copyright © 2019 Ricardo Wurmus ;;; Copyright © 2020 Sergey Trofimov ;;; Copyright © 2021 Guillaume Le Vaillant ;;; Copyright © 2021 Petr Hodina ;;; Copyright © 2023 Camilo Q.S. (Distopico) ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see . (define-module (gnu packages android) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix gexp) #:use-module (guix git-download) #:use-module (guix build-system android-ndk) #:use-module (guix build-system cmake) #:use-module (guix build-system emacs) #:use-module (guix build-system gnu) #:use-module (guix build-system go) #:use-module (guix build-system python) #:use-module (guix build-system pyproject) #:use-module (guix build-system trivial) #:use-module ((guix licenses) #:prefix license:) #:use-module (gnu packages) #:use-module (gnu packages check) #:use-module (gnu packages compression) #:use-module (gnu packages docker) #:use-module (gnu packages gcc) #:use-module (gnu packages gnupg) #:use-module (gnu packages golang) #:use-module (gnu packages golang-xyz) #:use-module (gnu packages image) #:use-module (gnu packages java) #:use-module (gnu packages linux) #:use-module (gnu packages pcre) #:use-module (gnu packages python) #:use-module (gnu packages python-crypto) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) #:use-module (gnu packages readline) #:use-module (gnu packages selinux) #:use-module (gnu packages serialization) #:use-module (gnu packages sphinx) #:use-module (gnu packages ssh) #:use-module (gnu packages time) #:use-module (gnu packages tls) #:use-module (gnu packages version-control) #:use-module (gnu packages virtualization) #:use-module (gnu packages xdisorg) #:use-module (gnu packages xml)) (define-public android-make-stub (package (name "android-make-stub") (version "0.6.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/daym/android-make-stub") (commit (string-append "v" version)))) (file-name (string-append "android-make-stub-" version "-checkout")) (sha256 (base32 "0y1b2x96d37n6f1bp6dcx08bn08zac0cylmbfsx6mf2nahc02fhc")))) (build-system gnu-build-system) (arguments `(#:tests? #f ; None exist. #:phases (modify-phases %standard-phases (delete 'configure) (delete 'build) (replace 'install (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out"))) (invoke "make" (string-append "prefix=" out) "install") #t)))))) (home-page "https://github.com/daym/android-make-stub") (synopsis "Stubs for the @command{make} system of the Android platform") (description "@code{android-make-stub} provides stubs for the @command{make} system of the Android platform. This allows us to use their packages mostly unmodified in our Android NDK build system.") (license license:asl2.0))) (define-public android-googletest (package (inherit googletest) (name "android-googletest") (version "1.8.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/google/googletest") (commit (string-append "release-" version)))) (file-name (git-file-name name version)) (sha256 (base32 "0bjlljmbf8glnd9qjabx73w6pd7ibv43yiyngqvmvgxsabzr8399")))) (arguments `(#:configure-flags '("-DBUILD_SHARED_LIBS=ON") #:phases (modify-phases %standard-phases (add-after 'install 'install-host-libraries (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (lib (string-append out "/lib"))) (symlink "libgtest.so" (string-append lib "/libgtest_host.so")) (symlink "libgmock.so" (string-append lib "/libgmock_host.so")) #t)))))))) ;; The Makefiles that we add are largely based on the Debian ;; packages. They are licensed under GPL-2 and have copyright: ;; 2012, Stefan Handschuh ;; 2015, Kai-Chung Yan ;; Big thanks to them for laying the groundwork. ;; The version tag is consistent between all repositories. (define-public (android-platform-version) "7.1.2_r36") (define-public (android-platform-system-core version) (origin (method git-fetch) (uri (git-reference