def generate(env): env["COREGEN_COMMAND"] = _detect(env) config = utils.read_config(env) coregen_utils.create_coregen_dir(config) coregen_utils.create_coregen_temp_dir(config) coregen_utils.create_project_file(config) project_path = coregen_utils.get_project_file(config, absolute = True) coregen_outfiles = coregen_utils.get_target_files(config) #Need to get targets env.SetDefault( COREGEN_OUTFILES = coregen_outfiles, COREGEN_PROJECT = project_path, COREGEN_COM = "$COREGEN_COMMAND -b $COREGEN_SCRIPT -p $COREGEN_PROJECT -r" ) env.AddMethod(COREGEN, "coregen") return None
def test_create_project_file(self): config = self.config coregen_utils.create_project_file(config)