Sign in to follow this  
mrheisenberg

Is there a tool that automatically copies lib-required headers at build time?

Recommended Posts

mrheisenberg    362

I'm building my engine as a static library and from another project I'm linking to it and including the headers,however all it does is compile the entire thing again,it however works when I just put only the .lib and the .h files in a folder and include/link them from there to my second project(the actual game) (the first being the engine).Is there a way to automate this process?

Share this post


Link to post
Share on other sites
King Mir    2490

Depends on your IDE/Build tools. make, the LCD of build tools can do this, but you IDE may have it's own way of specifying project dependency like this.

 

I'm also not sure what you mean by "all it does is compile the entire thing again", but you need to state your IDE regardless.

Share this post


Link to post
Share on other sites
mrheisenberg    362

Depends on your IDE/Build tools. make, the LCD of build tools can do this, but you IDE may have it's own way of specifying project dependency like this.

 

I'm also not sure what you mean by "all it does is compile the entire thing again", but you need to state your IDE regardless.


I'm on Visual Studio 2012, what I meant by compiling again is, that it goes trough the whole process of compiling them as if I just included the headers,  instead of just quickly linking the lib.(I use pragma comment to specify the .lib)

Share this post


Link to post
Share on other sites
EWClay    659
Where does it put the output of the library compilation? I think the default is the solution folder, so it will compile separately for every solution that includes it. You can change this in the property pages.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this