prebuildify icon indicating copy to clipboard operation
prebuildify copied to clipboard

Support cmake-js

Open thegecko opened this issue 2 years ago • 3 comments

Fixes https://github.com/prebuild/prebuildify/issues/49

This PR adds support for driving cmake-js in the same way as prebuild by using the --backend flag. e.g.:

prebuildify --backend cmake-js -- --prefer-clang

thegecko avatar Dec 03 '23 19:12 thegecko

I prefer the generic approach of https://github.com/prebuild/prebuildify/pull/7.

vweevers avatar Dec 03 '23 19:12 vweevers

I prefer the generic approach of https://github.com/prebuild/prebuildify/pull/7.

AFAICT that removes all build support and instead the user needs to define their own external script command?

That approach is quite a breaking change as all users of prebuildify would need to all specify (the same) replacement build script externally. This feels opaque and not very user friendly.

If there were a lot of common build backends, I can see the benefit of that approach, but I'm not aware of anything outside of just node-gyp and cmake-js.

Another benefit of this approach is it aligns with the existing prebuild package.

thegecko avatar Dec 03 '23 20:12 thegecko

?

vaguue avatar Jul 12 '24 21:07 vaguue