[Qt-creator] Buid and Run settings should allow to set path relative to the .pro file

Coda Highland coda at bobandgeorge.com
Sat Jul 24 16:30:50 CEST 2010


Never put .pro.user files in the repository. They're not intended to
be shared. Any project settings that need to be shared need to be put
into the .pro file.

/s/ Adam

On Sat, Jul 24, 2010 at 2:21 AM, anshul mehta <ansmehta at gmail.com> wrote:
> Hi
>
> I'm using custom make commands to build my project. I delete the default
> build steps and specify the my own build steps to be executed when project
> is build in Qt Creator.
> I specify a build directory in which make commands are to be executed and
> specify the path of executable that is to be run.
> The build directory path and executable path are stored in
> untitled.pro.user.
>
> Now my problem is that multiple users share this untitled.pro.user file
> since it is checked in CVS along with untitled.pro. But the path stored in
> untitled.pro.user are absolute paths and thus don't work for the other
> users.
>
> I need a feature so that I can specify the build directory path and
> executable path relative to the path of untitled.pro that any user opens in
> Qt Creator i.e. when we open a .pro in Qt Creator then an environmental
> variable gets created $PROJECT_PATH which points to path of .pro file of the
> project. Then I can specify build directory in untitled.pro.user like
> $PROJECT_PATH/../bld and the executable path like
> $PROJECT_PATH/../inst/untitled. In this I will be able to share same
> untitled.pro.user among multiple users since the $PROJECT_PATH will be setup
> for each user differently when he opens project in Qt Creator.
>
> Alternatively to above feature we can be implement a feature that when
> untitled.pro is opened then we can specify the custom path of
> untitled.pro.user to be loaded and it should not look for untitled.pro.user
> in the current directory. In this way users can keep their own independent
> untitled.pro.user and need not check it in CVS
>
> I hope I'm making my point clear !
>
> Thanks
> Anshul
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>



More information about the Qt-creator-old mailing list