SCons recipe:
- Forward PATH environment variable on windows. - Empty CPPPATH for windres.
This commit is contained in:
parent
b9aa10b00a
commit
10f4842197
2 changed files with 2 additions and 1 deletions
|
@ -79,6 +79,7 @@ opts.AddOptions(
|
|||
env = Environment(tools=["tar", "gettext", "install"], options = opts, toolpath = ["scons"])
|
||||
if env["PLATFORM"] == "win32":
|
||||
env.Tool("mingw")
|
||||
env['ENV']['PATH'] = os.environ["PATH"]
|
||||
else:
|
||||
env.Tool("default")
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ binaries = ["wesnoth", "wesnoth_editor"]
|
|||
for bin in binaries:
|
||||
#icon = env.Command(bin + "-icon.ico", join("../../icons", bin + "-icon.png"), "$IM_CONVERT $SOURCE $TARGET")
|
||||
try:
|
||||
res = [env.RES(bin + ".rc")]
|
||||
res = [env.RES(bin + ".rc", CPPPATH=[])]
|
||||
#env.Depends(res, icon)
|
||||
except AttributeError:
|
||||
res = []
|
||||
|
|
Loading…
Add table
Reference in a new issue