2 messages in com.perforce.jamming[jamming] Another small patch for Win...| From | Sent On | Attachments |
|---|---|---|
| Niklaus Giger | 19 Nov 2003 08:57 | |
| Matze Braun | 20 Nov 2003 09:15 |
| Subject: | [jamming] Another small patch for Windows![]() |
|---|---|
| From: | Niklaus Giger (n.gi...@netstal.com) |
| Date: | 11/19/2003 08:57:36 AM |
| List: | com.perforce.jamming |
Hi
If I want to build a target on a different drive letter on Windows NT, the default Jambase does not correctly handle this situation as it places all output directly under ALL_LOCATE_TARGET instead of putting them into subdirectories
Here is an example. I am using the directory T:\niklaus with the following jamfile
FIRST = H:/xrun/bb/make/1_2_x/test ; ALL_LOCATE_TARGET = . ; SubDir FIRST proj1 sub1 ; SubInclude FIRST proj1 sub1 ;
Calling "jam -dx exe" results in <..> gcc -c -o sub_1_2.o -DMINGW -IH:/xrun/bb/make/1_2_x/test\proj1\sub1\sub1_2 H:/xrun/bb/make/1_2_x/test\proj1\sub1\sub1_2\sub_1_2.c gcc -o sub1_2.exe sub_1_2_main.o sub_1_2.o
After setting LOCATE_TARGET in the Jambase in the rule SubDirto LOCATE_TARGET = [ FDirName $(ALL_LOCATE_TARGET) $(SUBDIR_TOKENS) ] ; instead of LOCATE_TARGET = $(ALL_LOCATE_TARGET) $(SUBDIR) ;
I get the desired behaviour, e.g. gcc -c -o proj1\sub1\sub1_1\sub_1_1.o -DMINGW -IH:/xrun/bb/make/1_2_x/test\proj1\sub1\sub1_1 H:/xrun/bb/make/1_2_x/test\proj1\sub1\sub1_1\sub_1_1.c gcc -o proj1\sub1\sub1_1\sub1_1.exe proj1\sub1\sub1_1\sub_1_1_main.o proj1\sub1\sub1_1\sub_1_1.o
Regards
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or legally privileged material. If you received this in error, please contact the sender and delete the material from any computer. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited.
You have asked us to correspond with you via the Internet per e-mail. However, the written version of our document signed by us is the only authoritative version. Please note that e-mail correspondence can be lost or falsified, with or without any interference by third persons. Conventional e-mails are not protected against access by third persons and, therefore, their confidentiality and/or integrity may not be assured. Moreover, despite our use of anti-virus software, a virus may enter your systems in connection with the sending of e-mails. Thus, we are not liable for any damages resulting out of these circumstances.




