af7b674265
As discussed numerous times, get rid of the submodule approach for core modules and just included the sources directly in the main repository. I have no idea how this will play with existing working copies. It might be necessary to [manually clear out the existing submodules](http://stackoverflow.com/questions/1260748) first.
45 lines
742 B
Lua
45 lines
742 B
Lua
--
|
|
-- d/d.lua
|
|
-- Define the D makefile action(s).
|
|
-- Copyright (c) 2013-2015 Andrew Gough, Manu Evans, and the Premake project
|
|
--
|
|
|
|
local p = premake
|
|
|
|
p.modules.d = {}
|
|
|
|
local m = p.modules.d
|
|
|
|
m._VERSION = p._VERSION
|
|
m.elements = {}
|
|
|
|
local api = p.api
|
|
|
|
|
|
--
|
|
-- Patch the project table to provide knowledge of D projects
|
|
--
|
|
function p.project.isd(prj)
|
|
return prj.language == premake.D
|
|
end
|
|
|
|
--
|
|
-- Patch the path table to provide knowledge of D file extenstions
|
|
--
|
|
function path.isdfile(fname)
|
|
return path.hasextension(fname, { ".d", ".di" })
|
|
end
|
|
|
|
|
|
--
|
|
-- Patch actions
|
|
--
|
|
include( "tools/dmd.lua" )
|
|
include( "tools/gdc.lua" )
|
|
include( "tools/ldc.lua" )
|
|
|
|
include( "actions/gmake.lua" )
|
|
include( "actions/vstudio.lua" )
|
|
|
|
return m
|