| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Development.Shake.Language.C.Target.OSX
Description
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.
Synopsis
- 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
data DeveloperPath #
Base path of development tools on OSX.
Instances
| Show DeveloperPath # | |
Defined in Development.Shake.Language.C.Target.OSX Methods showsPrec :: Int -> DeveloperPath -> ShowS # show :: DeveloperPath -> String # showList :: [DeveloperPath] -> ShowS # | |
getSDKRoot :: Action DeveloperPath #
Get base path of development tools on OSX.
iOS simulator platform.
sdkVersion :: Int -> Int -> Version #
SDK version given major and minor version numbers.
Arguments
| :: 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] #
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 #
Specify the -mmacosx-version-min compiler flag.
iphoneos_version_min :: Version -> BuildFlags -> BuildFlags #
Specify the -miphoneos-version-min compiler flag.