SCons recipe:

- Forward PATH environment variable on windows.

- Empty CPPPATH for windres.
This commit is contained in:
Sergey Popov 2008-05-31 12:07:06 +00:00
parent b9aa10b00a
commit 10f4842197
2 changed files with 2 additions and 1 deletions

View file

@ -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")

View file

@ -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 = []