OLD | NEW |
1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import os.path | 5 import os.path |
6 import re | 6 import re |
7 | 7 |
8 Import('env') | 8 Import('env') |
9 | 9 |
10 webcore = env.Dir('$CHROME_SRC_DIR/third_party/WebKit/WebCore') | 10 webcore = env.Dir('$CHROME_SRC_DIR/third_party/WebKit/WebCore') |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 # TODO(bradnelson): fix ugly hack with one include! | 118 # TODO(bradnelson): fix ugly hack with one include! |
119 BINDINGSCOM = '$PERL $_PERL_INCLUDE_FLAGS ' + \ | 119 BINDINGSCOM = '$PERL $_PERL_INCLUDE_FLAGS ' + \ |
120 '${SOURCES[1].posix} ' + \ | 120 '${SOURCES[1].posix} ' + \ |
121 '--defines "$FEATURE_DEFINES $BINDINGS_LANGUAGE" ' + \ | 121 '--defines "$FEATURE_DEFINES $BINDINGS_LANGUAGE" ' + \ |
122 '--generator $BINDINGS_GENERATOR_ARG ' + \ | 122 '--generator $BINDINGS_GENERATOR_ARG ' + \ |
123 '$_BINDINGS_INCLUDE_FLAGS ' + \ | 123 '$_BINDINGS_INCLUDE_FLAGS ' + \ |
124 '--outputdir ${TARGET.dir} ' + \ | 124 '--outputdir ${TARGET.dir} ' + \ |
125 '${SOURCES[0].posix}', | 125 '${SOURCES[0].posix}', |
126 ) | 126 ) |
127 | 127 |
128 if env['PLATFORM'] == 'mac': # Mac OS X | 128 if env.Bit('mac'): # Mac OS X |
129 env['BINDINGSPREFIX'] = 'DOM' | 129 env['BINDINGSPREFIX'] = 'DOM' |
130 env['BINDINGS_GENERATOR_ARG'] = 'ObjC' | 130 env['BINDINGS_GENERATOR_ARG'] = 'ObjC' |
131 env['BINDINGS_LANGUAGE'] = 'LANGUAGE_OBJECTIVE_C' | 131 env['BINDINGS_LANGUAGE'] = 'LANGUAGE_OBJECTIVE_C' |
132 env.Append(BINDINGS_INCLUDE_PATH = [ 'bindings/js' ]) | 132 env.Append(BINDINGS_INCLUDE_PATH = [ 'bindings/js' ]) |
133 elif False: | 133 elif False: |
134 env['BINDINGSPREFIX'] = 'JS' | 134 env['BINDINGSPREFIX'] = 'JS' |
135 env['BINDINGS_GENERATOR_ARG'] = 'JS' | 135 env['BINDINGS_GENERATOR_ARG'] = 'JS' |
136 env['BINDINGS_LANGUAGE'] = 'LANGUAGE_JAVASCRIPT' | 136 env['BINDINGS_LANGUAGE'] = 'LANGUAGE_JAVASCRIPT' |
137 env.Append(BINDINGS_INCLUDE_PATH = [ 'bindings/js' ]) | 137 env.Append(BINDINGS_INCLUDE_PATH = [ 'bindings/js' ]) |
138 elif True: | 138 elif True: |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 env.Command('$DERIVED_DIR/HTMLEntityNames.c', | 630 env.Command('$DERIVED_DIR/HTMLEntityNames.c', |
631 '$PORT_DIR/html/HTMLEntityNames.gperf', | 631 '$PORT_DIR/html/HTMLEntityNames.gperf', |
632 'gperf -a -L ANSI-C -C -G -c -o -t -k "*" -N findEntity ' + \ | 632 'gperf -a -L ANSI-C -C -G -c -o -t -k "*" -N findEntity ' + \ |
633 '-D -s 2 $SOURCE > $TARGET') | 633 '-D -s 2 $SOURCE > $TARGET') |
634 | 634 |
635 # CSS tokenizer | 635 # CSS tokenizer |
636 env.Command('$DERIVED_DIR/tokenizer.cpp', | 636 env.Command('$DERIVED_DIR/tokenizer.cpp', |
637 ['$PORT_DIR/css/tokenizer.flex', | 637 ['$PORT_DIR/css/tokenizer.flex', |
638 '$PORT_DIR/css/maketokenizer'], | 638 '$PORT_DIR/css/maketokenizer'], |
639 'flex --nowarn -t $SOURCE | perl ${SOURCES[1]} > $TARGET') | 639 'flex --nowarn -t $SOURCE | perl ${SOURCES[1]} > $TARGET') |
OLD | NEW |