oops -- how unobservant one can be !!
candle /? says
-d<name>[=<value>] define a parameter for the preprocessor
-----Original Message-----
From: Alan Sinclair [mailto:[email protected]]
Sent: Friday, February 26, 2010 11:51 AM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Command line variables for Candle ? (Building both x86 and
x64 in one makefile pass)
Can a WiX variable be passed into candle from the command line? "Candle /?"
shows options but none seem to cover doing this.
I need to compile both 32- and 64-bit merge modules from the same source,
driven by the same makefile. Because of build complications (huge project) the
makefile cannot run twice; it must make both 32- and 64-bit modules in one pass.
E.g. the makefile will be something like this:
make_my_msm:
candle -arch x86 mymsm.wxs -out x86\my.msm
candle -arch x64 mymsm.wxs -out x64\my.msm
light etc.
The -arch directive switches Package/Platform but some components must be
flagged as 32- or 64-bit, and x86 or x64 binaries must be pulled in as needed.
So SourceFile= and Win64= arguments need to be parameterized:
E.g.
SourceFile="$(var.SOURCE_BIN)\my.dll"
Win64="$(var.IsWin64)"
I need to pass IsWin64 and SOURCE_BIN with different values to each of the
candle statements in make_my_msm.
Is that possible somehow? Or can the WXS source include references to the
value set for -arch? Obviously I could do two separate builds, each using
different environment variables with $(env.... but that's going to be very hard
to fit into our process.
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users