Build system should provide:
Then ELEKTRA_PLUGIN_EXPORT, ELEKTRA_PLUGIN_FUNCTION, ELEKTRA_README would have one paramter less.
@petermax2 Do you maybe want to implement this?
Yes, you can assign me if the implementation is not time critical. At the moment I have not so much spare time.
Thank you for working on this!
The actual reason to do this, is that every plugin has something like CRYPTO_PLUGIN_FUNCTION available and that CRYPTO_PLUGIN_FUNCTION is not needed anymore.
Btw. ARG_COMPILE_DEFINITIONS cannot be modified (due to restore_variable), so simply add further definitions in cmake/Modules/LibAddPlugin.cmake line 155 (where COMPILE_DEFINITIONS are defined).
Btw. ARG_COMPILE_DEFINITIONS cannot be modified (due to restore_variable), so simply add further definitions in cmake/Modules/LibAddPlugin.cmake line 155 (where COMPILE_DEFINITIONS are defined).
It works for "regular" plugins (without compilation variant), now I'm looking into plugin variants.
Great that you have progress!
add_plugin provides the following compiler definitions for every plugin:The removal of unnecessary parameters of ELEKTRA_PLUGIN_FUNCTION and CRYPTO_PLUGIN_FUNCTION will be implemented in another PR.
So ELEKTRA_PLUGIN_EXPORT and ELEKTRA_README are the last left-overs?
So ELEKTRA_PLUGIN_EXPORT and ELEKTRA_README are the last left-overs?
Yes, should be very easy and straight-forward now that ELEKTRA_PLUGIN_FUNCTION works.
We finally did it!
Most helpful comment
Progress so far
2360 : The CMake module
add_pluginprovides the following compiler definitions for every plugin:The removal of unnecessary parameters of
ELEKTRA_PLUGIN_FUNCTIONandCRYPTO_PLUGIN_FUNCTIONwill be implemented in another PR.