Skip to content

Commit

Permalink
cppdap
Browse files Browse the repository at this point in the history
Closes #626.

Signed-off-by: paperchalice <[email protected]>
  • Loading branch information
paperchalice committed Dec 12, 2024
1 parent 2c69b6c commit 134a8b7
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Formula/cppdap.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
class Cppdap < Formula
desc "C++ library for the Debug Adapter Protocol"
homepage "https://github.com/google/cppdap"
url "https://github.com/google/cppdap/archive/refs/tags/dap-1.58.0-a.tar.gz"
sha256 "5d35ca5db78570b6bef698e3365f79bd82a4f78e8393546387f78d7bdb2a2a08"
url "https://github.com/google/cppdap/archive/c69444ed76f7468b232ac4f989cb8f2bdc100185.tar.gz"
version "1.65.0"
sha256 "f73953fe9c9557b6ce893a3ee90bbde5919c96e4f3603d67cdf8ed49da714529"
license "Apache-2.0"

bottle do
root_url "https://github.com/paperchalice/homebrew-private/releases/download/cppdap-1.58.0"
Expand All @@ -16,12 +18,13 @@ def install
cmake_args = std_cmake_args + %w[
-D CPPDAP_USE_EXTERNAL_NLOHMANN_JSON_PACKAGE=ON
-D BUILD_SHARED_LIBS=ON
-S .
-B build
]
inreplace "CMakeLists.txt", "STATIC", ""

system "cmake", *cmake_args
system "make"
system "make", "install"
system "cmake", "--build", "build"
system "cmake", "--install", "build"
end

test do
Expand Down

0 comments on commit 134a8b7

Please sign in to comment.