mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-29 19:24:25 +03:00
Introduce hsdump development tool for producing information during compilation.
This tool is intended to assist Hyperscan developers with development and debugging by providing insights into the generated bytecode.
This commit is contained in:
19
tools/hsdump/CMakeLists.txt
Normal file
19
tools/hsdump/CMakeLists.txt
Normal file
@@ -0,0 +1,19 @@
|
||||
# dump support is required
|
||||
if (NOT DUMP_SUPPORT)
|
||||
return()
|
||||
endif ()
|
||||
|
||||
if (WIN32)
|
||||
return()
|
||||
endif ()
|
||||
|
||||
include_directories(${PROJECT_SOURCE_DIR})
|
||||
include_directories(${PROJECT_SOURCE_DIR}/util)
|
||||
|
||||
# only set these after all tests are done
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_C_FLAGS}")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXX_FLAGS}")
|
||||
|
||||
add_executable(hsdump main.cpp)
|
||||
target_link_libraries(hsdump hs expressionutil crosscompileutil)
|
||||
|
Reference in New Issue
Block a user