Skip to content

What source files are built into node binary, and what are not? #6605

Description

@IlyaBiryukov
  • Version: 4.4.3
  • Platform: Windows

We're evaluating shipping node as a component in some of our products. As part of that, we're performing intellectual property scan of the node source files. For the scan it's critical to know whether the source files actually end up in node executable bits and will be part of distribution, and when they do not, i.e. when they're only related to tests, build tools, samples, docs, etc.

Is there a doc or folder map that can help distinguish whether the files are shipping in node bits or not?

Thanks,
Ilya

Activity

  1. added
    questionIssues asking questions about Node.js.
    buildIssues and PRs related to Node.js builds or CI infrastructure.
    on May 5, 2016
  2. mscdex commented on May 6, 2016

    @mscdex
    Contributor

    @alexhultman You'll probably want to follow #6274 for that. I think it's not implemented yet because it's not easy to do on Windows from what I understand.

  3. bnoordhuis commented on May 6, 2016

    @bnoordhuis
    Member

    @IlyaBiryukov node.gyp in the top-level directory and the *.gyp(i) files it includes ultimately decide what source files end up in the final binary; grep them for 'sources' and 'action' fields. As a rule of thumb: files in deps/, src/ and lib/ are compiled in, files in other directories are not.

    Hope that answers your question. I'll close the issue but feel free to ask follow-up questions.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildIssues and PRs related to Node.js builds or CI infrastructure.questionIssues asking questions about Node.js.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions