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

Side by Side Diff: SConstruct

Issue 21504: Remove JSCRE (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« LICENSE ('K') | « LICENSE ('k') | src/SConscript » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2008 the V8 project authors. All rights reserved. 1 # Copyright 2008 the V8 project authors. All rights reserved.
2 # Redistribution and use in source and binary forms, with or without 2 # Redistribution and use in source and binary forms, with or without
3 # modification, are permitted provided that the following conditions are 3 # modification, are permitted provided that the following conditions are
4 # met: 4 # met:
5 # 5 #
6 # * Redistributions of source code must retain the above copyright 6 # * Redistributions of source code must retain the above copyright
7 # notice, this list of conditions and the following disclaimer. 7 # notice, this list of conditions and the following disclaimer.
8 # * Redistributions in binary form must reproduce the above 8 # * Redistributions in binary form must reproduce the above
9 # copyright notice, this list of conditions and the following 9 # copyright notice, this list of conditions and the following
10 # disclaimer in the documentation and/or other materials provided 10 # disclaimer in the documentation and/or other materials provided
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 }, 160 },
161 }, 161 },
162 'msvc': { 162 'msvc': {
163 'all': { 163 'all': {
164 'LIBS': ['winmm'] 164 'LIBS': ['winmm']
165 } 165 }
166 } 166 }
167 } 167 }
168 168
169 169
170 JSCRE_EXTRA_FLAGS = {
171 'gcc': {
172 'all': {
173 'CPPDEFINES': ['SUPPORT_UTF8', 'NO_RECURSE', 'SUPPORT_UCP'],
174 'WARNINGFLAGS': ['-w']
175 },
176 },
177 'msvc': {
178 'all': {
179 'CPPDEFINES': ['SUPPORT_UTF8', 'NO_RECURSE', 'SUPPORT_UCP'],
180 'WARNINGFLAGS': ['/W3', '/WX', '/wd4355', '/wd4800']
181 },
182 'library:shared': {
183 'CPPDEFINES': ['BUILDING_V8_SHARED']
184 }
185 }
186 }
187
188
189 DTOA_EXTRA_FLAGS = { 170 DTOA_EXTRA_FLAGS = {
190 'gcc': { 171 'gcc': {
191 'all': { 172 'all': {
192 'WARNINGFLAGS': ['-Werror'] 173 'WARNINGFLAGS': ['-Werror']
193 } 174 }
194 }, 175 },
195 'msvc': { 176 'msvc': {
196 'all': { 177 'all': {
197 'WARNINGFLAGS': ['/WX', '/wd4018', '/wd4244'] 178 'WARNINGFLAGS': ['/WX', '/wd4018', '/wd4244']
198 } 179 }
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 options = {'mode': mode} 538 options = {'mode': mode}
558 for option in SIMPLE_OPTIONS: 539 for option in SIMPLE_OPTIONS:
559 options[option] = env[option] 540 options[option] = env[option]
560 PostprocessOptions(options) 541 PostprocessOptions(options)
561 542
562 context = BuildContext(options, env_overrides, samples=SplitList(env['sample'] )) 543 context = BuildContext(options, env_overrides, samples=SplitList(env['sample'] ))
563 544
564 library_flags = context.AddRelevantFlags(os.environ, LIBRARY_FLAGS) 545 library_flags = context.AddRelevantFlags(os.environ, LIBRARY_FLAGS)
565 v8_flags = context.AddRelevantFlags(library_flags, V8_EXTRA_FLAGS) 546 v8_flags = context.AddRelevantFlags(library_flags, V8_EXTRA_FLAGS)
566 mksnapshot_flags = context.AddRelevantFlags(library_flags, MKSNAPSHOT_EXTRA_FL AGS) 547 mksnapshot_flags = context.AddRelevantFlags(library_flags, MKSNAPSHOT_EXTRA_FL AGS)
567 jscre_flags = context.AddRelevantFlags(library_flags, JSCRE_EXTRA_FLAGS)
568 dtoa_flags = context.AddRelevantFlags(library_flags, DTOA_EXTRA_FLAGS) 548 dtoa_flags = context.AddRelevantFlags(library_flags, DTOA_EXTRA_FLAGS)
569 cctest_flags = context.AddRelevantFlags(v8_flags, CCTEST_EXTRA_FLAGS) 549 cctest_flags = context.AddRelevantFlags(v8_flags, CCTEST_EXTRA_FLAGS)
570 sample_flags = context.AddRelevantFlags(os.environ, SAMPLE_FLAGS) 550 sample_flags = context.AddRelevantFlags(os.environ, SAMPLE_FLAGS)
571 d8_flags = context.AddRelevantFlags(library_flags, D8_FLAGS) 551 d8_flags = context.AddRelevantFlags(library_flags, D8_FLAGS)
572 552
573 context.flags = { 553 context.flags = {
574 'v8': v8_flags, 554 'v8': v8_flags,
575 'mksnapshot': mksnapshot_flags, 555 'mksnapshot': mksnapshot_flags,
576 'jscre': jscre_flags,
577 'dtoa': dtoa_flags, 556 'dtoa': dtoa_flags,
578 'cctest': cctest_flags, 557 'cctest': cctest_flags,
579 'sample': sample_flags, 558 'sample': sample_flags,
580 'd8': d8_flags 559 'd8': d8_flags
581 } 560 }
582 561
583 target_id = mode 562 target_id = mode
584 suffix = SUFFIXES[target_id] 563 suffix = SUFFIXES[target_id]
585 library_name = 'v8' + suffix 564 library_name = 'v8' + suffix
586 env['LIBRARY'] = library_name 565 env['LIBRARY'] = library_name
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 # version of scons. Also, there's a bug in some revisions that 658 # version of scons. Also, there's a bug in some revisions that
680 # doesn't allow this flag to be set, so we swallow any exceptions. 659 # doesn't allow this flag to be set, so we swallow any exceptions.
681 # Lovely. 660 # Lovely.
682 try: 661 try:
683 SetOption('warn', 'no-deprecated') 662 SetOption('warn', 'no-deprecated')
684 except: 663 except:
685 pass 664 pass
686 665
687 666
688 Build() 667 Build()
OLDNEW
« LICENSE ('K') | « LICENSE ('k') | src/SConscript » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698