gnu: Add android-googletest.
* gnu/packages/android.scm (android-googletest): New variable. * guix/build-system/android-ndk.scm (android-ndk-build): Use it.
This commit is contained in:
parent
9e8f0ff2a9
commit
c6ee92c41b
|
@ -77,6 +77,23 @@
|
||||||
use their packages mostly unmodified in our Android NDK build system.")
|
use their packages mostly unmodified in our Android NDK build system.")
|
||||||
(license license:asl2.0)))
|
(license license:asl2.0)))
|
||||||
|
|
||||||
|
(define-public android-googletest
|
||||||
|
(package (inherit googletest)
|
||||||
|
(name "android-googletest")
|
||||||
|
(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
|
;; The Makefiles that we add are largely based on the Debian
|
||||||
;; packages. They are licensed under GPL-2 and have copyright:
|
;; packages. They are licensed under GPL-2 and have copyright:
|
||||||
;; 2012, Stefan Handschuh <handschuh.stefan@googlemail.com>
|
;; 2012, Stefan Handschuh <handschuh.stefan@googlemail.com>
|
||||||
|
|
|
@ -113,7 +113,7 @@
|
||||||
;; Keep the standard inputs of 'gnu-build-system'
|
;; Keep the standard inputs of 'gnu-build-system'
|
||||||
,@(standard-packages)))
|
,@(standard-packages)))
|
||||||
(build-inputs `(("android-make-stub" ,(module-ref (resolve-interface '(gnu packages android)) 'android-make-stub))
|
(build-inputs `(("android-make-stub" ,(module-ref (resolve-interface '(gnu packages android)) 'android-make-stub))
|
||||||
("googletest" ,(module-ref (resolve-interface '(gnu packages check)) 'googletest))
|
("android-googletest" ,(module-ref (resolve-interface '(gnu packages android)) 'android-googletest))
|
||||||
,@native-inputs))
|
,@native-inputs))
|
||||||
(outputs outputs)
|
(outputs outputs)
|
||||||
(build android-ndk-build)
|
(build android-ndk-build)
|
||||||
|
|
Loading…
Reference in New Issue