-
August 30th, 2009, 07:40 PM
#1
RC file dependencies
Hey guys,
I am using a RC file to embed a binary file in the final .exe program. This binary file is produced in the build process of the project. The problem is that, when this binary file is rebuilt (so it has changed), the RC compiler is not triggered to rebuild the RES file. The RC file should depend on this binary file somehow.
Someone knows a fix or workaround for this problem?
Thanks!
Jorge
-
August 31st, 2009, 02:02 AM
#2
Re: RC file dependencies
Is the RC file part of the project file?
If it is a rebuild will always trigger to build the RES file.
-
August 31st, 2009, 04:24 AM
#3
Re: RC file dependencies
The RC is part of the project, but the binary file not (as this binary file is produced during the build process).
The exact scenario is this:
- I have a GPU shader source, for example, main.fx
- Then I change this source and compile the project
- As main.fx has changed, the FXC compiler is triggered, and it produces a new main.fxo file (the compiled binary I want to include in the .exe file)
- At this point, as main.fxo is included in the RC file, the RC compiler should be triggered to update the RES file. But it *does not*.
- The objects are linked and the final exe is produced, using the old RES file.
I have no clue of how to solve this issue... maybe it is a bug
-
August 31st, 2009, 10:41 AM
#4
Re: RC file dependencies
Have you tried adding a post build event to your project?
Gort...Klaatu, Barada Nikto!
-
August 31st, 2009, 12:59 PM
#5
Re: RC file dependencies
I fixed it using a custom build tool, and setting the dependencies manually. Not the way I would like it to do, as it is more a workaround than a solution...
Using a post build event would be a workaround as well, but thanks for the reply!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|