Commit Graph
23 Commits
Author SHA1 Message Date
Ole André Vadla Ravnås f4583cbbcf Fix module resolution when not built from source
Turns out the package.json generated inside our build directory confused
the module root detection in the `bindings` package. This means that our
search path was actually wrong, and relied on this being misdetected.
2025-05-08 22:39:57 +02:00
Ole André Vadla Ravnås 6196e10953 Revert back to Node.js v24 headers 2025-05-08 20:50:48 +02:00
Ole André Vadla Ravnås 2d0b905a1f Never use local Node.js headers
To avoid surprises, such as conflicts when cross-compiling.
2025-05-08 19:52:49 +02:00
Ole André Vadla Ravnås a0d1ac6d08 Use Node.js v16 headers to fix availability on x86
We could probably use the same headers on all OSes/architectures though.
2025-05-08 19:48:27 +02:00
Ole André Vadla Ravnås c806acbf9a Fix cross-runtime portability
Finally ditching the Meson options to pick runtime and target, as that
is a thing of the past now that we've moved to Node-API.
2025-05-08 16:59:57 +02:00
Ole André Vadla RavnåsandHåvard Sørbø e2ffd0aa6c Auto-generate Node-API bindings from .gir
Which means API changes in frida-core are instantly reflected, with only
customizations needing tweaking, if applicable.

And, since we now target Node-API there will now only be one prebuilt
binary per OS/ABI.

Co-authored-by: Håvard Sørbø <[email protected]>
2025-05-08 10:05:20 +02:00
Ole André Vadla Ravnås 5fd377b5f4 meson: Support node-abi post-ESM 2025-03-13 17:17:03 +00:00
Ole André Vadla Ravnås 6fc55e45e2 meson: Emit a stripped prebuild when configured to strip 2024-05-31 22:18:50 +02:00
Ole André Vadla Ravnås 3f505e3419 meson: Refactor scripts
- Add more type annotations.
- Improve naming.
2024-04-28 10:39:52 +02:00
Ole André Vadla Ravnås 98355a748b meson: Fix .lib redaction for Windows/x86 2024-04-28 08:44:05 +02:00
Ole André Vadla Ravnås 2bd052b366 meson: Fix .lib fetching for Windows/x86 2024-04-26 23:25:37 +02:00
Ole André Vadla Ravnås e619b53d76 detect-version: Fix releng logic when subproject 2024-04-24 11:14:27 +02:00
Ole André Vadla Ravnås a0be6d937f meson: Fix version property of the installed package.json 2024-04-23 13:48:19 +02:00
Ole André Vadla Ravnås 025b422cfe meson: Rework the script execution logic
Using executable scripts with shebang is risky on UNIX, where python3
may not be present. Instead, use find_program('python3'), which Meson
provides a fallback for if it cannot find it in the environment.
2024-04-23 10:50:51 +02:00
Ole André Vadla Ravnås 8efaee9133 meson: Compute version from VCS tags when building from git 2024-04-22 23:39:33 +02:00
Ole André Vadla Ravnås 64a4daece7 meson: Simplify script execution
- Let Meson's find_program() do the heavy lifting.
- Make scripts executable.
- Add shebang to scripts.
2024-04-22 23:36:08 +02:00
Ole André Vadla Ravnås 833020bc7a build: Drop legacy build system in favor of Meson 2024-04-22 14:20:47 +02:00
Ole André Vadla Ravnås 6bd438fe71 meson: Disable V8 deprecation warnings
To avoid warnings from nan.
2024-03-14 15:24:13 +01:00
Ole André Vadla Ravnås 5a0eef7a74 meson: Lift to parity with legacy build system
- Import preprocessor definitions from config.gypi, to avoid ABI
  compatibility issues.
- Support compiling for specific runtimes and target versions.
- Add prebuild packaging logic.
- Wire up Windows support.
2024-03-04 23:57:26 +01:00
Ole André Vadla Ravnås 40d20b299f meson: Download Node.js headers if missing 2024-02-27 15:39:33 +01:00
Ole André Vadla Ravnås e91888dd1e build: Add Meson build system 2024-02-27 11:44:42 +01:00
Ole André Vadla Ravnås 31762b61db Revert install script back to the simple version
It was actually working on Windows, problem was elsewhere. Oops.
2017-01-23 18:08:43 +01:00
Ole André Vadla Ravnås 94bb870952 Actually fix the install script on Windows 2017-01-23 18:50:47 +01:00