-
Notifications
You must be signed in to change notification settings - Fork 105
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
helper to generate / update FFI cdecls #1904
Conversation
Cute, though I'm not entirely sure what to think about what amounts to duplicating https://github.com/koreader/ffi-cdecl/ |
That's what I started with. But on the meson branch, with all the nice pkg-config entries, I wanted something more convenient to use. Plus support for newer GCCs. |
Wouldn't look so bad if we could pull in On the upside, that made me realize that I managed to miss the fact that you fixed the GCC 13 enum issue last summer ;p. (i.e., https://github.com/koreader/ffi-cdecl/ needs to bump its deps, too). |
ee8c0a0
to
b4c8cee
Compare
OK, updated to use koreader/ffi-cdecl. With support for cross-compilers too. |
b4c8cee
to
3c2e056
Compare
After compiling base, use `make ffi-cdecl` to install everything needed to staging, including a small helper script. Example use: ``` ./build/x86_64-pc-linux-gnu/staging/bin/ffi-cdecl -I . -d lept ffi-cdecl/leptonica_cdecl.c ```
3c2e056
to
40790a3
Compare
koreader/koreader-base#1894 koreader/koreader-base#1908 koreader/koreader-base#1909 koreader/koreader-base#1904 koreader/koreader-base#1910 koreader/koreader-base#1911 koreader/koreader-base#1912 koreader/koreader-base#1901 koreader/koreader-base#1913 koreader/koreader-base#1680 koreader/koreader-base#1915 koreader/koreader-base#1916 koreader/koreader-base#1914
koreader/koreader-base#1894 koreader/koreader-base#1908 koreader/koreader-base#1909 koreader/koreader-base#1904 koreader/koreader-base#1910 koreader/koreader-base#1911 koreader/koreader-base#1912 koreader/koreader-base#1901 koreader/koreader-base#1913 koreader/koreader-base#1680 koreader/koreader-base#1915 koreader/koreader-base#1916 koreader/koreader-base#1914
Only for native emulator builds with GCC: after compiling base, use
make gcc-lua-cdecl
to compile and install to staging a small helper script and everything needed to run it. Example use:This change is