Ehe*_*Tov 4 macos automake makefile gyp
我需要做些什么才能让GYP为Mac OS X生成典型的类似unix的makefile堆栈?
我目前使用以下配置文件生成XCode构建项目:
{
"targets": [
{
"target_name": "hello",
'type': 'executable',
"sources": [ "hello.cc" ]
}
]
}
Run Code Online (Sandbox Code Playgroud)
然后在CLI上运行以下命令:
gyp --depth binding.gyp
这会生成一个目录:binding.xcodeproj其中包含XCode项目.
我更希望你的标准unix-like make for OSX.此外,我将要将此项目导入Windows,我将要使用MS编译器.
找到了答案.很简单,真的.谢谢TooTallNate.我收到的错误与我最初的做法一样.你明确地这样做:
gyp --depth=./ binding.gyp --format=make
| 归档时间: |
|
| 查看次数: |
3002 次 |
| 最近记录: |