Author Topic: CommandsOnly target  (Read 1582 times)

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 2974
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: 5346
  • 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: 2974
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

  • Regular
  • ***
  • Posts: 445
  • L'ami de l'homme.The friend of man.
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-rev12446, plugins : AddOnForQt-3.3 sdk260
1-Win7 Business Pack1 64bits : wx-3.1.5, gcc-8.1.0,
2-Vista Business Pack2 32bits : wx-3.1.4, gcc-8.1.0
3-OpenSuse-15.2-Leap 64bits : wx-3.03, gcc-7.5.
=> !! The messages are translated by Deepl !!