我需要做什么才能让 GYP 为 Mac OS X 生成典型的类 unix 生成文件堆栈?
我目前使用以下配置文件生成 XCode 构建项目:
{
"targets": [
{
"target_name": "hello",
'type': 'executable',
"sources": [ "hello.cc" ]
}
]
}
然后在 CLI 中运行以下命令:
gyp --depth binding.gyp
这会生成一个目录:binding.xcodeproj
其中包含 XCode 项目。
我更希望你的标准类 unix 为 OSX 构建。另外,我想将这个项目导入到 Windows,我想使用 MS 编译器。