forked from frida/frida
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.mk
47 lines (34 loc) · 1.16 KB
/
config.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
DESTDIR ?=
PREFIX ?= /usr
FRIDA := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
# Features ordered by binary footprint, from largest to smallest
FRIDA_V8 ?= auto
FRIDA_CONNECTIVITY ?= enabled
FRIDA_DATABASE ?= enabled
FRIDA_JAVA_BRIDGE ?= auto
FRIDA_OBJC_BRIDGE ?= auto
FRIDA_SWIFT_BRIDGE ?= auto
FRIDA_AGENT_EMULATED ?= yes
# Include jailbreak-specific integrations
FRIDA_JAILBREAK ?= auto
FRIDA_ASAN ?= no
ifeq ($(FRIDA_ASAN), yes)
FRIDA_FLAGS_COMMON := -Doptimization=1 -Db_sanitize=address
FRIDA_FLAGS_BOTTLE := -Doptimization=1 -Db_sanitize=address
else
FRIDA_FLAGS_COMMON := -Doptimization=s -Db_ndebug=true --strip
FRIDA_FLAGS_BOTTLE := -Doptimization=s -Db_ndebug=true --strip
endif
FRIDA_MAPPER := -Dmapper=auto
XCODE11 ?= /Applications/Xcode-11.7.app
PYTHON ?= $(shell which python3)
PYTHON_VERSION := $(shell $(PYTHON) -c 'import sys; v = sys.version_info; print("{0}.{1}".format(v[0], v[1]))')
PYTHON_NAME ?= python$(PYTHON_VERSION)
PYTHON_PREFIX ?=
PYTHON_INCDIR ?=
PYTHON3 ?= python3
NODE ?= $(shell which node)
NODE_BIN_DIR := $(shell dirname $(NODE) 2>/dev/null)
NPM ?= $(NODE_BIN_DIR)/npm
MESON ?= $(PYTHON3) $(FRIDA)/releng/meson/meson.py
tests ?=