Files
EeveeSpotifyReborn/Makefile
2024-07-25 03:02:36 +03:00

21 lines
878 B
Makefile

TARGET := iphone:clang:latest:14.0
INSTALL_TARGET_PROCESSES = Spotify
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
EeveeSpotify_EXTRA_FRAMEWORKS = SwiftProtobuf
EeveeSpotify_CFLAGS = -fobjc-arc -ISources/EeveeSpotifyC/include
include $(THEOS_MAKE_PATH)/tweak.mk
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" ;\