-
Notifications
You must be signed in to change notification settings - Fork 145
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
plugins/spectrum_analyzer: Add cmake option to build it or not #352
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering, if we're not building and installing the plugin anymore how can the ifdef in identify() do anything?
The original problem I see is that there is no clean uninstall when a new OSC is build and installed.
So all residual plugin SOs will get loaded. the only way to prevent this is to clean the plugin folder. Or to update the plugin with this identify hack.
Makes sense. Initially I kept building the plugin but then I modified. I will make the changes. |
And by default exclude it from build. Signed-off-by: Dan Nechita <[email protected]>
843a56b
to
4fdba24
Compare
add_definitions(-DPLUGIN_SPECTRUM_ANALYZER) | ||
endif() | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this option should be in the plugins specific CMakeLists file. Moreover, I would just not compile the library at all if the option is OFF. As it is the default value, I would remove the plugin from the list of plugins and just add it if (WITH_PLUGIN_SPECTRUM_ANALYZER)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did that initially but as Michael said we need to build the plugin. As for the option, I prefer all options to be at top level cmake.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cannot say I agree with that but fair enough...
IMO, I would just vote for the first option "clean the plugin folder"... Maybe adding an uninstall target? |
And by default exclude it from build.
Signed-off-by: Dan Nechita [email protected]