Safe Haskell | None |
---|---|
Language | Haskell98 |
This module provides toolchain definitions and utilities for targeting OSX and iOS. See Development.Shake.Language.C.Rules for examples of how to use a target toolchain.
OSX is also a supported host operating system, see Development.Shake.Language.C.Host for examples of how to target the host.
- data DeveloperPath
- getSDKRoot :: Action DeveloperPath
- macOSX :: Platform
- iPhoneOS :: Platform
- iPhoneSimulator :: Platform
- target :: Platform -> Arch -> Target
- sdkVersion :: Int -> Int -> Version
- toolChain :: DeveloperPath -> Version -> Target -> ToolChain
- getPlatformVersions :: Platform -> Action [Version]
- macosx_version_min :: Version -> BuildFlags -> BuildFlags
- iphoneos_version_min :: Version -> BuildFlags -> BuildFlags
- universalBinary :: [FilePath] -> FilePath -> Action ()
Documentation
getSDKRoot :: Action DeveloperPath Source #
Get base path of development tools on OSX.
iPhoneSimulator :: Platform Source #
iOS simulator platform.
:: DeveloperPath | Developer tools base path, see |
-> Version | Target SDK version |
-> Target | Build target, see |
-> ToolChain | Resulting toolchain |
Construct an OSX or iOS toolchain.
getPlatformVersions :: Platform -> Action [Version] Source #
Return a list of available platform SDK versions.
For example in order to get the latest iOS SDK version:
maximum <$> getPlatformVersions iPhoneOS
macosx_version_min :: Version -> BuildFlags -> BuildFlags Source #
Specify the -mmacosx-version-min
compiler flag.
iphoneos_version_min :: Version -> BuildFlags -> BuildFlags Source #
Specify the -miphoneos-version-min
compiler flag.