Beispiel #1
0
def generate(env):
    """Add the ngdbuild builder to the environment"""
    env["NGD_COMMAND"] = _detect(env)

    config = utils.read_config(env)
    ngd_utils.create_ngd_dir(config)
    ngd_file = ngd_utils.get_ngd_filename(config)
    flag_string = ngd_utils.get_build_flags_string(config)
    #print "Command string:"
    #print "\t%s %s %s %s" % (str(_detect(env)), flag_string, "in_file", ngd_file)
    env.SetDefault(
        NGD_OUTFILE=ngd_utils.get_ngd_filename(config),
        NGD_FLAGSTRING=ngd_utils.get_build_flags_string(config),
        NGD_COM='$NGD_COMMAND $NGD_FLAGSTRING $NGD_SOURCES $NGD_TARGETS')
    #env['BUILDER']['NGD'] = _ngd_builder
    env.AddMethod(NGD, 'ngd')
    return None
def generate(env):
    """Add the ngdbuild builder to the environment"""
    env["NGD_COMMAND"] = _detect(env)

    config = utils.read_config(env)
    ngd_utils.create_ngd_dir(config)
    ngd_file = ngd_utils.get_ngd_filename(config)
    flag_string = ngd_utils.get_build_flags_string(config)
    #print "Command string:"
    #print "\t%s %s %s %s" % (str(_detect(env)), flag_string, "in_file", ngd_file)
    env.SetDefault(
        NGD_OUTFILE = ngd_utils.get_ngd_filename(config),
        NGD_FLAGSTRING = ngd_utils.get_build_flags_string(config),
        NGD_COM = '$NGD_COMMAND $NGD_FLAGSTRING $NGD_SOURCES $NGD_TARGETS'
    )
    #env['BUILDER']['NGD'] = _ngd_builder
    env.AddMethod(NGD, 'ngd')
    return None
 def test_create_ngd_dir(self):
     config = self.config
     ngd_dir = ngd_utils.create_ngd_dir(config)
     #print "ngd dir: %s" % ngd_dir
     ngd_dir = ngd_utils.get_ngd_dir(config)