dib-0.7.1: A simple, forward build system.

Safe HaskellNone
LanguageHaskell98

Dib.Builders.C

Description

A builder for C/C++ code.

Synopsis

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.

Constructors

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.

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.