Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial SARIF support #49

Merged
merged 2 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
14 changes: 14 additions & 0 deletions sarif/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# 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_sources(sarif GAP_SARIF_SOURCES
sarif.cpp
)

add_gap_static_library(gap-sarif "${GAP_SARIF_HEADERS}" "${GAP_SARIF_SOURCES}")
target_link_libraries(gap-sarif PUBLIC nlohmann_json::nlohmann_json)
Loading
Loading