-
Notifications
You must be signed in to change notification settings - Fork 119
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
Meson support #761
Comments
I don't have much experience with it, but I fear the rabbit hole it would open, since others may want their build system of choice supported. |
Frida keeps a fork of bellard's qjs just to hold the meson.build and few extra patches. having that in qjsng will let other projects use it without patches or forks https://github.com/frida/quickjs |
I thought that it would be attractive to you as it could help to move forward with source code layout plans as mentioned here #133 |
We are keeping the current layout for now, so that doesn't change things. Ben also proposed we do amalgamated builds so it might end up just being 2 files. I think there would be no build system on that type of source release. Is it really not possible to keep the meson file in r2 while using quickjsng as a sub module? |
I've managed to add it via meson |
@satk0, a special |
@KaruroChori Oooh, Looks neat. However it requires having cmake installed ;/ Nevertheless, clever walk around ;) Btw, Interesting project :) |
I'm not strenuously opposed to meson support but amalgamated builds (#688) by and large obviate the need for it. |
Amalgamated builds would be crazy good idea in my opinion. Last time I tried to dig into |
I am not sure we are on the same page: an amalgamated build for quickjs would mean collecting all files that currently get linked into the library into a single file, preferably using a script. This would facilitate the inclusion of quickjs into other projects, regardless of the build system used. Splitting quickjs.c into smaller modules is a different topic, which is not currently planned. Given the power and memory available on current PCs and laptops, editing this file should not cause so much lagging. It does not on my system using qemacs, where load time with complete colorization from shell prompt takes less than 70 ms. |
OOh yeah we are not, thanks for explaining it to me 😅 |
Say you have a bunch of files you link into a library with a number of public APIs. |
|
Oh thanks a ton, how could you call such an operation, file concating or smth? I'm asking this cuz I'd like to search for such a library on github hah |
It's usually called "amalgamation". The first project that comes to mind that uses it is SQLite. |
Ooh, allright, thanks. Just a small update: we managed to add |
Good to hear! Is it ok to close this now? |
Sure, sorry for the chaos, I am just not so experienced in meson hah |
No worries! |
I think we can have one in wrapdb? |
In theory yes, but I have my hands full with tinycc at the moment :D. |
thanks. there is a old PR for origial quick-js and doesn't get merged yet, maybe helpful |
I send a partial patch at mesonbuild/wrapdb#1865 |
Hello again,
I tried to subproject qjs inside r2 but found out that there is no
meson.build
file implemented. Would be great if it was ;)Could I please take care of it?
The text was updated successfully, but these errors were encountered: