CONFIGURE: Remove detection submodules written to engines.mk

- Write detection_table inside engines subdirectory
This commit is contained in:
aryanrawlani28 2020-08-25 13:55:13 +05:30 committed by Eugene Sandulenko
parent 29ceb07959
commit e64446e4ce

19
configure vendored
View File

@ -6145,8 +6145,6 @@ for engine in $_sorted_engines; do
# main engine
cat >> engines/engines.mk << EOF
MODULES += engines/$engine/detection
ifdef ENABLE_$j
DEFINES += -DENABLE_$j=\$(ENABLE_$j)
MODULES += engines/$engine
@ -6168,31 +6166,22 @@ EOF
fi
done
if [ "${_detection_features_static}" == "false" ]; then
cat >> engines/engines.mk << EOF
# This build was configured to use detection as a dynamic plugin.
MODULES += detection
EOF
fi
# Name which is suffixed to each detection plugin
detectId="_DETECTION"
echo "Creating detection/detection_table.h"
cat > detection/detection_table.h << EOF
echo "Creating engines/detection_table.h"
cat > engines/detection_table.h << EOF
/* This file is automatically generated by configure */
/* DO NOT EDIT MANUALLY */
// This file is being included by "detection/detection.cpp" and "base/plugins.cpp"
// This file is being included by "base/plugins.cpp"
EOF
for engine in $_sorted_engines; do
if test "`get_engine_sub $engine`" = "no" ; then
j=`echo $engine | tr '[:lower:]' '[:upper:]'`
detectEngine="${j}${detectId}"
cat >> detection/detection_table.h << EOF
cat >> engines/detection_table.h << EOF
LINK_PLUGIN($detectEngine)
EOF
fi
done