Cabal-3.3.0.0: A framework for packaging Haskell software

Distribution.Simple.BuildPaths

Description

A bunch of dirs, paths and file names used for intermediate build steps.

Synopsis

# Documentation

This is the name of the directory in which the generated haddocks should be stored. It does not include the distdochtml prefix.

The directory to which generated haddock documentation should be written.

The directory in which we put auto-generated modules for EVERY component in the package.

The directory in which we put auto-generated modules for a particular component.

The name of the auto-generated Paths_* module associated with a package

Create a library name for a static library from a given name. Prepends lib and appends the static library extension (.a).

Create a library name for a shared library from a given name. Prepends lib and appends the -<compilerFlavour><compilerVersion> as well as the shared library extension.

Create a library name for a bundled shared library from a given name. This matches the naming convention for shared libraries as implemented in GHC's packageHsLibs function in the Packages module. If the given name is prefixed with HS, then this prepends lib and appends the compiler flavour/version and shared library extension e.g.: "HSrts-1.0" -> "libHSrts-1.0-ghc8.7.20190109.so" Otherwise the given name should be prefixed with C, then this strips the C, prepends lib and appends the shared library extension e.g.: Cffi -> "libffi.so"

Default extension for executable files on the current platform. (typically "" on Unix and "exe" on Windows or OS/2)

Extension for object files. For GHC the extension is "o".

Extension for dynamically linked (or shared) libraries (typically "so" on Unix and "dll" on Windows)

Extension for static libraries

TODO: Here, as well as in dllExtension, it's really the target OS that we're interested in, not the build OS.

# Source files & build directories

The directory where we put build results for an executable

The directory where we put build results for a foreign library