Re: [Qt-creator] Install support files together with plugin

2010-10-18 Thread Tim Beaulen
On Mon, Oct 18, 2010 at 9:31 AM, Eike Ziller  wrote:
> But, if you consider to provide your plugin cross-platform, you should notice 
> that resources are at a different place on Mac builds.
> You should definitely use $$IDE_DATA_PATH/myplugin/scripts
> and in you plugin sources Core::ICore::instance()->resourcePath() + 
> QLatin1String("/myplugin/scripts")
>

Thanks for the tip.

>
> INSTALLS creates an additional make target "make install". If you don't call 
> "make install" the files will not be copied. If you want to actually copy 
> files during the "make" step, you'll unfortunately need to do some fancy 
> stuff, similar to share/qtcreator/static.pro
> /me wonders if we couldn't provide most of the stuff for this task as 
> functions in qtcreator.pri ?
>

I was, and still am, confused by how the plugin gets build and installed.
When I build the plugin from within Qt Creator, it gets installed
automatically, I never have to use make install.

Running make install from the build dir works, but results in an
error. It wants to create a directory called "/lib/qtcreator".


Thanks for the reply. I have an answer to my question. Just run make
install in the build dir regardless of building the plugin in Qt
Creator.

___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Install support files together with plugin

2010-10-18 Thread Eike Ziller
Hi,

On Oct 16, 2010, at 5:14 PM, ext Tim Beaulen wrote:

> Hello,
> 
> I'm creating a plugin that needs to install a couple of script files.
> In doing so I encountered a problem.
> 
> First a question. Is it allowed to install these support files in
> share/qtcreator/myplugin/ ?
> Or is there some etiquette that says not to do that?

I wouldn't know a better place. But, if you consider to provide your plugin 
cross-platform, you should notice that resources are at a different place on 
Mac builds.
You should definitely use $$IDE_DATA_PATH/myplugin/scripts
and in you plugin sources Core::ICore::instance()->resourcePath() + 
QLatin1String("/myplugin/scripts")

> 
> In trying to install these files, I modified the .pro file of the
> plugin like so:
> Note: "..." replaces several other lines.
> 
> 1. ...
> 2.
> 3. OTHER_FILES = ... \
> 4.tests/testscript.qs
> 5.
> 6. ...
> 7.
> 8. testscriptfiles.files += tests/testscript.qs
> 9. testscriptfiles.path = $$IDE_BUILD_TREE/share/qtcreator/myplugin/scripts
> 10. INSTALLS += testscriptfiles

INSTALLS creates an additional make target "make install". If you don't call 
"make install" the files will not be copied. If you want to actually copy files 
during the "make" step, you'll unfortunately need to do some fancy stuff, 
similar to share/qtcreator/static.pro
/me wonders if we couldn't provide most of the stuff for this task as functions 
in qtcreator.pri ?

++ Eike
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] Install support files together with plugin

2010-10-16 Thread Tim Beaulen
Some important details:
The plugin is created base on the Qt Creator plugin project in Qt
Creator itself.
It is being build inside Qt Creator.
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] Install support files together with plugin

2010-10-16 Thread Tim Beaulen
Hello,

I'm creating a plugin that needs to install a couple of script files.
In doing so I encountered a problem.

First a question. Is it allowed to install these support files in
share/qtcreator/myplugin/ ?
Or is there some etiquette that says not to do that?

In trying to install these files, I modified the .pro file of the
plugin like so:
Note: "..." replaces several other lines.

1. ...
2.
3. OTHER_FILES = ... \
4.tests/testscript.qs
5.
6. ...
7.
8. testscriptfiles.files += tests/testscript.qs
9. testscriptfiles.path = $$IDE_BUILD_TREE/share/qtcreator/myplugin/scripts
10. INSTALLS += testscriptfiles
11.
12. ...

However, the script doesn't get installed. How can I do this?
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator