Skip to content

Conversation

kraenhansen
Copy link
Collaborator

This fixes #96 by adding transformation of "defines".

Merging this PR will:

@kraenhansen kraenhansen self-assigned this May 21, 2025
@kraenhansen kraenhansen added enhancement New feature or request gyp-to-cmake labels May 21, 2025
Copy link

changeset-bot bot commented May 21, 2025

⚠️ No Changeset found

Latest commit: e2110c6

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@kraenhansen kraenhansen requested a review from mani3xis May 21, 2025 10:06
Copy link
Contributor

@matthargett matthargett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some immediate comments to validate against Windows. With Windows CI now set up, you should be able to run the tests there and have a feedback loop to make sure all the platforms are making decent progress in lock-step :)


function escapePath(source: string) {
function escapeSpaces(source: string) {
return source.replace(/ /g, "\\ ");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Windows needs quotes around paths with spaces

targets: [
{
target_name: "foo",
sources: ["<!echo bar baz"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unclear that this will work on Windows, at least without quotes. we probably want to specify PowerShell explicitly on that platform, and code to that.

@kraenhansen kraenhansen merged commit 55895aa into main Jun 23, 2025
4 checks passed
@kraenhansen kraenhansen deleted the kh/gyp-to-cmake-improvements branch June 23, 2025 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request gyp-to-cmake

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gyp-to-cmake does not respect requested NAPI_VERSION

3 participants