Safe Haskell | None |
---|---|
Language | Haskell2010 |
A builder for C/C++ code.
- data CTargetInfo = CTargetInfo Text Text Text BuildLocation Text Text Text Text Text Text Text Text Text Text Text [Text] [Text] [Text] [Text] Bool
- data BuildLocation
- makeCTarget :: CTargetInfo -> Target
- makeCleanTarget :: CTargetInfo -> Target
- makeBuildDirs :: CTargetInfo -> IO ()
- emptyConfig :: CTargetInfo
- defaultGCCConfig :: CTargetInfo
- defaultGXXConfig :: CTargetInfo
- defaultClangConfig :: CTargetInfo
Documentation
data CTargetInfo Source #
The record type that is used to pass configuration info for the C builder.
data BuildLocation Source #
The data type for specifying where built files end up.
InPlace | Specifies that object files will end up adjacent to their source files and the executable will be in the same directory as the dib.hs file. |
BuildDir Text | Specifies that the object files and executable will go in a certain directory. |
ObjAndBinDirs Text Text | Specifies that the object files will go in the first directory and the executable in the second directory. |
makeCTarget :: CTargetInfo -> Target Source #
Given a CTargetInfo
, produces a Target
makeCleanTarget :: CTargetInfo -> Target Source #
Given a CTargetInfo
, produces a Target
that will clean the project.
makeBuildDirs :: CTargetInfo -> IO () Source #
Given a CTargetInfo
, will make the directories required to build the project.
emptyConfig :: CTargetInfo Source #
An empty configuration.
defaultGCCConfig :: CTargetInfo Source #
A default configuration for gcc.
defaultGXXConfig :: CTargetInfo Source #
A default configuration for g++.
defaultClangConfig :: CTargetInfo Source #
A default configuration for clang.