Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: tuxi on February 13, 2007, 12:36:38 pm

Title: QT Template with qmake
Post by: tuxi on February 13, 2007, 12:36:38 pm
hi,

as there is no qmake support in the "official" plugin i tried to modify by my own to suite my requirements. But i had some difficulties understanding this scripting language.

1. Why modifying the qt.cbp in template dir doesnt affect new projects?
2. How can i get objects in the script like a "ProjectFile"
3. Perhaps s.b. can rewrite the script for me, i think wouldn't be that much work for an experienced coder

"Needed Features":
- Pre-Compile Commands: qmake, qmake -project
- Always Execute pr-compiled
- Use a custom Makefile
- Editing the output dir to ./release instead of ./bin/release

would be nice if sb. can invest some minutes

edit: forget to write that i'm using the latest nightly build

greetings tuxi
Title: Re: QT Template with qmake
Post by: tuxi on February 13, 2007, 11:54:36 pm
Okay modified the script by my own now (wasnt that difficult  :?)
but now i got another problem:
how can i execute pre-commands if i use a custom makefile.
Found another thread with the same problem there but without solution.
Title: Re: QT Template with qmake
Post by: mandrav on February 14, 2007, 12:32:26 am
Quote
how can i execute pre-commands if i use a custom makefile.
Found another thread with the same problem there but without solution.

Things are simple: the pre/post commands must be put in the makefile.
Title: Re: QT Template with qmake
Post by: tuxi on February 14, 2007, 10:41:52 am
okay, found a way now how can i modify
the enum MakeCommand's in my wizzard script?
Title: Re: QT Template with qmake
Post by: mandrav on February 14, 2007, 01:59:39 pm
okay, found a way now how can i modify
the enum MakeCommand's in my wizzard script?

Unfortunately this functionality is not yet exported to scripts (not needed until now). Just file a feature request about it so we don't forget it...