Replies: 1 comment
-
|
I see a couple problems here:
Here are my suggested changes: modify_app/SConscript.py env = Environment(tools=["mingw"])
modify_node = env.Program(target='#/modify', source="modify.cpp")
Return("modify_node")SConstruct.py import os
env = Environment()
env['MODIFY'] = SConscript(["modify_app/SConscript"])
env['ENV']['PATH'] += f"{os.pathsep}." # so Command can execute 'modify'
env.Command(
"file.out",
["$MODIFY", "file.in"],
action = [
Copy("tempfile", "${SOURCES[1]}"),
"${SOURCES[0]} tempfile appendtext",
Copy("$TARGET", "tempfile")
]
) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a directory with the following contents:
Here are the contents of each file:
file.inSConstruct.pymodify/modify.cppmodify/SConscript.pyThe idea here is to compile
modify.cpptomodify.exe, copymodify.exeto the root folder and then run it againstfile.into generate a new file. However when I runsconstheSConstructexecutes theCopycommand first, and then naturally runs into a problem becausemodify.cpphas not been compiled yet:What am I doing wrong here and why doesn't SCons recognize that
Commandneedsmodify.exeto be able to run? ThanksBeta Was this translation helpful? Give feedback.
All reactions