문제

What do I need to do to get GYP to generate your typical unix-like makefile stack for Mac OS X?

I currently get it to generate XCode build projects using the following config file:

{
  "targets": [
    {
      "target_name": "hello",
      'type': 'executable',
      "sources": [ "hello.cc" ]
    }
  ]
}

and then run the following at the CLI:

gyp --depth binding.gyp

This generates a directory: binding.xcodeproj which contains the XCode project.

I rather want your standard unix-like make build for OSX. Also, I'm going to want to import this project to Windows, which I'll want to use the MS compiler.

도움이 되었습니까?

해결책

Found the answer. Quite simple, really. Thank you to TooTallNate. I was getting an error the way I was originally doing it. You do it explicitly like so:

gyp --depth=./ binding.gyp --format=make

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top