-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nodegyp => cmakejs #12
Conversation
d1adbd7
to
5956093
Compare
d887216
to
5a8bd80
Compare
5a8bd80
to
aa7e76a
Compare
13ad6dd
to
1322c5c
Compare
1322c5c
to
8053cd4
Compare
93b0ece
to
1ae373d
Compare
1ae373d
to
94e12fb
Compare
script/index.ts
Outdated
remove('Debug') | ||
remove('Release') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nodegyp's compdb generator puts files in these two folders. are the two lines still needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed..I'm not aware what are those two folders generated from.
addon/addon.cc
Outdated
#if defined(_MSC_VER) | ||
#pragma warning(push) | ||
#pragma warning(disable : 4244) | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we simply disable it in cmake? also it's disabled in gn's own gen script here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
script/index.ts
Outdated
if (!fs.existsSync(`build/${file}`)) { | ||
console.warn('compile_commands.json is not supported.') | ||
return | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this and add if (os.platform() != 'win32')
for the call site at line 168. so we can keep these functions clean and make it very clear what works and what doesnt work on each platform.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
some nits
This reverts commit 514f86a.
* WIP: cmake-js * Fix build * Format * Fix debug build * Fix debug build * Fix build on windows, fix warnings * Support clangd * Remove gyp * Fix clangd support * Comments * Update index.ts some nits Co-authored-by: Bang Lee <qusicx@gmail.com>
No description provided.