Author Topic: setting Builtin Variables?  (Read 3080 times)

Offline denk_mal

  • Multiple posting newcomer
  • *
  • Posts: 35
setting Builtin Variables?
« on: August 01, 2007, 09:49:05 am »
Hi,

i have tried to use the builtin variables in a post build step and found out that im
my enviromet the variables $(TARGET_OUTPUT_DIR) is pointing to $(PROJECTDIR)
and not to $(PROJECTDIR)/bin/Debug
The variable $(TARGET_OBJECT_DIR) is pointing to $(PROJECTDIR)/obj/Debug

Where do I set the variable $(TARGET_OUTPUT_DIR) ?

BTW Is there a nicer (plattform independed) way to copy some files to the $(TARGET_OUTPUT_DIR) ?

greetings
denk_mal

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: setting Builtin Variables?
« Reply #1 on: August 01, 2007, 10:04:25 am »
These variables are defined internally by C::B.
Be a part of the solution, not a part of the problem.

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: setting Builtin Variables?
« Reply #2 on: August 01, 2007, 10:40:10 am »
$(TARGET_OUTPUT_DIR) is pointing to $(PROJECTDIR) and not to $(PROJECTDIR)/bin/Debug
You're right. Although it shouldn't...

The problem lies in CompileTargetBase::GetBasePath() which doesn't do what its description says. Unluckily, this can't be changed since 72 other code bits depend on it. I'll look for a workaround.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: setting Builtin Variables?
« Reply #3 on: August 01, 2007, 11:16:03 am »
Fixed in revision 4339.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."