Author Topic: File custom build with more than one command  (Read 2518 times)

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
File custom build with more than one command
« on: March 31, 2006, 03:52:11 pm »
Hello,

I am trying to use custom build (C::B rev2285) and it works. Anyway, I would like to use more than one command. For example the file I have CDITool.ui should generate 2 files: a .h and a .cpp. Moreover, the .h should be moc'ed (by using Qt tool). I have tried to give all the necessary command separated by a &&, but it did not work. Here is my custom build:

Quote
$(#Qt)\bin\uic.exe ".\CDIToolDefault.ui" -o ".\CDIToolDefault.h" && $(#Qt)\bin\uic.exe ".\CDIToolDefault.ui" -i ".\CDIToolDefault.h" -o ".\CDIToolDefault.cpp" && $(#Qt)\bin\moc.exe ".\CDIToolDefault.h" -o "tmp\moc\moc_CDIToolDefault.cpp"

If I use just one command it works.

How can I specify more commands?

Thank you very much.

Best wishes,
Michael

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4305
    • Code::Blocks IDE
Re: File custom build with more than one command
« Reply #1 on: March 31, 2006, 03:56:36 pm »
Quote
How can I specify more commands?

Hmm, one command per-line doesn't work? It should...
Be patient!
This bug will be fixed soon...

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: File custom build with more than one command
« Reply #2 on: March 31, 2006, 04:01:44 pm »
Quote
How can I specify more commands?

Hmm, one command per-line doesn't work? It should...

Yes, it works :). Thank you very much. I have just taken out the && and put each command in a new line and re-build. I got the files :).

Best wishes,
Michael