Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

We're using final builder to build a Delphi project and the person managing the build server noticed that projects with no .dres files were not building because they're not in SVN and because they're not in SVN they're not on the build machine.

So he put them in SVN.

I'm a little skeptical about the necessity of putting them in SVN though. For one thing, if they're needed by the build server then they're not being built by the build server and we're not really creating the build in one step since we're using pre-compiled code (I might as well just check in my DCU's, tear off my beard and return my Delphi-4-Ever allegiance card).

I see in Delphi after compiling a project:

c:\program files (x86)\embarcadero\rad studio\9.0\bin\cgrc.exe -c65001 "PROJResource.rc" -foPROJ.dres

Those files are produced by brcc32 compiling an RC file. I'd say, well just add that line to the build server, but PROJResource.rc isn't in SVN either!

PROJResource.rc is automatically generated by Delphi from adding things using the project manager and I never noticed it so I never added it to SVN and no one else complained (I think the .dproj file is behind this). The RC files that I wrote myself are in SVN though.

So... what's the best way to fix this, just check in the PROJResource.rc or is there something else we can be doing to streamline this?

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

If you are using FinalBuilder 7.0.0.1864 or later, on the Delphi Action Properties dialog, switch to the Resource Compiler page, and turn on "Compile Project Resources (D2009 or later)" - this will recompile the dres file during the build and you should not need to add it to svn (you do need the dproj though).

(I tried to post a screenshot but aparently I might be a spammer and I'm not allowed to do that yet!).

share|improve this answer
1  
Post the URL in a comment and I'll edit it into your post as an image. –  Mason Wheeler Jan 31 '13 at 23:32
    
I just want to say that I really love StackExchange! thanks for answering, maybe I should have just asked here! I didn't even think to though as I just ask all my programming questions here or on stackoverflow (or the deeper programming questions on Christianity) –  Peter Turner Feb 1 '13 at 15:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.