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

module library type for IE plugins, extensions #3656

Merged
merged 9 commits into from
Dec 23, 2020

Conversation

ilya-lavrenov
Copy link
Contributor

@ilya-lavrenov ilya-lavrenov commented Dec 17, 2020

Test with openvinotoolkit/testdata#4

It should not break compatibility since:

  1. Extensions are created using full library name and extensions.dylib is still supported.
  2. Only internal plugins are changes, users don't work with such names directly.
  3. Setupvars scripts sets both DYLD_LIBRARY_PATH and LD_LIBRARY_PATH to the same values.

@ilya-lavrenov ilya-lavrenov added category: build OpenVINO cmake script / infra platform: macOS OpenVINO on macOS labels Dec 17, 2020
@ilya-lavrenov ilya-lavrenov added this to the 2021.3 milestone Dec 17, 2020
@ilya-lavrenov ilya-lavrenov requested a review from alalek December 17, 2020 13:29
@ilya-lavrenov ilya-lavrenov marked this pull request as ready for review December 21, 2020 16:14
@ilya-lavrenov ilya-lavrenov requested a review from a team as a code owner December 21, 2020 16:14
@ilya-lavrenov ilya-lavrenov requested review from a team December 21, 2020 16:14
@ilya-lavrenov
Copy link
Contributor Author

Blocked by opencv

Copy link

@alalek alalek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

cmake/developer_package/plugins/plugins.cmake Show resolved Hide resolved
@ilya-lavrenov ilya-lavrenov requested a review from alalek December 23, 2020 09:06
@SDxKeeper SDxKeeper merged commit 036f574 into openvinotoolkit:master Dec 23, 2020
@ilya-lavrenov ilya-lavrenov deleted the try-module branch December 23, 2020 15:26
@@ -52,7 +52,7 @@ function(ie_add_plugin)
add_cpplint_target(${obj_lib}_cpplint FOR_TARGETS ${obj_lib})
endforeach()

add_library(${IE_PLUGIN_NAME} SHARED ${input_files})
add_library(${IE_PLUGIN_NAME} MODULE ${input_files})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MODULE is considered as library object on Windows. This means here and for other modules
LIBRARY DESTINATION shall be defined to IE_CPACK_RUNTIME_PATH on Windows to preserve current install location for these libs.

LIBRARY DESTINATION ${IE_CPACK_LIBRARY_PATH} COMPONENT ${install_component})

LIBRARY DESTINATION ${IE_CPACK_RUNTIME_PATH} COMPONENT ${install_component}

mryzhov pushed a commit to mryzhov/openvino that referenced this pull request Jan 14, 2021
* CMAKE: Added MODULE linker flags

* Fixed plugins.xml s

* Use module instead of shared library

* Fixes

* tab 2 spaces

* Renamed get_shared_library_name to ie_plugin_get_file_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: build OpenVINO cmake script / infra platform: macOS OpenVINO on macOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants