build.comake.py

来自「一个Windows下的Linux专用虚拟机」· Python 代码 · 共 43 行

PY
43
字号
def script_cmdline(scripter, tool_run_inf):    inputs = tool_run_inf.target.get_actual_inputs()    command_line = ((        "%s -O coff -I %s %s -o %s"        ) %    (scripter.get_cross_build_tool('windres', tool_run_inf),     current_dirname,     inputs[0].pathname,     tool_run_inf.target.pathname,))    return command_linetargets['daemon.res'] = Target(    tool = Script(script_cmdline),    inputs = [       Input('daemon.rc'),       Input('resources_def.inc'),    ],)targets['colinux.res'] = Target(    tool = Script(script_cmdline),    inputs = [       Input('colinux.rc'),       Input('resources_def.inc'),    ],)def script_cmdline(scripter, tool_run_inf):    command_line = '%s %s %s' % (        tool_run_inf.target.inputs[0].pathname,        tool_run_inf.target.inputs[1].pathname,        tool_run_inf.target.pathname)    return command_linetargets['resources_def.inc'] = Target(    tool = Script(script_cmdline),    inputs = [       Input('resources_def.sh'),       Input('src/colinux/VERSION', root_relative=True),       Input('bin/build-common.sh', root_relative=True),    ])

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?