Hi Matt,
having multiple apps with a different plugin loadout is possible. You can set
it in your applications CMakeLists.txt [1] which plugins to include. The
template does not have an example of this, but we use it in mitkDiffusion[2] so
I will just copy and paste the relevant part here:
----
set(_plugins
org.commontk.configadmin
org.commontk.eventadmin
org.blueberry.osgi
org.blueberry.compat
org.blueberry.core.runtime
org.blueberry.core.expressions
org.blueberry.solstice.common
org.blueberry.core.commands
org.blueberry.ui
org.blueberry.ui.qt
org.blueberry.ui.qt.log
org.blueberry.ui.qt.help
org.mitk.core.services
org.mitk.gui.common
org.mitk.planarfigure
org.mitk.core.ext
org.mitk.diffusionimaging
org.mitk.gui.qt.application
org.mitk.gui.qt.ext
org.mitk.gui.qt.diffusionimagingapp
org.mitk.gui.qt.common
org.mitk.gui.qt.stdmultiwidgeteditor
org.mitk.gui.qt.common.legacy
org.mitk.gui.qt.datamanager
org.mitk.gui.qt.measurementtoolbox
org.mitk.gui.qt.segmentation
org.mitk.gui.qt.volumevisualization
org.mitk.gui.qt.diffusionimaging
org.mitk.gui.qt.imagenavigator
org.mitk.gui.qt.moviemaker
org.mitk.gui.qt.basicimageprocessing
org.mitk.gui.qt.registration
)
# Plug-ins listed below will not be
# - added as a build-time dependency to the executable
# - listed in the provisioning file for the executable
# - installed if they are external plug-ins
set(_exclude_plugins
org.blueberry.test
org.blueberry.uitest
org.mitk.gui.qt.coreapplication
org.mitk.gui.qt.extapplication
)
FunctionCreateBlueBerryApplication(
NAME ${DIFFUSIONAPP_NAME}
DESCRIPTION "MITK Diffusion"
PLUGINS ${_plugins}
EXCLUDE_PLUGINS ${_exclude_plugins}
LINK_LIBRARIES ${ALL_LIBRARIES}
${_app_options}
)
-----
While we set the _exclude_plugins variable here as well, just setting _plugins
is enough. Keep in mind to include all the plugins your application needs, not
only the ones that show up as GUI. We also set up our own provisioning file, so
you might want to take a look at that as well.
Regards,
Caspar
[1]
https://github.com/MITK/MITK-ProjectTemplate/blob/master/Apps/AwesomeApp/CMakeLists.txt
[2] https://github.com/MITK/MITK/tree/master/Applications/mitkDiffusion
-----Ursprüngliche Nachricht-----
Von: Clarkson, Matt [mailto:[email protected]]
Gesendet: Montag, 24. September 2012 21:14
An: mitk-users
Betreff: [mitk-users] Multiple Apps, with different Plugins
Hi there,
I hope I haven't asked this before ... :-)
Our project structure closely resembles the MITK-Project Template
https://github.com/MITK/MITK-ProjectTemplate
If I wanted to have several apps, where each app has a different selection of
plugins ... is this possible?
I guess it basically means that I need to generate a .provisioning file for
each app, with a different load of plugins in each file.
The reason I ask, is that it might be a bit fiddly with things like Mac
application structure???
Thanks as always
Matt
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat
landscape has changed and how IT managers can respond. Discussions will include
endpoint security, mobile security and the latest in malware threats.
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users