-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
40 lines (33 loc) · 1.45 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
TARGET = iphone:10.3:10.3
ARCHS = armv7 armv7s arm64
DEBUG = 0
GO_EASY_ON_ME = 1
PACKAGE_VERSION = $(THEOS_PACKAGE_BASE_VERSION)
TWEAK_NAME = SwipyFolders
SwipyFolders_FILES = SwipyFolders.xm
SwipyFolders_CFLAGS = -fno-objc-arc -Wno-deprecated-declarations
#SwipyFolders_PRIVATE_FRAMEWORKS = AppSupport
SwipyFolders_LDFlags += -Wl,-segalign,4000
SUBPROJECTS += swipyfoldersprefs
#So in order to use the simulator: export SIMULATOR=1 && make simulator
ifeq ($(SIMULATOR),1)
# i386 slice is required for 32-bit iOS Simulator (iPhone 5, etc.)
TARGET = simulator:clang
ARCHS = x86_64 i386
else
SwipyFolders_FRAMEWORKS = UIKit Foundation QuartzCore CoreGraphics
endif
include $(THEOS)/makefiles/common.mk
include $(THEOS_MAKE_PATH)/tweak.mk
include $(THEOS_MAKE_PATH)/aggregate.mk
simulator::
@make
@echo Copying files to simject directory
@cp $(THEOS_OBJ_DIR)/*.dylib /opt/simject
@cp *.plist /opt/simject
@find /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ *.simruntime/Contents/Resources/RuntimeRoot/Library/PreferenceLoader/Preferences -type d -print0 | sudo xargs -0 -n 1 cp -v $(PWD)/swipyfoldersprefs/entry.plist
@find /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS\ *.simruntime/Contents/Resources/RuntimeRoot/Library/PreferenceBundles -type d -print0 | sudo xargs -0 -n 1 cp -vR $(THEOS_OBJ_DIR)/SwipyFoldersPrefs.bundle
@echo Respringing simulator…
@~/git/simject/bin/respring_simulator
after-install::
install.exec "killall -9 SpringBoard"