mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-27 03:10:37 +00:00
CONFIGURE: Remove detection submodules written to engines.mk
- Write detection_table inside engines subdirectory
This commit is contained in:
parent
29ceb07959
commit
e64446e4ce
19
configure
vendored
19
configure
vendored
@ -6145,8 +6145,6 @@ for engine in $_sorted_engines; do
|
|||||||
# main engine
|
# main engine
|
||||||
cat >> engines/engines.mk << EOF
|
cat >> engines/engines.mk << EOF
|
||||||
|
|
||||||
MODULES += engines/$engine/detection
|
|
||||||
|
|
||||||
ifdef ENABLE_$j
|
ifdef ENABLE_$j
|
||||||
DEFINES += -DENABLE_$j=\$(ENABLE_$j)
|
DEFINES += -DENABLE_$j=\$(ENABLE_$j)
|
||||||
MODULES += engines/$engine
|
MODULES += engines/$engine
|
||||||
@ -6168,31 +6166,22 @@ EOF
|
|||||||
fi
|
fi
|
||||||
done
|
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
|
# Name which is suffixed to each detection plugin
|
||||||
detectId="_DETECTION"
|
detectId="_DETECTION"
|
||||||
|
|
||||||
echo "Creating detection/detection_table.h"
|
echo "Creating engines/detection_table.h"
|
||||||
cat > detection/detection_table.h << EOF
|
cat > engines/detection_table.h << EOF
|
||||||
/* This file is automatically generated by configure */
|
/* This file is automatically generated by configure */
|
||||||
/* DO NOT EDIT MANUALLY */
|
/* 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
|
EOF
|
||||||
|
|
||||||
for engine in $_sorted_engines; do
|
for engine in $_sorted_engines; do
|
||||||
if test "`get_engine_sub $engine`" = "no" ; then
|
if test "`get_engine_sub $engine`" = "no" ; then
|
||||||
j=`echo $engine | tr '[:lower:]' '[:upper:]'`
|
j=`echo $engine | tr '[:lower:]' '[:upper:]'`
|
||||||
detectEngine="${j}${detectId}"
|
detectEngine="${j}${detectId}"
|
||||||
cat >> detection/detection_table.h << EOF
|
cat >> engines/detection_table.h << EOF
|
||||||
LINK_PLUGIN($detectEngine)
|
LINK_PLUGIN($detectEngine)
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user