gnu: protobuf: Fix cross-compilation.
* gnu/packages/protobuf.scm (protobuf): Fix cross-compilation. [native-inputs]: When cross-compiling, add this-package. [inputs]: Add googletest. Change-Id: Id7d3a8be9d4211249c0adc3a99a7a07206f9c495 Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>master
parent
7ae33c70f0
commit
a077907226
|
@ -8,6 +8,7 @@
|
||||||
;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
|
;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
|
||||||
;;; Copyright © 2020 Brett Gilio <brettg@gnu.org>
|
;;; Copyright © 2020 Brett Gilio <brettg@gnu.org>
|
||||||
;;; Copyright © 2021 Felix Gruber <felgru@posteo.net>
|
;;; Copyright © 2021 Felix Gruber <felgru@posteo.net>
|
||||||
|
;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -156,8 +157,11 @@ data in motion, or as a file format for data at rest.")
|
||||||
(install-file file slib)
|
(install-file file slib)
|
||||||
(delete-file file))
|
(delete-file file))
|
||||||
(find-files lib "\\.a$"))))))))
|
(find-files lib "\\.a$"))))))))
|
||||||
(native-inputs (list googletest))
|
(native-inputs (append (if (%current-target-system)
|
||||||
(inputs (list zlib))
|
(list this-package)
|
||||||
|
'())
|
||||||
|
(list googletest)))
|
||||||
|
(inputs (list zlib googletest))
|
||||||
(home-page "https://github.com/protocolbuffers/protobuf")
|
(home-page "https://github.com/protocolbuffers/protobuf")
|
||||||
(synopsis "Data encoding for remote procedure calls (RPCs)")
|
(synopsis "Data encoding for remote procedure calls (RPCs)")
|
||||||
(description
|
(description
|
||||||
|
|
Reference in New Issue