Author Topic: CommandsOnly target  (Read 5408 times)

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
CommandsOnly target
« on: January 27, 2021, 01:17:52 am »
As described here: https://sourceforge.net/p/codeblocks/tickets/1056/
i have quite some problems understanding how command only target is intended to work...
Is someone out there that uses this build target?
Can someone explain to me how it is intended to work, because in the code is quite some mixture and i think it does not work as intended...


Offline ollydbg

  • Developer
  • Lives here!
  • *****
  • Posts: 5910
  • OpenCV and Robotics
    • Chinese OpenCV forum moderator
Re: CommandsOnly target
« Reply #1 on: February 07, 2021, 02:28:30 am »
I use this kind of target to copy files, like update.bat.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: CommandsOnly target
« Reply #2 on: February 07, 2021, 07:56:14 pm »
Can you post an example?
Do you use the pre/post build steps?
Do you use special variables in the command?

Offline LETARTARE

  • Lives here!
  • ****
  • Posts: 531
  • L'ami de l'homme.The friend of man.
    • LETARTARE
Re: CommandsOnly target
« Reply #3 on: February 07, 2021, 08:18:20 pm »
here are some examples with Win?:
1- with compiler: for *.bat

2- no compiler : for documentation,...
CB-13483, plugins-sdk-2.25.0 : Collector-2.0.0, AddOnForQt-3.9.1
1-Win7 Business Pack1 64bits : wx-3.2.4, gcc-8.1.0,
2-OpenSuse::Leap-15.4-64bits : wx-3.2.4;gtk3, gcc-8.2.1,
=> !! The messages are translated by Deepl