Skip to content

Commit

Permalink
Initial SARIF support
Browse files Browse the repository at this point in the history
  • Loading branch information
frabert committed Jul 24, 2024
1 parent 31eaa14 commit 34853da
Show file tree
Hide file tree
Showing 7 changed files with 2,789 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ endif()
add_subdirectory(core)
add_subdirectory(coro)
add_subdirectory(graph)
add_subdirectory(sarif)

option(GAP_ENABLE_MLIR "Enable MLIR support" OFF)

Expand Down Expand Up @@ -167,6 +168,7 @@ if (GAP_INSTALL)
install_gap_target(gap-settings core)
install_gap_target(gap-coro coro)
install_gap_target(gap-graph graph)
install_gap_target(gap-sarif sarif)

if (${GAP_ENABLE_MLIR})
install_gap_target(gap-mlir mlir)
Expand Down
10 changes: 10 additions & 0 deletions sarif/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Copyright (c) 2024-present, Trail of Bits, Inc. All rights reserved.

find_package(nlohmann_json CONFIG REQUIRED)

add_headers(sarif GAP_SARIF_HEADERS
sarif.hpp
)

add_gap_library(gap-sarif "${GAP_SARIF_HEADERS}")
target_link_libraries(gap-sarif INTERFACE nlohmann_json::nlohmann_json)
Loading

0 comments on commit 34853da

Please sign in to comment.