Search code examples
c++visual-studioprecompiled-headersgyp

gyp and precompiled headers for Visual Studio


Is gyp capable of generating precompiled header options for C++ project for MS Visual Studio?

There was a doc called WindowsPrecompiledHeaders, but it is 404 there now. Current gyp documentation contains no information about it.

Google web cache does not contain it, too.

Is there any docs about it?


Solution

  • It was simple:

    'msvs_precompiled_header': 'stdafx.h',
    'msvs_precompiled_source': 'stdafx.cpp',
    

    in .gyp file for given target.