From f582c82faf5e6b9297db94268ea94e8a51fb958b Mon Sep 17 00:00:00 2001 From: Subho Halder Date: Sun, 1 Aug 2021 22:27:15 +0530 Subject: [PATCH] Modified makefiles and added gitignore --- .gitignore | 1 + screendump/Makefile | 13 +++++++------ screendumpLowFrame/Makefile | 16 +++++++++------- screendumpLowFrame/hooks/Makefile | 10 +++++----- 4 files changed, 22 insertions(+), 18 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..996e30e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.theos \ No newline at end of file diff --git a/screendump/Makefile b/screendump/Makefile index 258f719..fb39fb4 100644 --- a/screendump/Makefile +++ b/screendump/Makefile @@ -1,17 +1,18 @@ -TARGET = iphone:11.2:10.0 +TARGET = iphone:14.4:10.0 include $(THEOS)/makefiles/common.mk TOOL_NAME = screendumpd -$(TOOL_NAME)_FILES = /mnt/d/codes/screendump/main.mm +export ARCHS = arm64 +$(TOOL_NAME)_ARCHS = arm64 +$(TOOL_NAME)_FILES = main.mm $(TOOL_NAME)_FRAMEWORKS := IOSurface IOKit $(TOOL_NAME)_PRIVATE_FRAMEWORKS := IOMobileFramebuffer IOSurface -$(TOOL_NAME)_OBJCFLAGS += -I/mnt/d/codes/screendump/vncbuild/include -Iinclude -$(TOOL_NAME)_LDFLAGS += -Wl,-segalign,4000 -L/mnt/d/codes/screendump/vncbuild/lib -lvncserver -lpng -llzo2 -ljpeg -lssl -lcrypto -lz +$(TOOL_NAME)_OBJCFLAGS += -Ivncbuild/include -Iinclude +$(TOOL_NAME)_LDFLAGS += -Wl,-segalign,4000 -Lvncbuild/lib -lvncserver -lpng -llzo2 -ljpeg -lssl -lcrypto -lz $(TOOL_NAME)_CFLAGS = -w $(TOOL_NAME)_CODESIGN_FLAGS = "-Sen.plist" $(TOOL_NAME)_INSTALL_PATH = /usr/libexec -export ARCHS = arm64 -$(TOOL_NAME)_ARCHS = arm64 + include $(THEOS_MAKE_PATH)/tool.mk diff --git a/screendumpLowFrame/Makefile b/screendumpLowFrame/Makefile index bd50f17..d21da17 100644 --- a/screendumpLowFrame/Makefile +++ b/screendumpLowFrame/Makefile @@ -1,17 +1,19 @@ -TARGET = iphone:11.2:10.0 +TARGET = iphone:14.4:10.0 include $(THEOS)/makefiles/common.mk TOOL_NAME = screendumpd -$(TOOL_NAME)_FILES = /mnt/d/codes/screendumpLowFrame/main.mm -$(TOOL_NAME)_FRAMEWORKS := IOSurface IOKit -$(TOOL_NAME)_PRIVATE_FRAMEWORKS := IOMobileFramebuffer IOSurface -$(TOOL_NAME)_OBJCFLAGS += -I/mnt/d/codes/screendumpLowFrame/vncbuild/include -Iinclude -$(TOOL_NAME)_LDFLAGS += -Wl,-segalign,4000 -L/mnt/d/codes/screendumpLowFrame/vncbuild/lib -lvncserver -lpng -llzo2 -ljpeg -lssl -lcrypto -lz -$(TOOL_NAME)_CFLAGS = -w +$(TOOL_NAME)_FILES = main.mm export ARCHS = arm64 $(TOOL_NAME)_ARCHS = arm64 +ARCHS = arm64 +$(TOOL_NAME)_VALID_ARCHS = arm64 +$(TOOL_NAME)_FRAMEWORKS := IOSurface IOKit +$(TOOL_NAME)_PRIVATE_FRAMEWORKS := IOMobileFramebuffer IOSurface +$(TOOL_NAME)_OBJCFLAGS += -Ivncbuild/include -Iinclude +$(TOOL_NAME)_LDFLAGS += -Wl,-segalign,4000 -Lvncbuild/lib -lvncserver -lpng -llzo2 -ljpeg -lssl -lcrypto -lz +$(TOOL_NAME)_CFLAGS = -w $(TOOL_NAME)_CODESIGN_FLAGS = "-Sen.plist" $(TOOL_NAME)_INSTALL_PATH = /usr/libexec diff --git a/screendumpLowFrame/hooks/Makefile b/screendumpLowFrame/hooks/Makefile index 0d780af..5834112 100644 --- a/screendumpLowFrame/hooks/Makefile +++ b/screendumpLowFrame/hooks/Makefile @@ -1,17 +1,17 @@ -TARGET = iphone:11.2:10.0 +TARGET = iphone:14.4:10.0 include $(THEOS)/makefiles/common.mk TWEAK_NAME = screendumpbb -$(TWEAK_NAME)_FILES = /mnt/d/codes/screendumpLowFrame/hooks/Tweak.xm +$(TWEAK_NAME)_FILES = Tweak.xm $(TWEAK_NAME)_FRAMEWORKS := IOSurface IOKit $(TWEAK_NAME)_PRIVATE_FRAMEWORKS := IOMobileFramebuffer IOSurface -ADDITIONAL_OBJCFLAGS += -I/mnt/d/codes/screendumpLowFrame/vncbuild/include -Iinclude +ADDITIONAL_OBJCFLAGS += -I../vncbuild/include -Iinclude ADDITIONAL_LDFLAGS += -Wl,-segalign,4000 ADDITIONAL_CFLAGS = -w -export ARCHS = arm64 arm64e -$(TWEAK_NAME)_ARCHS = arm64 arm64e +export ARCHS = arm64 +$(TWEAK_NAME)_ARCHS = arm64 include $(THEOS_MAKE_PATH)/tweak.mk