示例#1
0
def generate(env):
    """Add the map builder to the environment"""
    env["MAP_COMMAND"] = _detect(env)

    config = utils.read_config(env)
    map_utils.create_map_dir(config)
    map_file = map_utils.get_map_filename(config, absolute=True)
    flag_string = map_utils.get_build_flags_string(config)

    env.SetDefault(MAP_OUTFILE=map_file,
                   MAP_FLAGSTRING=flag_string,
                   MAP_COM="$MAP_COMMAND $MAP_FLAGSTRING $MAP_SOURCES")
    env.AddMethod(MAP, 'map')
    return None
def generate(env):
    """Add the map builder to the environment"""
    env["MAP_COMMAND"] = _detect(env)

    config = utils.read_config(env)
    map_utils.create_map_dir(config)
    map_file = map_utils.get_map_filename(config, absolute = True)
    flag_string = map_utils.get_build_flags_string(config)

    env.SetDefault(
        MAP_OUTFILE = map_file,
        MAP_FLAGSTRING = flag_string,
        MAP_COM = "$MAP_COMMAND $MAP_FLAGSTRING $MAP_SOURCES"
    )
    env.AddMethod(MAP, 'map')
    return None
 def test_create_map_dir(self):
     config = self.config
     map_dir = map_utils.create_map_dir(config)
     #print "map dir: %s" % map_dir
     map_dir = map_utils.get_map_dir(config)