Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS9 - Rev update only for full compilation #2004

Closed
DorpsGek opened this issue May 11, 2008 · 6 comments
Closed

VS9 - Rev update only for full compilation #2004

DorpsGek opened this issue May 11, 2008 · 6 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

Rindvieh opened the ticket and wrote:

Hi,

that you understand what I mean an example:

- if I compile OpenTTD r13040 the tooltip of the exe and the game tell me "OpenTTD r13040"

- if I update now to r13045 and press "F7" in Visual Studio (compile only new stuff) I get a new exe with all the new/changed stuff from r13045 but the tooltip of the exe and the game still tell me "OpenTTD r13040". So I must (for correct shown rev) everytime full compile.

Not really bad but annoying.

Cheers,
Rindvieh

Reported version: trunk
Operating system: Windows


This issue was imported from FlySpray: https://bugs.openttd.org/task/2004
@DorpsGek
Copy link
Member Author

glx wrote:

This doesn't happen for me.


This comment was imported from FlySpray: https://bugs.openttd.org/task/2004#comment4122

@DorpsGek
Copy link
Member Author

Rindvieh wrote:

I've tested it with 32bit and 64bit both the same result.

I use Visual Studio and not Visual C++ Express (for 64bit), compile under Vista and use TortoiseSVN. During compilation he "Determining version number" and in rev.cpp is the correct rev number. So I would say it's nothing with TortoiseSVN. Maybe something with Studio but I don't know.

Cheers,
Rindvieh


This comment was imported from FlySpray: https://bugs.openttd.org/task/2004#comment4123

@DorpsGek
Copy link
Member Author

michi_cc wrote:

Confirmed at least for VS9 Professional. The file rev.cpp is correctly updated, but the build process does not pick it up as modified.
The next build cycle (i.e. pressing F7 again) will recompile that file and have the right in-game revision.

It looks like the modified files are gathered before running the custom pre-build event. As it's not possible to specifiy output files
for a pre-build event, rev.cpp will only be picked up by subsequent builds.

A Custom Build Step can define output files, but I don't see a suitable file to define such a step. A custom build step for the project
file itself is not working as it will be executed after linking.


This comment was imported from FlySpray: https://bugs.openttd.org/task/2004#comment4128

@DorpsGek
Copy link
Member Author

Rubidium wrote:

What about a project where the main project depends on to perform the version determination?


This comment was imported from FlySpray: https://bugs.openttd.org/task/2004#comment4347

@DorpsGek
Copy link
Member Author

DorpsGek commented Aug 4, 2008

michi_cc wrote:

The attached patch changes the revision detection to use a dependant project to do its task.
It seems to work at least on my local machine.

Note that the VS2005 part is completely untested as I don't have access to that version.
But the project file format is not very different so I have hope that it might work.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/2004#comment4535

@DorpsGek
Copy link
Member Author

DorpsGek commented Aug 4, 2008

Rubidium closed the ticket.

Reason for closing: Fixed

In r13998. Thanks michi_cc!


This comment was imported from FlySpray: https://bugs.openttd.org/task/2004

@DorpsGek DorpsGek closed this as completed Aug 4, 2008
@DorpsGek DorpsGek added flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) Build system labels Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant