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

Rework of the Python Filter (Depends on PR Support UDP TCP #224) #232

Draft
wants to merge 17 commits into
base: support_tcp_udp
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 12 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
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ if (NOT DEFINED FILTER)
CONTENT_INSPECTION
BUFFER
YARA
PYTHON
TEST
)
else (NOT DEFINED FILTER)
Expand Down Expand Up @@ -185,3 +186,7 @@ endif()
if("VAML" IN_LIST FILTERS)
include(fvaml)
endif()

if("PYTHON" IN_LIST FILTERS)
include(fpython)
endif()
33 changes: 33 additions & 0 deletions cmake/fpython.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
set(PYTHON_NAME darwin_python)

#######################
# FILTER DEPENDENCIES #
#######################

include_directories(SYSTEM /usr/include/python3.8)
link_directories(/usr/lib/python3.8/config-3.8-x86)

###################
# EXECUTABLE #
###################


add_executable(
${PYTHON_NAME}
${DARWIN_SOURCES}
samples/fpython/PythonTask.cpp samples/fpython/PythonTask.hpp
samples/fpython/Generator.cpp samples/fpython/Generator.hpp
)

target_link_libraries(
${PYTHON_NAME}
${DARWIN_LIBRARIES}
python3.8
crypt
pthread
dl
util
m
)
ThibaudCartegnie marked this conversation as resolved.
Show resolved Hide resolved

target_include_directories(${PYTHON_NAME} PUBLIC samples/fpython/)
Loading