Files
frida-core/vapi/config.vapi
Ole André Vadla Ravnås 70e219dab5 base: Fix installed-asset path resolution
When frida-core is statically linked, the module containing
AssetLocation.detect() is the host executable itself. If that
binary lives under bin/ or sbin/, the derived asset path was
anchored at that directory rather than the configured libdir —
e.g. /usr/sbin/frida-1.0/... instead of /usr/lib/frida-1.0/...

Generalize the existing Windows-only bin -> lib redirect so it
also handles sbin, and resolve to the Meson-configured libdir
name (now exposed as Config.FRIDA_LIBDIR).

Also stop including the <arch> subdirectory on Darwin: the
default asset path template doesn't have one there because we
ship fat binaries, so the literal <arch> ended up in the final
path with nothing to substitute it.
2026-04-28 16:35:27 +02:00

10 lines
294 B
Vala

[CCode (lower_case_cprefix = "")]
namespace Config {
public const string FRIDA_PREFIX;
public const string FRIDA_LIBDIR;
public const string FRIDA_LIBDIR_NAME;
public const string FRIDA_HELPER_NAME;
public const string FRIDA_AGENT_NAME;
public const string FRIDA_COMPILER_BACKEND_NAME;
}