Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Setting environment variables before a remote project is run (https://www.kinook.com/Forum/showthread.php?t=4343)

vlad2135 02-02-2011 12:04 PM

Oh, you are genius! I would have never thought up such steps! Looks like they work for me! Tomorrow I'll try to use them on the full build script and post the results!

Thanks again!

vlad2135 02-03-2011 02:27 AM

And one more comment - any of the proposed methods will have a problem compared to loading global macros via /macros command-line parameter:

- /macros loads all macros in bulk and only after that starts evaluating (expanding?) them;
- on the contrary, loading macros via subproject or XML parsing requires all prerequisite macros to be loaded before their dependent macros (for macros expanding). So one must create and maintain a strict order of macros in the xml file.

So, why don't allow multiple /macros switches on command-line?

kinook 02-03-2011 10:46 AM

You can check the Don't expand macros or script in value when setting option or use vbld_EscapeString when assigning the value to prevent immediate expansion of macro references.
http://www.kinook.com/VisBuildPro/Ma...scriptmisc.htm

It's not very common to need so many macros as environment variables, but we'll add that to the request list.


All times are GMT -5. The time now is 01:51 PM.


Copyright © 1999-2023 Kinook Software, Inc.