This repository has been archived by the owner on Jul 30, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
38 lines (30 loc) · 1.9 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
include theos/makefiles/common.mk
export TARGET=iphone:latest:5.0
export ARCHS = armv7
# use CLANG
TARGET_CC = xcrun --sdk iphoneos clang
TARGET_CXX = xcrun --sdk iphoneos clang++
SUBPROJECTS = AEPrefs customizer standard sbstoggles chatbot Extensions/aecmd
TWEAK_NAME = AssistantExtensions
AssistantExtensions_FILES = AEDevHelper.xm AEAssistantdMsgCenter.mm AEContext.mm AEExtension.mm AESpringBoardMsgCenter.mm AEStringAdditions.mm AESupport.mm SiriObjects.mm AEX.mm
AssistantExtensions_FILES += main.mm shared.mm systemcmds.mm
AssistantExtensions_FRAMEWORKS = Foundation UIKit CoreFoundation Accounts Twitter CoreLocation
AssistantExtensions_PRIVATE_FRAMEWORKS = AppSupport GraphicsServices AssistantUI SAObjects VoiceServices BulletinBoard AssistantServices
AssistantExtensions_LDFLAGS = -multiply_defined suppress -Llib -Fframeworks -dynamiclib -init _Initialize
#AssistantExtensions_LDFLAGS += -Xlinker -x -Xlinker -exported_symbol -Xlinker _Initialize
AssistantExtensions_LDFLAGS += -ObjC++ -fobjc-exceptions -fobjc-call-cxx-cdtors
AssistantExtensions_LDFLAGS += -lobjc -lsubstrate -lpthread -lpcre
AssistantExtensions_CFLAGS = -Os -funroll-loops -g -DSC_PRIVATE -fobjc-abi-version=2 -fno-exceptions -fobjc-exceptions -fobjc-call-cxx-cdtors -Iinclude
include $(THEOS_MAKE_PATH)/tweak.mk
include $(FW_MAKEDIR)/aggregate.mk
before-package:: $(THEOS_PACKAGE_DIR) copy-layout
copy-layout:
$(ECHO_NOTHING)mkdir -p "$(THEOS_STAGING_DIR)/DEBIAN"$(ECHO_END)
$(ECHO_NOTHING)cp layout/DEBIAN/postinst "$(THEOS_STAGING_DIR)/DEBIAN"$(ECHO_END)
$(ECHO_NOTHING)rsync -a --exclude=.svn layout/Library "$(THEOS_STAGING_DIR)/"$(ECHO_END)
$(ECHO_NOTHING)rsync -a --exclude=.svn layout/System "$(THEOS_STAGING_DIR)/"$(ECHO_END)
$(ECHO_NOTHING)mkdir -p "$(THEOS_STAGING_DIR)/usr/include"$(ECHO_END)
$(ECHO_NOTHING)cp SiriObjects.h "$(THEOS_STAGING_DIR)/usr/include/"$(ECHO_END)
distclean:
rm -rf *.deb | true
test: distclean package install