-
Notifications
You must be signed in to change notification settings - Fork 49
/
Makefile
45 lines (40 loc) · 1.71 KB
/
Makefile
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
ARCHS := arm64
PACKAGE_FORMAT := ipa
TARGET := iphone:clang:latest:16.0
include $(THEOS)/makefiles/common.mk
APPLICATION_NAME = SparseBox
LIBRARY_NAME = libEMProxy libimobiledevice
# Link em_proxy separately as it has duplicated symbols with minimuxer
libEMProxy_FILES = lib/empty.swift
libEMProxy_LDFLAGS = -force_load lib/libem_proxy-ios.a -install_name @rpath/libEMProxy.dylib
libEMProxy_FRAMEWORKS = Security
libEMProxy_INSTALL_PATH = /Applications/$(APPLICATION_NAME).app/Frameworks
# libimobiledevice + minimuxer
libimobiledevice_FILES = idevicebackup2.c FindCacheDataOffset.m
libimobiledevice_CFLAGS = -Iinclude -fobjc-arc
libimobiledevice_LDFLAGS = \
-force_load lib/libimobiledevice-1.0.a \
-force_load lib/libimobiledevice-glue-1.0.a \
-force_load lib/libplist-2.0.a \
-force_load lib/libusbmuxd-2.0.a \
-force_load lib/libcrypto.a \
-force_load lib/libssl.a \
-force_load lib/libminimuxer-ios.a \
-Wl,-mllvm,--opaque-pointers \
-install_name @rpath/libimobiledevice.dylib
libimobiledevice_FRAMEWORKS = Foundation Security SystemConfiguration
libimobiledevice_INSTALL_PATH = /Applications/$(APPLICATION_NAME).app/Frameworks
SparseBox_FILES = \
include/minimuxer-helpers.swift \
include/minimuxer.swift \
include/em_proxy.swift \
include/SwiftBridgeCore.swift \
$(shell find Sources -type f -name "*.swift")
SparseBox_FRAMEWORKS = UIKit
SparseBox_CFLAGS = -fcommon -fobjc-arc
SparseBox_SWIFTFLAGS = -Iinclude -import-objc-header include/minimuxer-Bridging-Header.h
SparseBox_LDFLAGS = -L$(THEOS_OBJ_DIR) -rpath @executable_path/Frameworks
SparseBox_LIBRARIES = EMProxy imobiledevice
SparseBox_CODESIGN_FLAGS = -Sentitlements.plist
include $(THEOS_MAKE_PATH)/library.mk
include $(THEOS_MAKE_PATH)/application.mk