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

feat!: Allow project to be installable #210

Merged
merged 3 commits into from
Jun 25, 2023

Conversation

phated
Copy link
Contributor

@phated phated commented Jun 15, 2023

This reworks the cmake build of the project to add install targets for uvwasi. This will make it possible for pkg-config or cmake build pipelines to discover globally installed uvwasi.

To install uvwasi, you'd run cmake --install out after you build.

I also removed the WITH_SYSTEM_LIBUV option because we should be using the globally installed libuv if it can be found. If people are very against this change, I can introduce a flag to disable this behavior.

I've tested this against a local branch of wasm-micro-runtime and it seems to be working. My plan is to add that build to CI once they accept my changes.

Closes #199

CMakeLists.txt Show resolved Hide resolved
@phated
Copy link
Contributor Author

phated commented Jun 15, 2023

I'm definitely no expert in this stuff, so happy to take any feedback.

Copy link
Collaborator

@cjihrig cjihrig left a comment

Choose a reason for hiding this comment

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

I'm definitely no expert in this stuff, so happy to take any feedback.

Same, but happy to help move this along. Nothing jumps out as obviously bad, the CI is passing, and Node doesn't use the cmake build, so LGTM.

CMakeLists.txt Show resolved Hide resolved
@phated phated force-pushed the phated/installable-library branch from bd440d9 to feddcbf Compare June 25, 2023 21:44
@phated phated merged commit 0496ff8 into nodejs:main Jun 25, 2023
@phated phated deleted the phated/installable-library branch June 25, 2023 21:49
mhdawson pushed a commit that referenced this pull request Jul 28, 2023
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.

Refactor build so that uvwasi can be used as a shared library
2 participants