ImageEngine / cortex

Libraries for visual effects software development
Other
533 stars 125 forks source link

Precompiled headers #371

Open boberfly opened 9 years ago

boberfly commented 9 years ago

What I've noticed from building Cortex over and over is that it takes way too long! What I propose is having a Precompiled.h (or stdafx.h) and place includes that are commonly used through the library to speed up compile times. MSVC: http://msdn.microsoft.com/en-us/library/h552b3ca.aspx GCC: https://gcc.gnu.org/onlinedocs/gcc/Precompiled-Headers.html

Thoughts? Bringing in the Export.h took awhile and I'm somewhat reluctant to add another include into every file again, but the compile times at least on MSVC on my laptop are quite long.

boberfly commented 7 years ago

Adding this link commit as it's exactly what Pixar's USD has done for MSVC support: https://github.com/PixarAnimationStudios/USD/commit/791bdb6102228e68b4b58d4cb1339e7c8acbfef0