Skip to content

Makefile

J.K. Hayslip edited this page Nov 30, 2019 · 1 revision

Makefile code breakdown:

Each tweak has a makefile. The makefile is what theos uses to compile.

If your familiar with iOS tweak development this will look really similar to you.

So let's begin!

OK each theos environment is setup different but you should be able to compile it just fine with the following settings.

ARCHS = arm64 - on tvOS there is only one architecture you build for in this case it's arm64 (for 64 bit devices) and no (arm64e or armv7).

TARGET = appletv:clang - make sure you target the appletv platform! if you don't your compiler (in this case theos) will throw a warning/error (for me it compiled fine but griped at me for targeting iphone).

SYSROOT = $(THEOS)/sdks/AppleTVOS12.4.sdk - This tells theos where the sdk is to compile for tvOS. Without this we can't target tvOS specific frameworks. more on that later! This SDK should already be patched if you downloaded it from nitoTV's GitHub

The rest of the makefile is pretty much similar to iOS. except that we have to include the substrate binary as a library that way the tweak loads.

Example: HideMyDockTV_LIBRARIES = substrate

Clone this wiki locally