我需要做些什么才能让GYP为Mac OS X生成典型的类似unix的makefile堆栈?
我目前使用以下配置文件生成XCode构建项目:
{
"targets": [
{
"target_name": "hello",
'type': 'executable',
"sources": [ "hello.cc" ]
}
]
}
然后在CLI上运行以下命令:
gyp --depth binding.gyp
这会生成一个目录:binding.xcodeproj
,其中包含XCode项目。
我更希望你的标准unix-like make for OSX。另外,我想要将这个项目导入Windows,我想要使用MS编译器。
答案 0 :(得分:6)
找到答案。很简单,真的。谢谢TooTallNate。我收到的错误与我最初的做法一样。你明确地这样做:
gyp --depth=./ binding.gyp --format=make