This repository has been archived by the owner on Jun 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Manu Evans edited this page Jun 6, 2015
·
2 revisions
Premake Extension to support the D language
- Support actions: gmake, vs20xx (VisualD), monodevelop (Mono-D)
- Support all compilers; DMD, LDC, GDC
- Support combined and separate compilation
Simply add:
language "D"
to your project definition and populate with .d files.
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 |
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" }