summaryrefslogtreecommitdiff
path: root/gnu/packages/debug.scm
diff options
context:
space:
mode:
authorDaniel Ziltener <dziltener@lyrion.ch>2024-04-16 00:26:36 +0800
committerZheng Junjie <zhengjunjie@iscas.ac.cn>2024-04-23 16:45:34 +0800
commit2d19e505f6f9f82aebc9ba8c74ba223818acd9bc (patch)
tree0166a0e8fdcb8024e0ed36eba4620ccd21020f71 /gnu/packages/debug.scm
parent837016fe33e11c6252ec24c423d1b6ae0cd7efd3 (diff)
gnu: Add cppdap.
* gnu/packages/debug.scm (cppdap): New variable. * gnu/packages/patches/cppdap-add-CPPDAP_USE_EXTERNAL_GTEST_PACKAGE.patch: New patch. * gnu/local.mk (dist_patch_DATA): Register it. Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn> Change-Id: I328ca0c01787defcc9d18f4ccd7762c86412cca7 Signed-off-by: Zheng Junjie <zhengjunjie@iscas.ac.cn>
Diffstat (limited to 'gnu/packages/debug.scm')
-rw-r--r--gnu/packages/debug.scm51
1 files changed, 51 insertions, 0 deletions
diff --git a/gnu/packages/debug.scm b/gnu/packages/debug.scm
index 6d4567acc40..612533b03d1 100644
--- a/gnu/packages/debug.scm
+++ b/gnu/packages/debug.scm
@@ -46,6 +46,7 @@
46 #:use-module (gnu packages bash) 46 #:use-module (gnu packages bash)
47 #:use-module (gnu packages bison) 47 #:use-module (gnu packages bison)
48 #:use-module (gnu packages c) 48 #:use-module (gnu packages c)
49 #:use-module (gnu packages cpp)
49 #:use-module (gnu packages check) 50 #:use-module (gnu packages check)
50 #:use-module (gnu packages code) 51 #:use-module (gnu packages code)
51 #:use-module (gnu packages compression) 52 #:use-module (gnu packages compression)
@@ -185,6 +186,56 @@ intended for use by people who discover and report bugs in compilers and other
185tools that process C/C++ code.") 186tools that process C/C++ code.")
186 (license license:ncsa))) 187 (license license:ncsa)))
187 188
189(define-public cppdap
190 (package
191 (name "cppdap")
192 (version "1.58.0-a")
193 (source
194 (origin
195 (method git-fetch)
196 (uri
197 (git-reference
198 (url "https://github.com/google/cppdap")
199 (commit (string-append "dap-" version))))
200 (modules '((guix build utils)))
201 (snippet
202 '(delete-file-recursively "third_party"))
203 (patches (search-patches
204 "cppdap-add-CPPDAP_USE_EXTERNAL_GTEST_PACKAGE.patch"))
205 (file-name (git-file-name name version))
206 (sha256
207 (base32
208 "0fq2w35fw1lb5wya1nny45pk3a13b689k48calk1cmqmqpbcjn2b"))))
209 (build-system cmake-build-system)
210 (arguments
211 (list
212 #:configure-flags
213 #~(list
214 "-DCPPDAP_BUILD_TESTS=ON"
215 "-DCPPDAP_USE_EXTERNAL_GTEST_PACKAGE=ON"
216 ;; Only one of the following three can be enabled at the same time
217 ;; "-DCPPDAP_USE_EXTERNAL_RAPIDJSON_PACKAGE=ON"
218 ;; "-DCPPDAP_USE_EXTERNAL_JSONCPP_PACKAGE=ON"
219 "-DCPPDAP_USE_EXTERNAL_NLOHMANN_JSON_PACKAGE=ON")))
220 (native-inputs
221 (list googletest))
222 ;; see lib/cmake/cppdap/cppdapConfig.cmake
223 ;; cmake file require propagate this.
224 (propagated-inputs
225 (list
226 ;; Only one of the following three can be enabled at the same time
227 ;; rapidjson
228 ;; jsoncpp
229 nlohmann-json))
230 (home-page "https://github.com/google/cppdap")
231 (synopsis "C++ library for the Debug Adapter Protocol")
232 (description
233 "cppdap is a C++11 library (\"SDK\") implementation of the Debug Adapter
234Protocol, providing an API for implementing a DAP client or server. cppdap
235provides C++ type-safe structures for the full DAP specification, and provides a
236simple way to add custom protocol messages.")
237 (license license:expat)))
238
188(define-public c-vise 239(define-public c-vise
189 (package 240 (package
190 (name "c-vise") 241 (name "c-vise")