mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-09-30 03:34:25 +03:00
chimera: hybrid of Hyperscan and PCRE
This commit is contained in:
@@ -31,6 +31,8 @@ SET(hsbench_SOURCES
|
||||
common.h
|
||||
data_corpus.cpp
|
||||
data_corpus.h
|
||||
engine.cpp
|
||||
engine.h
|
||||
engine_hyperscan.cpp
|
||||
engine_hyperscan.h
|
||||
heapstats.cpp
|
||||
@@ -45,6 +47,23 @@ SET(hsbench_SOURCES
|
||||
timer.h
|
||||
)
|
||||
|
||||
if (BUILD_CHIMERA)
|
||||
add_definitions(-DHS_HYBRID)
|
||||
SET(hsbench_SOURCES
|
||||
${hsbench_SOURCES}
|
||||
engine_chimera.cpp
|
||||
engine_chimera.h
|
||||
engine_pcre.cpp
|
||||
engine_pcre.h
|
||||
)
|
||||
endif()
|
||||
|
||||
add_executable(hsbench ${hsbench_SOURCES})
|
||||
target_link_libraries(hsbench hs databaseutil expressionutil ${SQLITE3_LDFLAGS}
|
||||
${CMAKE_THREAD_LIBS_INIT})
|
||||
if (BUILD_CHIMERA)
|
||||
include_directories(${PCRE_INCLUDE_DIRS})
|
||||
target_link_libraries(hsbench hs chimera ${PCRE_LDFLAGS} databaseutil
|
||||
expressionutil ${SQLITE3_LDFLAGS} ${CMAKE_THREAD_LIBS_INIT})
|
||||
else()
|
||||
target_link_libraries(hsbench hs databaseutil expressionutil
|
||||
${SQLITE3_LDFLAGS} ${CMAKE_THREAD_LIBS_INIT})
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user