Author Topic: Running non-Linux executables with a simulator in code::blocks  (Read 4074 times)

Offline DoMeN

  • Multiple posting newcomer
  • *
  • Posts: 66
Running non-Linux executables with a simulator in code::blocks
« on: October 30, 2006, 10:28:09 am »
Is it somehow possible to give code::blocks parameters to use a simulator for executable execution?

For example:

use simulator: yes/no
simulator path: path to simulator
simulator parameters: some flags, $executable_name

Offline tiwag

  • Developer
  • Lives here!
  • *****
  • Posts: 1196
  • sailing away ...
    • tiwag.cb
Re: Running non-Linux executables with a simulator in code::blocks
« Reply #1 on: October 30, 2006, 11:33:16 am »
you can use the Tools Menu and pass the macros

$(TARGET_OUTPUT_DIR)
$(TARGET_OUTPUT_FILE)


e.g.

Executable: usr/bin/Simulatorxy
Parameters: flags, $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_FILE)



brgds

Offline DoMeN

  • Multiple posting newcomer
  • *
  • Posts: 66
Re: Running non-Linux executables with a simulator in code::blocks
« Reply #2 on: October 30, 2006, 01:30:55 pm »
Is it possible to link this tool to start when you click on run project button?
« Last Edit: October 30, 2006, 01:53:37 pm by DoMeN »

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2778
Re: Running non-Linux executables with a simulator in code::blocks
« Reply #3 on: October 30, 2006, 02:18:42 pm »
Is it possible to link this tool to start when you click on run project button?

You can't redirect the taskbar button, but you can redefine the menu run key with keybinder.

Or just use keybinder to define a  key for your tool.