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

Unified Diff: webkit/build/port/SConscript

Issue 16507: One more step towards working Mac SCons build.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 11 years, 12 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 | « third_party/zlib/zlib.scons ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/build/port/SConscript
===================================================================
--- webkit/build/port/SConscript (revision 7535)
+++ webkit/build/port/SConscript (working copy)
@@ -572,13 +572,15 @@
# TODO(sgk): make this a real pseudo-Builder
def BuildYacc(env, dir, name, file):
- env.Command(['$DERIVED_DIR/%s.cpp' % file,
- '$DERIVED_DIR/%s.h' % file],
- ['$PORT_DIR/%s/%s.y' % (dir, file)],
- ['$YACC -d -p %s ${SOURCES[0].posix} ' % name +
- '-o ${TARGET.posix}',
- Action(create_h_wrapper),
- Delete('${TARGETS[1]}pp')])
+ yacc_env = env.Clone()
+ yacc_env['YACC'] = env.Detect('bison') or 'yacc'
+ yacc_env.Command(['$DERIVED_DIR/%s.cpp' % file,
+ '$DERIVED_DIR/%s.h' % file],
+ ['$PORT_DIR/%s/%s.y' % (dir, file)],
+ ['$YACC -d -p %s ${SOURCES[0].posix} ' % name +
+ '-o ${TARGET.posix}',
+ Action(create_h_wrapper),
+ Delete('${TARGETS[1]}pp')])
BuildYacc(env, 'xml', 'xpathyy', 'XPathGrammar')
BuildYacc(env, 'css', 'cssyy', 'CSSGrammar')
« no previous file with comments | « third_party/zlib/zlib.scons ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698