Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(518)

Unified Diff: site_scons/site_tools/atlmfc_vc80.py

Issue 8117: Pulling in latest software construction toolkit. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « site_scons/site_init.py ('k') | site_scons/site_tools/collada_dom.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: site_scons/site_tools/atlmfc_vc80.py
===================================================================
--- site_scons/site_tools/atlmfc_vc80.py (revision 3849)
+++ site_scons/site_tools/atlmfc_vc80.py (working copy)
@@ -31,7 +31,7 @@
"""Windows ATL MFC for VC80 (Visual Studio 2005) tool for SCons.
Note that ATL MFC requires the commercial (non-free) version of Visual Studio
-2005. Using this in an open-source project thus limits the size of the
+2005. Using this in an open-source project thus limits the size of the
developer community to those with the commercial version.
"""
@@ -40,7 +40,7 @@
def _FindLocalInstall():
"""Returns the directory containing the local install of the tool.
-
+
Returns:
Path to tool (as a string), or None if not found.
"""
@@ -59,19 +59,22 @@
if not env.get('ATLMFC_VC80_DIR'):
env['ATLMFC_VC80_DIR'] = _FindLocalInstall()
+
+ env.Append(
+ LIBPATH=['$ATLMFC_VC80_DIR/lib'],
+ RCFLAGS=['/I"$ATLMFC_VC80_DIR/include"'],
+ CCFLAGS=['/I"$ATLMFC_VC80_DIR/include"'],
+ )
- env.AppendENVPath('INCLUDE', env.Dir('$ATLMFC_VC80_DIR/include').abspath)
- env.AppendENVPath('LIB', env.Dir('$ATLMFC_VC80_DIR/lib').abspath)
-
def exists(env):
"""Returns true if tool exists."""
# NOTE: SCons requires the use of this name, which fails gpylint.
-
+
# If directory explicitly specified, we exist
if env.get('ATLMFC_VC80_DIR'):
return 1
elif _FindLocalInstall():
return 1
else:
- return 0
+ return 0
« no previous file with comments | « site_scons/site_init.py ('k') | site_scons/site_tools/collada_dom.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698