Skip to content
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

Merged
merged 11 commits into from
Oct 25, 2021
Merged

nodegyp => cmakejs #12

merged 11 commits into from
Oct 25, 2021

Conversation

richard1122
Copy link
Member

No description provided.

@richard1122 richard1122 force-pushed the linyhe/cmakejs branch 2 times, most recently from d887216 to 5a8bd80 Compare October 24, 2021 07:34
@richard1122 richard1122 marked this pull request as ready for review October 24, 2021 10:09
script/index.ts Outdated
Comment on lines 143 to 144
remove('Debug')
remove('Release')
Copy link
Member

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?

Copy link
Member Author

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.

script/index.ts Outdated Show resolved Hide resolved
.vscode/settings.json Show resolved Hide resolved
addon/CMakeLists.txt Show resolved Hide resolved
addon/addon.cc Outdated
Comment on lines 8 to 11
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable : 4244)
#endif
Copy link
Member

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

Copy link
Member Author

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
Comment on lines 138 to 141
if (!fs.existsSync(`build/${file}`)) {
console.warn('compile_commands.json is not supported.')
return
}
Copy link
Member

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.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

some nits
@richard1122 richard1122 merged commit 514f86a into main Oct 25, 2021
@richard1122 richard1122 deleted the linyhe/cmakejs branch October 25, 2021 07:08
richard1122 added a commit that referenced this pull request Oct 25, 2021
richard1122 added a commit that referenced this pull request Oct 25, 2021
richard1122 added a commit to richard1122/gnls that referenced this pull request Dec 26, 2022
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants