diff --git a/Formula/cppdap.rb b/Formula/cppdap.rb new file mode 100644 index 00000000..5253f1b8 --- /dev/null +++ b/Formula/cppdap.rb @@ -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