FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to set/use variable in Response File(BRF)

 
Post new topic   Reply to topic     Forum Index -> Build
View previous topic :: View next topic  
Author Message
smithfox



Joined: 19 Apr 2007
Posts: 3

PostPosted: Thu Apr 19, 2007 9:01 am    Post subject: How to set/use variable in Response File(BRF) Reply with quote

I want to write a build Response File, other people only need to modify a profile file on others machine.

Now:
dayudict/main.d
-T..\dayudict.exe
-cleanup
-op
-gui
comctl32_dwt.lib
comdlg32_dwt.lib
-IC:\opensource\dwt\import
-LIBPATH=C:\develop\d\dmd\lib;C:\develop\d\dm\lib;C:\opensource\dwt\lib

I want to write as:
dayudict/main.d
-T..\dayudict.exe
-cleanup
-op
-gui
comctl32_dwt.lib
comdlg32_dwt.lib
-I%DWT_HOME%
-LIBPATH=%DMD_HOME%\lib;%DM_HOME%\lib;%DWT_HOME%\lib
Back to top
View user's profile Send private message
Derek Parnell



Joined: 22 Apr 2004
Posts: 408
Location: Melbourne, Australia

PostPosted: Thu Apr 19, 2007 6:41 pm    Post subject: Re: How to set/use variable in Response File(BRF) Reply with quote

smithfox wrote:
I want to write a build Response File

I want to write as:
dayudict/main.d
-T..\dayudict.exe
-cleanup
-op
-gui
comctl32_dwt.lib
comdlg32_dwt.lib
-I%DWT_HOME%
-LIBPATH=%DMD_HOME%\lib;%DM_HOME%\lib;%DWT_HOME%\lib

That should work. Have you tried that and it doesn't work?
_________________
--
Derek
skype name: derek.j.parnell
Back to top
View user's profile Send private message
smithfox



Joined: 19 Apr 2007
Posts: 3

PostPosted: Thu Apr 19, 2007 6:49 pm    Post subject: Reply with quote

Thank your response.
Yes I tried it. It didn't work.

make.bat
---------------
set DM_HOME=C:\develop\d\dm
set DMD_HOME=C:\develop\d\dmd
set DWT_HOME=C:\opensource\dwt
bud @build


build.brf
---------------
.......
-I%DWT_HOME%
-LIBPATH=%DMD_HOME%\lib;%DM_HOME%\lib;%DWT_HOME%\lib

It couldn't find all lib, but if I replace %DWT_HOME% with "C:\opensource\dw", It is nomarly.
Back to top
View user's profile Send private message
Derek Parnell



Joined: 22 Apr 2004
Posts: 408
Location: Melbourne, Australia

PostPosted: Thu Apr 19, 2007 7:18 pm    Post subject: Reply with quote

Oops! You are correct. Lines from a BRF file are not examined for environment symbols, only the lines from the DMD configuration file and lines from a Bud configuration file are examined.

I had better fix this and get the next release out ASAP.
_________________
--
Derek
skype name: derek.j.parnell
Back to top
View user's profile Send private message
smithfox



Joined: 19 Apr 2007
Posts: 3

PostPosted: Thu Apr 19, 2007 7:37 pm    Post subject: Reply with quote

Thank your great job!
I wait for next release.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Build All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group