[Interest] Create Plugins(.bundle extension file) to existing MacOSX application using Qt
Till Oliver Knoll
till.oliver.knoll at gmail.com
Fri May 18 09:56:54 CEST 2012
2012/5/17 Arun Kumar <arunkumaraymuo at gmail.com>:
> How i can create .bundle extension file using Qt creator
I am not aware that qmake (which in the end is what QtCreator is
using) supports the .bundle type. By default when you create an
application you get an .app bundle. From what I understood after a
quick look into the Apple documentations the .bundle is very similar
to the .app bundle, besides some special information in the Info.plist
file (info about "How to create your plugin, that it is a plugin in
the first place etc.").
Have a look here:
I would create a library with (*.pro)
TEMPLATE = lib
CONFIG += plugin
which will give you a *.dynlib dynamic library.
I strongly assume you have to implement platform-specific code anyway
in your plugin (see Apple documentation above about which interfaces
you have to implement), and you need to provide a custom Info.plist
file as well.
Once you have all that provide a custom build step which creates your
.bundle (which is nothing more than "a directory hierarchy with all
files named and placed at the proper place" ;)).
Check out the introductory chapters about "bundles" here:
The above information is just the raw idea - you probably need to cook
it for a while, but that hopefully should get you going.
More information about the Interest