GYP

> 安装

$ git svn clone -r HEAD http://gyp.googlecode.com/svn/trunk/ gyp
$ cd gyp
$ ./setup.py build
$ sudo ./setup.py install

> Hello World

$ vim main.cpp
#include <stdio.h>
int main(int argc, char** argv)
{
     printf("hello world\n");  
}
$ vim main.gyp
{
    "targets": [
        {
            "target_name": "main",
            "type": "executable",
            "sources": [
                "main.cpp"
            ]
        }
    ]
}
$ gyp --depth=. main.gyp
$ open main.xcodeproj

COMMAND + R 运行