configure

This file implements a configuration script that will setup the correct flags to link with libclang.

The script will try to automatically detect the location of libclang by searching through a number of preset library search paths for different platforms.

If the script fails to find libclang or fails to find the correct version, this script provides a flag,--llvm-config, which can be used by manually executing this script (./configure) and specifying the path to the LLVM configuration binary, llvm-config. The LLVM configuration binary will then be used to find the location of libclang.

The result of invoking this configuration script is a file, linker_flags.txt, which will be created. This file contains the necessary linker flags which will be read by the linker when building DStep.

This script is only intended to be used on the Posix platforms.

Members

Classes

Path
class Path

This class represents a path to a file, like a library or an executable.

Functions

main
void main(string[] args)

The main entry point of this script.

Mixin templates

BaseConfigurator
mixintemplate BaseConfigurator()

This mixin template contains shared logic to generate the actual configuration.

Structs

DefaultConfig
struct DefaultConfig

Default configuration and paths.

DynamicConfigurator
struct DynamicConfigurator

This struct contains the logic for generating the configuration for dynamic linking.

LibraryName
struct LibraryName

This struct contains the name and filename of a library.

Options
struct Options

The options of the application.

StaticConfigurator
struct StaticConfigurator

This struct contains the logic for generating the configuration for static linking.

Meta