mirror of
https://github.com/frida/frida-core.git
synced 2026-11-10 17:12:10 -10:00
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.
10 lines
294 B
Vala
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;
|
|
}
|