2013-04-17 4 views
3

gyp이있는 xcode (특히 clang이있는 xcode 4.6)에 대해 미리 컴파일 된 헤더를 어떻게 지정합니까?xcode 용 Gyp 프리 컴파일 헤더

나는 시각적 인 스튜디오 옵션 만 봅니다.

'msvs_precompiled_header': 'stdio.h', 
'msvs_precompiled_source': 'precomp.c', 

답변

5

Gyp는 꽤 좋지만 문서는 끔찍합니다.

사람이 그 필요성을 가로 지르는 경우 대답은 : 당신이 xcode_settings이 페이지에서 거의 모든 것을 설정할 수 있습니다 차단할 지적 가치 또한

'xcode_settings': { 
    'GCC_PREFIX_HEADER': 'path/from/gyp/file/to/header.h', 
    'GCC_PRECOMPILE_PREFIX_HEADER': 'YES', 
}, 

Xcode Build Settings Reference