-
Notifications
You must be signed in to change notification settings - Fork 931
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 1.24 KB
/
Makefile
File metadata and controls
28 lines (22 loc) · 1.24 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
TARGET := iphone:clang:latest:14.0
INSTALL_TARGET_PROCESSES = Spotify
ARCHS = arm64
include $(THEOS)/makefiles/common.mk
TWEAK_NAME = EeveeSpotify
EeveeSpotify_FILES = $(shell find Sources/EeveeSpotify -name '*.swift') $(shell find Sources/EeveeSpotifyC -name '*.m' -o -name '*.c' -o -name '*.mm' -o -name '*.cpp')
EeveeSpotify_SWIFTFLAGS = -ISources/EeveeSpotifyC/include -Osize
EeveeSpotify_EXTRA_FRAMEWORKS = SwiftProtobuf
EeveeSpotify_CFLAGS = -fobjc-arc -ISources/EeveeSpotifyC/include -Os
include $(THEOS_MAKE_PATH)/tweak.mk
internal-stage::
# Bundle SwiftProtobuf.framework directly into the package
# This allows the DEB to work without external SwiftProtobuf installation
mkdir -p $(THEOS_STAGING_DIR)/Library/Frameworks
cp -r $(THEOS)/lib/iphone/rootless/SwiftProtobuf.framework $(THEOS_STAGING_DIR)/Library/Frameworks/
# Legacy build step (no longer needed, kept for reference)
copy-swiftprotobuf:
mkdir -p swiftprotobuf && cd swiftprotobuf ;\
curl -OL https://github.com/whoeevee/EeveeSpotify/releases/download/swift2.0/org.swift.protobuf.swiftprotobuf_1.26.0_iphoneos-arm.deb ;\
ar -x org.swift.protobuf.swiftprotobuf_1.26.0_iphoneos-arm.deb ;\
tar -xvf data.tar.lzma ;\
cp -r Library/Frameworks/SwiftProtobuf.framework "${THEOS}/lib" ;\