{"id":13544898,"url":"https://github.com/springmeyer/hello-gyp","last_synced_at":"2025-04-12T20:02:09.973Z","repository":{"id":1819039,"uuid":"2743268","full_name":"springmeyer/hello-gyp","owner":"springmeyer","description":"Hello world sample for gyp build tool","archived":false,"fork":false,"pushed_at":"2019-10-31T13:00:35.000Z","size":1483,"stargazers_count":111,"open_issues_count":2,"forks_count":24,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-26T14:12:15.004Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"mnmly/select-switch","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/springmeyer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-11-09T17:49:11.000Z","updated_at":"2024-01-21T15:54:57.000Z","dependencies_parsed_at":"2022-08-19T22:31:08.012Z","dependency_job_id":null,"html_url":"https://github.com/springmeyer/hello-gyp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springmeyer%2Fhello-gyp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springmeyer%2Fhello-gyp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springmeyer%2Fhello-gyp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springmeyer%2Fhello-gyp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/springmeyer","download_url":"https://codeload.github.com/springmeyer/hello-gyp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248625494,"owners_count":21135513,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T11:00:54.728Z","updated_at":"2025-04-12T20:02:09.950Z","avatar_url":"https://github.com/springmeyer.png","language":"C++","funding_links":[],"categories":["Reference"],"sub_categories":["Miscs"],"readme":"# gyp hello world\n\n[![Build Status](https://secure.travis-ci.org/springmeyer/hello-gyp.svg)](https://travis-ci.org/springmeyer/hello-gyp)\n\n[![Build status](https://ci.appveyor.com/api/projects/status/9b57lcato29u73uv)](https://ci.appveyor.com/project/springmeyer/hello-gyp)\n\n[GYP can Generate Your Projects](http://code.google.com/p/gyp/).\n\nIt is a pre-build system that uses a json config to generate optimized\nproject files for various build tools like make, xcode, visual studio.\n\nFor example, it is able to generate make or scons files that run fast.\n\nIt is also able to generate xcode and visual studio files.\n\nIt's a bit like cmake, except: http://code.google.com/p/gyp/wiki/GypVsCMake\n\nThis demo shows how to build:\n\n - a hello world c++ library (called 'mylib')\n - a command line program that uses/links to it\n - a node.js module that depends on mylib via it gyp file\n\nSee also:\n\n  - http://n8.io/converting-a-c-library-to-gyp/\n  - http://code.google.com/p/gyp/wiki/GypTesting\n\n## Usage\n\nJust grab this sample project and build it:\n\n    git clone git://github.com/springmeyer/hello-gyp.git\n    cd hello-gyp\n    make\n\nTo learn more about how to do this manually, or for different plaforms, read on.\n\n## make\n\nThe below commands assume you have gyp installed globally. You can do this like:\n\n    git clone https://chromium.googlesource.com/external/gyp.git\n    cd gyp\n    sudo python setup.py install\n\n### build\n\n    gyp mylib.gyp --depth=. -f make --generator-output=./build/makefiles\n    V=1 make -C ./build/makefiles/\n\n### test\n\n    $ ./build/makefiles/out/Release/myapp\n    hello\n\nAnd the node module:\n\n    npm install node-gyp\n    node_modules/.bin/node-gyp configure build\n\nTest the node module:\n\n    $ node -e \"console.log(require('./build/Release/modulename.node').hello())\"\n    hello\n\n## scons\n\n### build\n\n    gyp mylib.gyp --depth=. -f scons --generator-output=./build/sconsfiles\n    scons -C ./build/sconsfiles/\n\n### test\n\n    $ ./build/sconsfiles/Release/myapp\n    hello\n\n\n## xcode\n\n### build\n\n    gyp mylib.gyp --depth=. -f xcode --generator-output=./build/xcodefiles\n    xcodebuild -project ./build/xcodefiles/mylib.xcodeproj\n\n### test\n\n    # xcode does not respect subdirectory so `build` goes into the main directory\n    $ ./build/Release/myapp\n    hello\n\n## ninja\n\nNinja is a build system designed to be ultra fast.\n\nInstall it like:\n\n    git clone git://github.com/martine/ninja.git\n    cd ninja\n    ./bootstrap.py\n    cp ninja /usr/local/bin/\n\nMake sure it works:\n\n    $ ninja\n    ninja: no work to do.\n\nNow go back to the hello-gyp project folder and build the sample:\n\n    gyp mylib.gyp --depth=. -f ninja\n    ninja -v -C out/Release/ -f build.ninja\n\n### test\n\n    $ ./out/Release/myapp\n    hello\n\n## Microsft Visual Studio C++ 2010 Expres\n\nNote, this assumes you've downloaded and installed the free 2010 C++ studio.\n\n    python gyp/gyp mylib.gyp --depth=. -f msvs -G msvs_version=2010\n    msbuild mylib.sln\n\n### test\n\n    c:\\hello-gyp\u003eRelease\\myapp.exe\n    hello\n\n\n## Others\n\nOther formats are some some gyp-specific debugging output\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspringmeyer%2Fhello-gyp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspringmeyer%2Fhello-gyp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspringmeyer%2Fhello-gyp/lists"}