Skip to content

Commit

Permalink
chore: remove jq dependency
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Scolaro <[email protected]>
  • Loading branch information
therealbobo authored and poiana committed Nov 22, 2023
1 parent ec613ef commit 86b72e5
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 105 deletions.
87 changes: 0 additions & 87 deletions cmake/modules/jq.cmake

This file was deleted.

3 changes: 0 additions & 3 deletions cmake/modules/libsinsp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ if (NOT EMSCRIPTEN)
endif()
if(NOT WIN32 AND NOT APPLE)
include(b64)
include(jq)
endif()
if(NOT WIN32 AND NOT APPLE AND NOT MINIMAL_BUILD AND NOT EMSCRIPTEN)
include(cares)
Expand Down Expand Up @@ -72,8 +71,6 @@ endif()
if(NOT WIN32 AND NOT APPLE)
get_filename_component(B64_ABSOLUTE_INCLUDE_DIR ${B64_INCLUDE} ABSOLUTE)
list(APPEND LIBSINSP_INCLUDE_DIRS ${B64_ABSOLUTE_INCLUDE_DIR})
get_filename_component(JQ_ABSOLUTE_INCLUDE_DIR ${JQ_INCLUDE} ABSOLUTE)
list(APPEND LIBSINSP_INCLUDE_DIRS ${JQ_ABSOLUTE_INCLUDE_DIR})
endif()

if(NOT WIN32 AND NOT APPLE AND NOT MINIMAL_BUILD AND NOT EMSCRIPTEN)
Expand Down
1 change: 0 additions & 1 deletion test/vm/containers/ubuntu2004.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ RUN apt --fix-broken -y install && apt-get install -y --no-install-recommends \
libc-ares-dev \
libprotobuf-dev \
protobuf-compiler \
libjq-dev \
libgrpc++-dev \
protobuf-compiler-grpc \
libcurl4-openssl-dev \
Expand Down
1 change: 0 additions & 1 deletion test/vm/containers/ubuntu2204.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ RUN apt --fix-broken -y install && apt-get install -y --no-install-recommends \
libc-ares-dev \
libprotobuf-dev \
protobuf-compiler \
libjq-dev \
libgrpc++-dev \
protobuf-compiler-grpc \
libcurl4-openssl-dev \
Expand Down
1 change: 0 additions & 1 deletion test/vm/containers/ubuntu2310.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ RUN apt --fix-broken -y install && apt-get install -y \
libc-ares-dev \
libprotobuf-dev \
protobuf-compiler \
libjq-dev \
libgrpc++-dev \
protobuf-compiler-grpc \
libcurl4-openssl-dev \
Expand Down
16 changes: 4 additions & 12 deletions userspace/libsinsp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ if(NOT WIN32 AND NOT APPLE )
include(protobuf)
include(openssl)
endif() # NOT MINIMAL_BUILD
include(jq)
include_directories("${CMAKE_CURRENT_BINARY_DIR}")
endif()

Expand Down Expand Up @@ -268,32 +267,25 @@ if(NOT WIN32)
"${GPR_LIB}"
"${PROTOBUF_LIB}"
"${CARES_LIB}"
"${JQ_LIB}")
)
list(APPEND SINSP_PKGCONFIG_LIBRARIES
"${GRPC_LIBRARIES}"
"${GRPCPP_LIB}"
"${GRPC_LIB}"
"${GPR_LIB}"
"${PROTOBUF_LIB}"
"${CARES_LIB}"
"${JQ_LIB}")
)

if(NOT MUSL_OPTIMIZED_BUILD)
target_link_libraries(sinsp INTERFACE rt anl)
list(APPEND SINSP_PKGCONFIG_LIBRARIES rt anl)
endif()

else()
target_link_libraries(sinsp INTERFACE "${JQ_LIB}" rt)
list(APPEND SINSP_PKGCONFIG_LIBRARIES "${JQ_LIB}" rt)
target_link_libraries(sinsp INTERFACE rt)
list(APPEND SINSP_PKGCONFIG_LIBRARIES rt)
endif() # NOT MINIMAL_BUILD
# when JQ is compiled statically, it will
# also compile a static object for oniguruma we need to link
if(ONIGURUMA_LIB)
target_link_libraries(sinsp INTERFACE "${ONIGURUMA_LIB}")
list(APPEND SINSP_PKGCONFIG_LIBRARIES "${ONIGURUMA_LIB}")
add_dependencies(sinsp jq)
endif()
endif() # NOT APPLE

target_link_libraries(sinsp INTERFACE "${OPENSSL_LIBRARIES}")
Expand Down

0 comments on commit 86b72e5

Please sign in to comment.