Rules.py (scons-4.2.0) | : | Rules.py (SCons-4.3.0) | ||
---|---|---|---|---|
skipping to change at line 38 | skipping to change at line 38 | |||
return { | return { | |||
"outputs": get_outputs(node), | "outputs": get_outputs(node), | |||
"rule": get_rule(node, "INSTALL"), | "rule": get_rule(node, "INSTALL"), | |||
"inputs": get_inputs(node), | "inputs": get_inputs(node), | |||
"implicit": get_dependencies(node), | "implicit": get_dependencies(node), | |||
} | } | |||
def _mkdir_action_function(env, node): | def _mkdir_action_function(env, node): | |||
return { | return { | |||
"outputs": get_outputs(node), | "outputs": get_outputs(node), | |||
"rule": get_rule(node, "CMD"), | "rule": get_rule(node, "GENERATED_CMD"), | |||
# implicit explicitly omitted, we translate these so they can be | # implicit explicitly omitted, we translate these so they can be | |||
# used by anything that depends on these but commonly this is | # used by anything that depends on these but commonly this is | |||
# hit with a node that will depend on all of the fake | # hit with a node that will depend on all of the fake | |||
# srcnode's that SCons will never give us a rule for leading | # srcnode's that SCons will never give us a rule for leading | |||
# to an invalid ninja file. | # to an invalid ninja file. | |||
"variables": { | "variables": { | |||
# On Windows mkdir "-p" is always on | # On Windows mkdir "-p" is always on | |||
"cmd": "{mkdir}".format( | "cmd": "mkdir {args}".format( | |||
mkdir="mkdir $out & exit 0" if env["PLATFORM"] == "win32" else " | args = ' '.join(get_outputs(node)) + " & exit /b 0" if env["PLAT | |||
mkdir -p $out", | FORM"] == "win32" else "-p " + ' '.join(get_outputs(node)), | |||
), | ), | |||
}, | }, | |||
} | } | |||
def _copy_action_function(env, node): | def _copy_action_function(env, node): | |||
return { | return { | |||
"outputs": get_outputs(node), | "outputs": get_outputs(node), | |||
"inputs": get_inputs(node), | "inputs": get_inputs(node), | |||
"rule": get_rule(node, "CMD"), | "rule": get_rule(node, "CMD"), | |||
"variables": { | "variables": { | |||
"cmd": "$COPY $in $out", | "cmd": "$COPY", | |||
}, | }, | |||
} | } | |||
def _lib_symlink_action_function(_env, node): | def _lib_symlink_action_function(_env, node): | |||
"""Create shared object symlinks if any need to be created""" | """Create shared object symlinks if any need to be created""" | |||
symlinks = node.check_attributes("shliblinks") | symlinks = node.check_attributes("shliblinks") | |||
if not symlinks or symlinks is None: | if not symlinks or symlinks is None: | |||
return None | return None | |||
End of changes. 3 change blocks. | ||||
5 lines changed or deleted | 5 lines changed or added |