Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

upgrade gyp #3178

Closed
Closed

Description

@mikemorris

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.

/cc @1ec5

Activity

  1. self-assigned this
    on Dec 3, 2015
  2. added this to the ios-v3.1.0 milestone on Dec 3, 2015
  3. kkaefer commented on Dec 6, 2015

    @kkaefer
    Member

    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 test and npm 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.

  4. 1ec5 commented on Dec 6, 2015

    @1ec5
    Contributor

    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.

  5. mikemorris commented on Dec 7, 2015

    @mikemorris
    ContributorAuthor

    due to the lack of Xcode schemes support in gyp

    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.)

    Ugh.

  6. kkaefer commented on Dec 7, 2015

    @kkaefer
    Member

    @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 gyp to gn or bazel. That said, while CMake certainly has its flaws, it's also much better maintained.

  7. mikemorris commented on Dec 7, 2015

    @mikemorris
    ContributorAuthor

    @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.

  8. incanus commented on Dec 7, 2015

    @incanus
    Contributor

    Possibly useful: #18 & #21

  9. mikemorris commented on Dec 8, 2015

    @mikemorris
    ContributorAuthor

    Fixed in #3193, let's open a new ticket for discussion around switching build systems to CMake or something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions