Skip to content

Commit

Permalink
dap
Browse files Browse the repository at this point in the history
  • Loading branch information
paperchalice committed Mar 24, 2024
1 parent 4ef44ad commit 820ac8a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions Formula/cppdap.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
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"

depends_on "cmake" => :build
depends_on "nlohmann-json" => :build

def install
cmake_args = std_cmake_args + %w[
-D CPPDAP_USE_EXTERNAL_NLOHMANN_JSON_PACKAGE=ON
-D BUILD_SHARED_LIBS=ON
]

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

test do
system "echo"
end
end

0 comments on commit 820ac8a

Please sign in to comment.