Hi Jens,

I know, that this is not exactly what you are after, but maybe it's useful 
for you as well: There are some variables which you can use at least in 
the "Build directory" field of a generic makefile project (and maybe also 
in the working directory for a custom build step?).

They are all in the form of
${CURRENT_DOCUMENT:path}

where path can be replaced by baseName, suffix, ... and all the others in 
this list (where you can also see their meaning):

    insert(tag, file.filePath());
    insert(tag+":absoluteFilePath", file.absoluteFilePath());
    insert(tag+":absolutePath", file.absolutePath());
    insert(tag+":baseName", file.baseName());
    insert(tag+":canonicalPath", file.canonicalPath());
    insert(tag+":canonicalFilePath", file.canonicalFilePath());
    insert(tag+":completeBaseName", file.completeBaseName());
    insert(tag+":completeSuffix", file.completeSuffix());
    insert(tag+":fileName", file.fileName());
    insert(tag+":filePath", file.filePath());
    insert(tag+":path", file.path());
    insert(tag+":suffix", file.suffix());

I'm not sure whether that's documented anywhere, and there is also no GUI 
element to insert any of these. But at least they are available.

As for your question, may I ask how your example would be useful? Instead 
of specifying the variable in Build Environment, can't you simply put its 
value into your custom build step?
I would understand that a build environment setting is useful if your 
Makefiles assume certain variables to be set, but that doesn't seem like 
what you are after, is it?

Cheers,
Frank


Jens Frederich, Wednesday 21 October 2009:
> Hi list,
>
> In a general makefile based project it exist "Run Environment"
> settings, but why not "Build Environment" settings too?
> It make sense by following scenario: a custom build steps with
> environment variables like
>
> name:    qmake3
> command: $QTDIR/bin/qmake  // is qt3
> working directory: $VGLDIR
> command arguments: CONFIG*=vg_$debug_version"
>
>
>
>    Jens

_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to