<filename>src/zenmake/zm/features/d.py
# coding=utf-8
#

"""
 Copyright (c) 2020, <NAME>. All rights reserved.
 license: BSD 3-Clause License, see LICENSE for more details.
"""

from zm import toolchains
from zm.waf import config_actions as configActions

toolchains.regToolchains('d', { 'default': ('ldc2', 'gdc', 'dmd'), })

_specificArgs = {
    'code-type': 'd',
    'compile-filename': 'test.d',
}

def _checkWrapper(func):

    def execute(checkArgs, params):
        checkArgs.update(_specificArgs)
        func(checkArgs, params)

    return execute

_confActionFuncs = {
    'check-code' : _checkWrapper(configActions.checkCode),
}

configActions.regActionFuncs('d', _confActionFuncs)

<filename>src/zenmake/zm/features/d.py
# coding=utf-8
#

"""
 Copyright (c) 2020, <NAME>. All rights reserved.
 license: BSD 3-Clause License, see LICENSE for more details.
"""

from zm import toolchains
from zm.waf import config_actions as configActions

toolchains.regToolchains('d', { 'default': ('ldc2', 'gdc', 'dmd'), })

_specificArgs = {
    'code-type': 'd',
    'compile-filename': 'test.d',
}

def _checkWrapper(func):

    def execute(checkArgs, params):
        checkArgs.update(_specificArgs)
        func(checkArgs, params)

    return execute

_confActionFuncs = {
    'check-code' : _checkWrapper(configActions.checkCode),
}

configActions.regActionFuncs('d', _confActionFuncs)

# coding=utf-8 # Copyright (c) 2020, <NAME>. All rights reserved.  license: BSD 3-Clause License, see LICENSE for more details.