Skip to content
This repository has been archived by the owner on Jun 2, 2019. It is now read-only.
Manu Evans edited this page Jun 6, 2015 · 2 revisions

Premake Extension to support the D language

Features

  • Support actions: gmake, vs20xx (VisualD), monodevelop (Mono-D)
  • Support all compilers; DMD, LDC, GDC
  • Support combined and separate compilation

Usage

Simply add:

language "D"

to your project definition and populate with .d files.

APIs

D language APIs Brief
debugconstants Declare debug identifiers
debuglevel Declare debug level
docdir Output dir for ddoc generation
docname Filename for the ddoc output
flags CodeCoverage, Deprecated, Documentation, GenerateHeader, GenerateJSON, GenerateMap, NoBoundsCheck, Profile, Quiet, RetainPaths, SeparateCompilation, SymbolsLikeC, UnitTest, Verbose
headerdir Output dir for interface file generation
headername Filename for the interface (.di) file
versionconstants   Declare version identifiers
versionlevel Declare version level

Example

The contents of your premake5.lua file would be:

solution "MySolution"
    configurations { "release", "debug" }

    project "MyDProject"
        kind "ConsoleApp"
        language "D"
        files { "src/main.d", "src/extra.d" }
Clone this wiki locally