Theos

A cross-platform build system for creating iOS, macOS, Linux, and Windows programs.

Variables

Theos utilizes a lengthy list of variables to pass information through its Makefile system and to the relevant tools.

The naming convention is as follows:

  • Internal/Private
    • Prefixed by an underscore (“_”)
    • Reassigned in legacy.mk
  • External/Overridable
    • See below.

The various public (i.e., configurable) variable types are as follows:

  • Project Variables
    • Prefixed by current project instance.
      • Tied to a particular project instance.
        • Example: XXX_FILES
  • Local Variables
    • Named solely according to their purpose.
      • Not tied to any particular project instance and can be set either in the toplevel Makefile or in the environment.
        • Example: ADDITIONAL_CFLAGS
  • System Variables
    • Prefixed by THEOS.
      • These variables are listed for use in toplevel Makefiles, but can be modified if desired.
        • Example: THEOS_BUILD_DIR
  • System Constants
    • Prefixed by THEOS.
      • These constants are listed for use in toplevel Makefiles.
        • Example: THEOS_BIN_PATH

Project Variables

Note: “XXX” = $(THEOS_CURRENT_INSTANCE)

  • project-type_NAME (str)
    • Your project’s name
  • XXX_INSTALL_PATH (str)
    • File path where you’d like to install the final product (e.g., app, tool, library, framework, etc)
  • XXX_INSTALL (bool)
    • Skip installing an instance to $(THEOS_STAGING_DIR) (default: 1)
      • Useful if generating temporary content used later in compilation or as part of the staged result
    • Applies to tools, tweaks, xcodeprojs, bundles, and libraries
  • XXX_CFLAGS (str)
    • Flags to pass to compiler
    • Space-separated list
  • XXX_CCFLAGS (str)
    • Flags to pass to compiler
    • Space-separated list
  • XXX_OBJCFLAGS (str)
    • Flags to pass to compiler
    • Space-separated list
  • XXX_OBJCCFLAGS (str)
    • Flags to pass to compiler
    • Space-separated list
  • XXX_SWIFTFLAGS (str)
    • Flags to pass to compiler
    • Space-separated list
  • XXX_ORIONFLAGS (str)
    • Flags to pass to Orion
    • Space-separated list
  • XXX_LOGOSFLAGS (str)
    • Flags to pass to Logos
    • Space-separated list
  • XXX_LDFLAGS (str)
    • Flags to pass to linker
    • Space-separated list
  • XXX_XCODEFLAGS (str)
    • Flags to pass to Xcode
    • Space-separated list
  • XXX_BUNDLE_RESOURCES (str)
    • File paths for the current bundle’s resources
    • Space-separated list or any other standard GNU Make convention
  • XXX_RESOURCE_FILES (str)
    • Alias for XXX_BUNDLE_RESOURCES
  • XXX_BUNDLE_RESOURCE_DIRS (str)
    • File paths for the current bundle’s resource directory (default: Resources)
      • Adding a Resources folder to your project will copy over the containing files to the bundle on the target device during install
    • Space-separated list or any other standard GNU Make convention
  • XXX_RESOURCE_DIRS (str)
    • Alias for XXX_BUNDLE_RESOURCE_DIRS
  • XXX_PUBLIC_HEADERS (str)
    • File paths for the current bundle’s public headers
    • Space-separated list or any other standard GNU Make convention
  • XXX_BUNDLE_RESOURCE_FILES (str)
    • File paths for the current bundle’s resource files
      • This can be used to copy a directory itself into the bundle, while XXX_BUNDLE_RESOURCE_DIRS copies the directory’s contents into the bundle
    • Space-separated list or any other standard GNU Make convention
  • XXX_BUNDLE_INSTALL_PATH (str)
    • File path where you’d like to install the final bundle product
  • XXX_BUNDLE_NAME (str)
    • Name of your bundle
  • XXX_BUNDLE_EXTENSION (str)
    • The file extension for your bundle
  • XXX_FRAMEWORKS (str)
    • Frameworks to link against
    • Space-separated list
  • XXX_PRIVATE_FRAMEWORKS (str)
    • Private frameworks to link against
    • Space-separated list
  • XXX_EXTRA_FRAMEWORKS (str)
    • Frameworks in $(THEOS_LIBRARY_PATH) that you’d like to link against
    • Space-separated list
  • XXX_LIBRARIES (str)
    • Libraries to link against
    • Space-separated list
  • XXX_LIBRARY_EXTENSION (str)
    • The file extension for your library/tweak
    • ”-“ for no extension
  • XXX_ARCHIVE_EXTENSION (str)
    • The file extension for your library
    • ”-“ for no extension
  • XXX_LINKAGE_TYPE (str)
    • Type of linking to use (default: $(THEOS_LINKAGE_TYPE))
      • Options are dynamic or static
  • XXX_WEAK_FRAMEWORKS (str)
    • Frameworks to weak link against
    • Space-separated list
  • XXX_WEAK_LIBRARIES (str)
    • Libraries to weak link against
    • Space-separated list
  • XXX_LOGOS_DEFAULT_GENERATOR (str)
    • The logos generator you’d like to use (default: MobileSubstrate)
    • See https://theos.dev/docs/logos-syntax
  • XXX_ORION_DEFAULT_BACKEND (str)
    • The Orion backend you’d like to use (default: Substrate)
    • See https://orion.theos.dev/Enums/Backends.html
  • XXX_FILES (str)
    • Files to compile
    • Space-separated list or any other standard GNU Make convention
  • XXX_SWIFT_FILES (str)
    • Swift files you’d like to compile
    • Space-separated list or any other standard GNU Make convention
  • XXX_XSWIFT_FILES (str)
    • Orion-based Swift files you’d like to compile
    • Space-separated list or any other standard GNU Make convention
  • XXX_OBJCC_FILES (str)
    • Objective-C++ files you’d like to compile
    • Space-separated list or any other standard GNU Make convention
  • XXX_OBJC_FILES (str)
    • Objective-C files you’d like to compile
    • Space-separated list or any other standard GNU Make convention
  • XXX_C_FILES (str)
    • C files you’d like to compile
    • Space-separated list or any other standard GNU Make convention
  • XXX_CC_FILES (str)
    • C++ files you’d like to compile
    • Space-separated list or any other standard GNU Make convention
  • XXX_LOGOS_FILES (str)
    • Logos files you’d like to compile
    • See https://theos.dev/docs/logos-file-extensions
    • Space-separated list or any other standard GNU Make convention
  • XXX_ARCHS (str)
    • Space-separated list of architectures to build for
  • XXX_IPHONE_ARCHS (str)
    • An alias for XXX_ARCHS
  • XXX_DYNAMIC_LIBRARY (bool)
    • Specifies whether or not the current bundle instance is to be built as a .dylib (default: 1)
  • XXX_ENABLE_BITCODE (bool) [OSX]
    • Toggle bitcode (default: 0)
  • XXX_XCODE_WORKSPACE (str) [OSX]
    • Workspace to build xcode project with
  • XXX_XCODE_PROJECT (str) [OSX]
    • Project to build with xcode
  • XXX_XCODE_SCHEME (str) [OSX]
    • Scheme to build xcode project with
  • XXX_APP_EXTENSION_SAFE_API (bool)
    • Treat bundle as application-extension when compiling (default: false)
  • XXX_APP_EXTENSION_SAFE (bool)
    • Treat bundle as application-extension when linking (default: false)
  • XXX_SWIFT_BRIDGING_HEADER (str)
    • Path to swift bridging header to use (default: XXX-Bridging-Header.h)
  • XXX_SWIFT_VERSION (num)
    • Swift version to use (default: 5)
  • XXX_USE_MODULES (bool)
    • Enable use of modules (default: 1)
      • Will add MODULESFLAGS to preprocessing flags

Local Variables

  • File.extension_CFLAGS (str)
    • Flags to pass to the compiler when compiling a specific file
    • Space-separated list
  • arch_CFLAGS (str)
    • Flags to pass to the compiler when compiling for a specific architecture
    • Space-separated list
  • arch_LDFLAGS (str)
    • Flags to pass to the linker when compiling for a specific architecture
    • Space-separated list
  • COLOR (bool)
    • Toggles pretty logs (default: 1)
  • ARCHS (str)
    • Space-separated list of architectures to build for
  • IPHONE_ARCHS (str)
    • An alias for ARCHS
  • DEBUG (bool)
    • Toggle including debug symbols (default: 1)
    • Will add +debug to the package name
  • FINALPACKAGE (bool)
    • Strips debug symbols (i.e., DEBUG=0 STRIP=1)
    • Removes incremental version from package name
    • Optimizes xml/plist files by converting to bplist
  • FOR_RELEASE (bool)
    • An alias for FINALPACKAGE
  • STRIP (bool)
    • Toggle stripping debug symbols (default: 0)
  • PACKAGE_FORMAT (str)
    • Type of package to build
    • deb, ipa, pkg, rpm, or none
  • TARGET (str)
    • Required build configuration items
    • Format platform:compiler:sdk_version:deployment_version
      • clang is the only supported compiler for Darwin targets
  • SDKVERSION (num)
    • Used to specify the version of the .sdk to use for the current target platform’s sysroot
      • e.g., ‘SDKVERSION = 14.0’ targeting ‘iphone’ => THEOS_SDKS_PATH/iPhoneOS14.0.sdk
    • Can be configured on an architecture-specific basis
      • e.g., SDKVERSION_arm64, SDKVERSION_arm64e, etc.
  • INCLUDE_SDKVERSION (str)
    • Used to specify the version of the .sdk to use for the current target platform’s isysroot
      • e.g., ‘INCLUDE_SDKVERSION = 14.0’ targeting ‘iphone’ => THEOS_SDKS_PATH/iPhoneOS14.0.sdk
    • Can be configured on an architecture-specific basis
      • e.g., INCLUDE_SDKVERSION_arm64, INCLUDE_SDKVERSIONarm64e, etc.
  • TARGET_OS_DEPLOYMENT_VERSION (num)
    • Used to specify the deployment version for your target platform
      • e.g., ‘TARGET_OS_DEPLOYMENT_VERSION = 14.0’ targeting ‘iphone’ => -target arm64-apple-ios14.0
    • Can be configured on an architecture-specific basis
      • e.g., TARGET_OS_DEPLOYMENT_VERSION_arm64, TARGET_OS_DEPLOYMENT_VERSION_arm64e, etc.
  • PREFIX (str)
    • Path to your toolchain bin
    • Often used on OSX to switch between xctoolchains
  • PACKAGE_VERSION (num)
    • Your package version
  • PACKAGE_BUILDNAME (str)
    • Additional string added to the package name (e.g., “debug” for DEBUG=1)
  • TARGET_INSTALL_REMOTE (bool)
    • Toggles whether the install target is remote or local
  • PREINSTALL_TARGET_PROCESSES (str)
    • Target processes to killall before package install
    • Space-separated list
  • INSTALL_TARGET_PROCESSES (str)
    • Target processes to killall after package install
    • Space-separated list
  • TWEAK_TARGET_PROCESS (str)
    • Target process to killall after your tweak installs
      • Appended to INSTALL_TARGET_PROCESSES
    • Space-separated list
  • DEBUGFLAG (str)
    • Debug flag passed to the linker (default: -ggdb)
  • SWIFT_DEBUGFLAG (str)
    • Debug flag passed to the linker (default: -g)
  • DEBUG.CFLAGS (str)
    • Debug flags passed to the compiler (default: -DDEBUG -O0)
    • Space-separated list
  • DEBUG.SWIFTFLAGS (str)
    • Debug flags passed to swift (default: -DDEBUG -Onone)
    • Space-separated list
  • DEBUG.LDFLAGS (str)
    • Debug flags passed to the linker (default: -O0)
    • Space-separated list
  • OPTFLAG (str)
    • Optimization level passed to compiler/linker (default: -Os)
  • SWIFT_OPTFLAG (str)
    • Optimization level passed to swift (default: -O -whole-module-optimization)
  • KEEP_LOGOS_INTERMEDIATES (bool)
    • Toggle keeping Logos-processed files in $(THEOS_OBJ_DIR) (default: 0)
  • GO_EASY_ON_ME (bool)
    • Toggle quieting all errors (default: 0)
    • Bad practice and deprecated for release builds
      • Migrate to Clang directives (e.g., -Wno- or #pragma clang diagnostic)
  • LEGACYFLAGS (str)
    • Flags passed to compiler and linker if building for legacy platforms
    • Space-separated list
      • Building for armv6, armv7, and/or armv7s (default: -Xlinker -segalign -Xlinker 4000)
      • Building for iOS < 9 (default: -Xlinker -no_data_const)
  • NEUTRAL_ARCH (str)
    • Fallback archs if ARCHS is empty and not set by the platform’s respective target makefile
    • Space-separated list
  • SYSROOT (str)
    • SYSROOT directory passed to linker
  • ISYSROOT (str)
    • Include SYSROOT passed to compiler
  • TARGET_PRIVATE_FRAMEWORK_PATH (str)
    • Private framework directory within specified SYSROOT
  • TARGET_PRIVATE_FRAMEWORK_INCLUDE_PATH (str)
    • Private framework directory within specified ISYSROOT
  • MODULESFLAGS (str)
    • Flags used to enable and make use of clang modules
    • Space-separated list
  • VERSIONFLAGS (str)
    • Platform-dependent target/version-min flags passed to compiler and linker
    • Space-separated list
  • SWIFTBINPATH (str)
    • Parent directory for swift binary (default: $THEOS/toolchain/swift/bin/)
  • TARGET_SWIFT_SUPPORT_BIN (str)
    • Target swift-support binary (default: $(THEOS_VENDOR_SWIFT_SUPPORT_PATH)/.theos_build/release)
  • TARGET_SWIFTC (str)
    • Target swiftc binary (default: swiftc)
  • TARGET_DSYMUTIL (str)
    • Target dsymutil binary (default: dsymutil/llvm-dsymutil)
  • TARGET_STRIP_FLAGS (str)
    • Strip flags to use (default: -x)
    • Space-separated list
  • TARGET_CC (str)
    • Target CC binary (default: clang/gcc)
  • TARGET_CXX (str)
    • Target CXX binary (default: clang++/g++)
  • TARGET_LD (str)
    • Target LD binary (default: TARGET_CXX)
  • TARGET_LIPO (str)
    • Target lipo binary (default: lipo)
  • TARGET_STRIP (str)
    • Target strip binary (default: strip)
  • TARGET_CODESIGN (str)
    • Target codesign binary (default: codesign/ldid)
  • TARGET_CODESIGN_FLAGS (str)
    • Target codesign flags (default: --sign 'Apple Development'/-S)
    • Space-separated list
  • TARGET_CODESIGN_ALLOCATE (str)
    • Target codesign_allocate binary (default: codesign_allocate)
  • TARGET_LIBTOOL (str)
    • Target libtool binary (default: libtool)
  • TARGET_ORION_BIN (str)
    • Target Orion binary (default: $(THEOS_VENDOR_ORION_PATH)/.theos_build/release)
  • TARGET_XCODEBUILD (str) [OSX]
    • Target xcodebuild binary (default: xcodebuild)
  • TARGET_XCPRETTY (str) [OSX]
    • Target xcpretty binary (default: xcpretty)
  • TARGET_EXE_EXT (str)
    • Target executable extenstion
  • TARGET_LIB_EXT (str)
    • Target dynamic/shared library extension
  • TARGET_AR_EXT (str)
    • Target static archive extension (default: .a)
  • TARGET_LDFLAGS_DYNAMICLIB (str)
    • Target linker flags for dynamic libraries
  • TARGET_CFLAGS_DYNAMICLIB (str)
    • Target compiler flags for dynamic libraries
  • CROSS_COMPILE (str)
    • Enables cross-compilation for TARGET_CC, TARGET_CXX, TARGET_LD, and TARGET_STRIP on compatible host/target platform pairs
    • Is the triple prefix for the target platform (will be prepended to the aforementioned binaries)
  • SDKBINPATH (str)
    • Toolchain bin path for target platform
  • WATCHOS_SIMULATOR_ROOT (str)
    • The root directory of the simulated OS
  • IPHONE_SIMULATOR_ROOT (str)
    • The root directory of the simulated OS
  • APPLETV_SIMULATOR_ROOT (str)
    • The root directory of the simulated OS
  • SUBPROJECTS (str)
    • Directory names of subprojects to build alongside the root project
    • Space-separated list
  • LOCAL_INSTALL_PATH (str)
    • File path where you’d like to install the final product (e.g., app, tool, library, framework, etc) (default: XXX_INSTALL_PATH)
  • LOGOS_DEFAULT_GENERATOR (str)
    • The logos generator you’d like to use (default: MobileSubstrate)
    • See https://theos.dev/docs/logos-syntax
  • ORION_DEFAULT_BACKEND (str)
    • The Orion backend you’d like to use (default: Substrate)
    • See https://orion.theos.dev/Enums/Backends.html
  • ADDITIONAL_CFLAGS (str)
    • Additional flags passed to CC for C code
    • Space-separated list
  • ADDITIONAL_CCFLAGS (str)
    • Additional flags passed to CXX for C++ code
    • Space-separated list
  • ADDITIONAL_OBJCFLAGS (str)
    • Additional flags passed to CC for ObjC code
    • Space-separated list
  • ADDITIONAL_OBJCCFLAGS (str)
    • Additional flags passed to CXX for ObjC++ code
    • Space-separated list
  • ADDITIONAL_SWIFTFLAGS (str)
    • Additional flags passed to swift for Swift code
    • Space-separated list
  • ADDITIONAL_LOGOSFLAGS (str)
    • Additional flags passed to logos for Logos code
    • Space-separated list
  • ADDITIONAL_LDFLAGS (str)
    • Additional flags passed to linker for linking
    • Space-separated list
  • ADDITIONAL_ORIONFLAGS (str)
    • Additional flags passed during an Orion build
    • Space-separated list
  • ADDITIONAL_XCODEFLAGS (str) [OSX]
    • Additional flags passed to xcodebuild
    • Space-separated list
  • ADDITIONAL_XCODEOPTS (str) [OSX]
    • Additional options passed to xcodebuild
    • Space-separated list
  • USE_DEPS (bool)
    • Toggle dependency tracking (i.e., makedeps) (default: 0)
    • Compiler writes headers to $(THEOS_OBJ_DIR)/*.Td
  • MDFLAGS (str)
    • Flags passed for makedeps
    • Space-separated list
  • MODULES (str)
    • Theos modules to enable
    • Space-separated list
      • Must be present in $(THEOS_MODULE_PATH)
  • LOCAL_BUNDLE_NAME (str)
    • Name for the current project instance’s bundle
  • LOCAL_BUNDLE_EXTENSION (str)
    • File extension for the current project instance’s bundle

System Variables

  • THEOS_PACKAGE_SCHEME (str)
    • The package scheme to build for (default: blank -- will build for rootful)
    • Other options include: “rootless”
  • THEOS_PACKAGE_INSTALL_PREFIX (str)
    • File path prefix to add to the install path (i.e., /var/mobile/thing.txt -> $(THEOS_PACKAGE_INSTALL_PREFIX)/var/mobile/thing.txt)
    • Dependent on THEOS_PACKAGE_SCHEME unless explicitly set (default: blank for rootful and "/var/jb/" for rootless)
    • Note that this is passed to the compiler and can thus be used in your code
  • THEOS_STAGING_DIR (str)
    • File path for directory to house stage bits and pieces (default: .theos/_/)
  • THEOS_STAGING_DIR_NAME (str)
    • Name for the staging directory (default: _)
  • THEOS_LAYOUT_DIR (str)
    • File path for directory to house items to move onto the target’s filesystem during install (default: $(THEOS_PROJECT_DIR)/layout/)
    • The containing directory structure is used as an install guide
      • Exception to this is $(THEOS_LAYOUT_DIR)/DEBIAN/ which is used to install Debian packaging related files
        • Such files include a control file, which will get added to the status file (i.e., /var/lib/dpkg/status) on-device, and maintainer scripts, which, after being run, will be placed in /var/lib/dpkg/info/.
  • THEOS_LAYOUT_DIR_NAME (str)
    • Name for the layout directory (default: layout)
  • THEOS_BUILD_DIR (str)
    • File path for directory to house bits and pieces relevant to building (default: ./)
  • THEOS_OBJ_DIR (str)
    • File path for directory to house object files (default: .theos/obj/)
  • THEOS_OBJ_DIR_NAME (str)
    • Name for the object directory (default: obj/$(THEOS_CURRENT_ARCH))
  • THEOS_PACKAGE_DIR (str)
    • File path for directory to house built packages (default: $(THEOS_BUILD_DIR)/packages/)
  • THEOS_PACKAGE_DIR_NAME (str)
    • Name for the packages directory (default: packages)
  • THEOS_PACKAGE_NAME (str)
    • Name of the current project as defined by Package: in the control file
  • THEOS_PACKAGE_ARCH (str)
    • Architecture of the current project as defined by Architecture: in the control file
  • THEOS_PACKAGE_BASE_VERSION (num)
    • Version of the current project as defined by Version: in the control file
  • THEOS_DEVICE_USER (str)
    • User to use when installing to target device (default: root)
  • THEOS_DEVICE_IP (num)
    • IP to use when installing to target device
  • THEOS_DEVICE_PORT (num)
    • Port to use when installing to target device
      • Left up to ssh to determine default or user to provide
  • THEOS_SUDO_COMMAND (str)
    • Target sudo binary (default: sudo)
  • THEOS_CURRENT_ARCH (str)
    • Current architecture being targeted in build process
  • THEOS_TARGET_NAME (str)
    • Lowercase name of the target platform
  • THEOS_SCHEMA (str)
    • Schema to build for “Release,” “Debug,” or “” (default: Debug)
      • This will adjust what variables are enabled/disabled in Theos’ internal configuration
  • THEOS_PLATFORM_NAME (str)
    • Lowercase name of the current host platform (default: $(shell uname))
  • THEOS_RSYNC_EXCLUDES (str)
    • Files/file extensions to exclude in the rsync copy commands used throughout the project (default: _MTN .git .svn .DS_Store ._*)
    • Space-separated list
  • THEOS_LINKAGE_TYPE (str)
    • Type of linking to use (default: dynamic)
      • Alternative is static
  • THEOS_PLATFORM_SDK_ROOT (str)
    • SDK path for a specific platform (default: $(shell xcode-select -print-path))
    • Can be configured on an architecture-specific basis
      • e.g., THEOS_PLATFORM_SDK_ROOT_arm64, THEOS_PLATFORM_SDK_ROOT_arm64e, etc.
  • THEOS_PLATFORM_DEB_COMPRESSION_LEVEL (num)
    • Compression level to use with dm.pl (Theos’ dpkg-deb drop-in)
    • Allowed levels are 0 to 9
      • Default is 9 for bzip2, 6 for others, and 0 is equivalent to cat
      • See https://github.com/theos/dm.pl#options
  • THEOS_PLATFORM_DEB_COMPRESSION_TYPE (str)
    • Compression format to use with dm.pl (Theos’ dpkg-deb drop-in)
    • Allowed formats are gzip, bzip2, lzma, xz and cat (no compression)
      • Default is lzma in order to maintain compatibility with Telesphoreo’s older dpkg which lacks xz support (which has since become the new standard)
      • See https://github.com/theos/dm.pl#options
  • THEOS_USE_PARALLEL_BUILDING (bool)
    • Toggles parallel building (default: 1 (when possible))
      • Will greatly speed up build time
      • Requires Make >= 4.0
  • THEOS_IGNORE_PARALLEL_BUILDING_NOTICE (str)
    • Toggles the notice to update Make so parallel builds can be used (default: blank)
  • THEOS_IS_TROUBLESHOOTING (bool)
    • Equivalent to passing troubleshoot to your make invocation (default: 0)
  • THEOS_BUILD_ORION (bool)
    • Toggles building Orion submodule (default: 1)
  • THEOS_GEN_COMPILE_COMMANDS (bool)
    • Toggles running gen-commands.pl to generate compile commands for a given arch
    • The “magic” behind make commands (default: 1)
  • THEOS_NO_SWIFT_CACHE (bool)
    • Toggles ignoring the Swift cache (default: 0)
  • THEOS_INCLUDE_PROJECT_DIR (bool)
    • Toggles passing THEOS_PROJECT_DIR as a Swift include directory (default: 1)
      • (i.e., -iquote)

System Constants

  • THEOS (str)
    • Root location for Theos and all of its files
      • This should be set in your shell profile
        • Either $HOME/theos/ or ~/theos/ or /opt/theos/
  • THEOS_BIN_PATH (str)
    • Location for tools provided by Theos (default: $THEOS/bin/)
  • THEOS_LIBRARY_PATH (str)
    • Location for the user to provide libraries for use with Theos (default: $THEOS/lib/)
  • THEOS_TARGET_LIBRARY_PATH (str)
    • Location for the user to provide libraries and frameworks for use with a specific target and Theos (default: $(THEOS_LIBRARY_PATH)/$(THEOS_TARGET_NAME)/)
  • THEOS_VENDOR_LIBRARY_PATH (str)
    • Location for the libraries and frameworks provided by Theos (default: $THEOS/vendor/lib/)
  • THEOS_INCLUDE_PATH (str)
    • Location for headers provided by Theos (default: $THEOS/include/)
  • THEOS_TARGET_INCLUDE_PATH (str)
    • Location for the user to provide headers for use with a specific target and Theos (default: $(THEOS_INCLUDE_PATH)/$(THEOS_TARGET_NAME)/)
  • THEOS_VENDOR_INCLUDE_PATH (str)
    • Location for the headers provided by Theos (default: $THEOS/vendor/include/)
  • THEOS_FALLBACK_INCLUDE_PATH (str)
    • Location that can be used to provide drop-in replacements for missing SDK headers (default: $(THEOS_INCLUDE_PATH)/_fallback/)
  • THEOS_MODULE_PATH (str)
    • Location for users to place modules in (default: $THEOS/mod/)
  • THEOS_VENDOR_ORION_PATH (str)
    • Location for Theos’s Orion submodule (default: $THEOS/vendor/orion)
  • THEOS_VENDOR_SWIFT_SUPPORT_PATH (str)
    • Location for Theos’s supporting Swift tools (default: $THEOS/vendor/swift-support)
  • THEOS_SDKS_PATH (str)
    • Location for SDKs provided by Theos (default: $THEOS/sdks/)
      • These SDKs should be patched (i.e., include private frameworks)
  • THEOS_MAKE_PATH (str)
    • Location for Makefiles that make up Theos (default: $THEOS/makefiles/)
  • THEOS_PROJECT_DIR (str)
    • Location of the current project (default: $(shell pwd))
  • THEOS_CURRENT_INSTANCE (str)
    • The name of the current project instance
      • Note that this is passed to the compiler and can thus be used in your code