Fixes of plugins.xml generation (#9922)

- Added registration (and unregistration) of ov_auto_batch_plugin. Otherwise 'BATCH' plugin will always produce new XML line without removing old one
- Added unregistration of legacy plugin names (<= 2021.4 release). Otherwise old lines like "libHeteroPlugin.so" will not be removed from plugins.xml file
This commit is contained in:
Mikhail Nosov
2022-01-26 16:00:04 +03:00
committed by GitHub
parent 17c394c8fe
commit 2ea52bae6e
2 changed files with 3 additions and 1 deletions

View File

@@ -187,6 +187,8 @@ macro(ie_register_plugins_dynamic)
# Unregister <device_name>.xml files for plugins from current build tree
set(plugins_to_remove ${IE_REGISTER_POSSIBLE_PLUGINS})
# Remove legacy plugin names from plugins.xml in case of incremental build
set(plugins_to_remove ${plugins_to_remove} AutoPlugin MultiDevicePlugin HeteroPlugin clDNNPlugin GNAPlugin MKLDNNPlugin myriadPlugin)
set(config_output_file "$<TARGET_FILE_DIR:${IE_REGISTER_MAIN_TARGET}>/plugins.xml")
foreach(plugin IN LISTS plugins_to_remove)