-
Notifications
You must be signed in to change notification settings - Fork 80
Expand file tree
/
Copy pathMakefile
More file actions
95 lines (88 loc) · 4.13 KB
/
Copy pathMakefile
File metadata and controls
95 lines (88 loc) · 4.13 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
ARCHS = arm64
TARGET = iphone:clang:latest:16.0
THEOS_PACKAGE_SCHEME ?= rootless
include $(THEOS)/makefiles/common.mk
LIBRARY_NAME = YTKACE
YTKACE_FILES = \
Tweak/Entry.mm \
Tweak/Runtime/Hooking.mm \
Tweak/Runtime/Preferences.mm \
Tweak/Runtime/Localization.mm \
Tweak/UI/Assets.mm \
Tweak/UI/Notice.mm \
Tweak/UI/OverlayButtonHost.mm \
Tweak/Features/Ads/AdsHooks.mm \
Tweak/Features/Ads/PromoHooks.mm \
Tweak/Features/SponsorBlock/SponsorClient.mm \
Tweak/Features/SponsorBlock/SponsorPreferences.mm \
Tweak/Features/SponsorBlock/SponsorHooks.mm \
Tweak/Features/SponsorBlock/DeArrow.mm \
Tweak/Features/Downloads/StreamResolver.mm \
Tweak/Features/Downloads/SABRDownloader.mm \
Tweak/Features/Downloads/FFmpegMuxer.mm \
Tweak/Features/Downloads/YTKACEBackupManager.mm \
Tweak/Features/Downloads/YTKACEMediaImporter.mm \
Tweak/Features/Downloads/MediaArtwork.mm \
Tweak/Features/Downloads/DownloadLog.mm \
Tweak/Features/Downloads/DownloadProgressView.mm \
Tweak/Features/Downloads/DownloadCoordinator.mm \
Tweak/Features/Downloads/DownloadHooks.mm \
Tweak/Features/Downloads/YTKACEDownloadPlayerController.mm \
Tweak/Features/Downloads/YTKACEAudioPlayerController.mm \
Tweak/Features/Downloads/GlobalDownloadMiniPlayer.mm \
Tweak/Features/Appearance/OLEDHooks.mm \
Tweak/Features/Appearance/StartupHooks.mm \
Tweak/Features/Appearance/PremiumLogoHooks.mm \
Tweak/Features/Playback/BackgroundPlaybackHooks.mm \
Tweak/Features/Playback/PiPControls.mm \
Tweak/Features/Playback/PlaybackFixHooks.mm \
Tweak/Features/Playback/SpeedControls.mm \
Tweak/Features/Playback/LoopControls.mm \
Tweak/Features/Playback/SleepTimerControls.mm \
Tweak/Features/Playback/DoubleTapHooks.mm \
Tweak/Features/Playback/PlaybackWatchdog.cpp \
Tweak/Features/Playback/ProgressBarStyle.mm \
Tweak/Features/Streaming/StreamingHooks.mm \
Tweak/Features/Shorts/ShortsHooks.mm \
Tweak/Features/Shorts/ShortsSessionLimit.mm \
Tweak/Features/Compatibility/SideloadCompatibility.mm \
Tweak/Features/Compatibility/CastCompatibility.mm \
Tweak/Features/Onboarding/FirstLaunch.mm \
Tweak/Features/Navigation/TabBarHooks.mm \
Tweak/Features/Navigation/NavigationBehaviorHooks.mm \
Tweak/Features/Gestures/PlayerGestures.mm \
Tweak/Features/Interface/OverlayVisibilityHooks.mm \
Tweak/Features/Interface/ContentVisibilityHooks.mm \
Tweak/Features/Interface/MiscellaneousHooks.mm \
Tweak/Features/Interface/CopyCommentHooks.mm \
Tweak/Features/Interface/ProfilePictureViewer.mm \
Tweak/Features/Interface/PostImageSaver.mm \
Tweak/Features/Interface/NativeShareHooks.mm \
Tweak/Features/Interface/NavigationVisibility.mm \
Tweak/Settings/SettingsEntry.mm \
Tweak/Settings/NativeSettingsEntry.mm \
Tweak/Settings/YTKACERootOptionsController.mm \
Tweak/Settings/YTKACESettingsPages.mm \
Tweak/Settings/YTKACESettingsSearch.mm \
Tweak/Settings/YTKACETabEditorController.mm \
Tweak/Settings/YTKACEDownloadsController.mm
YTKACE_CFLAGS = -fobjc-arc -Wall -Wextra -Werror=return-type
YTKACE_CFLAGS += -DYTKACE_COMBINED_SABR=1
YTKACE_CFLAGS += -Wno-module-import-in-extern-c
YTKACE_CFLAGS += -I$(THEOS_PROJECT_DIR)/Vendor/FFmpeg/include
YTKACE_CCFLAGS = -std=c++17
YTKACE_FRAMEWORKS = Foundation UIKit AVFoundation AVKit AudioToolbox Photos QuartzCore MediaPlayer Security SystemConfiguration UniformTypeIdentifiers VideoToolbox CoreMedia
YTKACE_LIBRARIES = z
YTKACE_LDFLAGS = -Wl,-install_name,@rpath/YTKACE.dylib
YTKACE_LDFLAGS += $(THEOS_PROJECT_DIR)/Vendor/FFmpeg/lib/libavformat.a
YTKACE_LDFLAGS += $(THEOS_PROJECT_DIR)/Vendor/FFmpeg/lib/libavcodec.a
YTKACE_LDFLAGS += $(THEOS_PROJECT_DIR)/Vendor/FFmpeg/lib/libavutil.a
YTKACE_INSTALL_PATH = /Library/MobileSubstrate/DynamicLibraries
include $(THEOS_MAKE_PATH)/library.mk
after-all::
@mkdir -p "$(THEOS_PROJECT_DIR)/dist"
@cp "$(THEOS_OBJ_DIR)/YTKACE.dylib" "$(THEOS_PROJECT_DIR)/dist/YTKACE.dylib"
after-stage::
@mkdir -p "$(THEOS_STAGING_DIR)/Library/MobileSubstrate/DynamicLibraries"
@cp -R "$(THEOS_PROJECT_DIR)/Resources/YTKACE.bundle" "$(THEOS_STAGING_DIR)/Library/MobileSubstrate/DynamicLibraries/YTKACE.bundle"
@cp "$(THEOS_PROJECT_DIR)/YTKACE.plist" "$(THEOS_STAGING_DIR)/Library/MobileSubstrate/DynamicLibraries/YTKACE.plist"