You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
We're already using a newer version of gyp to build the Node.js bindings - let's upgrade the version of gyp we use to build everything else and review our existing patches.
The only reason we're stuck on gyp are so that integration with node bindings is easer
The node bindings already seem to be using a different copy of gyp. Or at least there’s a separate copy being installed in node_modules, in addition to the much older copy in deps that we’re thinking of upgrading.
Is this something we could possibly upstream into gyp? Is CMake really a more attractive build system?
The node bindings already seem to be using a different copy of gyp
Yep, this was to land make xnode support for Node.js v0.10.x in 36a8fb3. Previously make node builds were just using the default node-gyp bundled with whichever version of Node.js was active when compiling.
From the cmake-js readme:
First of all, Google, the creator of the gyp platform is moving towards its new build system called gn, which means gyp's days of support are counted. (Just for the record, despite the announced gn switch, there is Bazel in the works, so sooner or later gn will be dropped in favor of it - IMHO.)
@kkaefer Given the current state of gyp/gn/bazel I'm sold on moving to CMake if we can nail nan support, I could work on patching anything upstream if needed.
Activity
kkaefer commentedon Dec 6, 2015
Maybe it's time to change our build to CMake? The only reason we're stuck on gyp are so that integration with node bindings is easer (by building it in one build step, rather than first building a library, then adding that library to node). We're working around gyp's deficiencies in https://github.com/mapbox/mapbox-gl-native/blob/master/scripts/node/create_npm_scheme.sh has well to add direct run targets for
npm testandnpm run test-suite, due to the lack of Xcode schemes support in gyp.There are at least two modules for using CMake instead of gyp: node-cmake and cmake-js, which both seem well maintained.
1ec5 commentedon Dec 6, 2015
The node bindings already seem to be using a different copy of gyp. Or at least there’s a separate copy being installed in node_modules, in addition to the much older copy in deps that we’re thinking of upgrading.
mikemorris commentedon Dec 7, 2015
Is this something we could possibly upstream into gyp? Is CMake really a more attractive build system?
Yep, this was to land
make xnodesupport for Node.js v0.10.x in 36a8fb3. Previouslymake nodebuilds were just using the defaultnode-gypbundled with whichever version of Node.js was active when compiling.From the
cmake-jsreadme:Ugh.
kkaefer commentedon Dec 7, 2015
@mikemorris There's a half-baked branch at https://codereview.chromium.org/385963006/ that adds schemes, but gyp is pretty much unmaintained, as Google is moving away from
gyptognorbazel. That said, while CMake certainly has its flaws, it's also much better maintained.mikemorris commentedon Dec 7, 2015
@kkaefer Given the current state of gyp/gn/bazel I'm sold on moving to CMake if we can nail nan support, I could work on patching anything upstream if needed.
incanus commentedon Dec 7, 2015
Possibly useful: #18 & #21
mikemorris commentedon Dec 8, 2015
Fixed in #3193, let's open a new ticket for discussion around switching build systems to CMake or something else.