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

Side by Side Diff: tools/gyp/v8.gyp

Issue 5716001: Add gyp target to build preparser as stand-alone library. (Closed)
Patch Set: Created 10 years 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
« no previous file with comments | « src/v8preparserdll-main.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2009 the V8 project authors. All rights reserved. 1 # Copyright 2009 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 12 matching lines...) Expand all
23 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 23 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 27
28 { 28 {
29 'variables': { 29 'variables': {
30 'msvs_use_common_release': 0, 30 'msvs_use_common_release': 0,
31 'gcc_version%': 'unknown', 31 'gcc_version%': 'unknown',
32 'v8_target_arch%': '<(target_arch)', 32 'v8_target_arch%': '<(target_arch)',
33 'host_arch%': '<(target_arch)',
Søren Thygesen Gjesse 2010/12/09 14:08:00 I don't think we should set host_arch here it shou
Lasse Reichstein 2010/12/13 09:19:49 Removed.
33 'v8_use_snapshot%': 'true', 34 'v8_use_snapshot%': 'true',
34 }, 35 },
35 'target_defaults': { 36 'target_defaults': {
36 'defines': [ 37 'defines': [
37 'ENABLE_LOGGING_AND_PROFILING', 38 'ENABLE_LOGGING_AND_PROFILING',
38 'ENABLE_DEBUGGER_SUPPORT', 39 'ENABLE_DEBUGGER_SUPPORT',
39 'ENABLE_VMSTATE_TRACKING', 40 'ENABLE_VMSTATE_TRACKING',
40 ], 41 ],
41 'conditions': [ 42 'conditions': [
42 ['OS!="mac"', { 43 ['OS!="mac"', {
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 'type': 'none', 190 'type': 'none',
190 }], 191 }],
191 ], 192 ],
192 'direct_dependent_settings': { 193 'direct_dependent_settings': {
193 'include_dirs': [ 194 'include_dirs': [
194 '../../include', 195 '../../include',
195 ], 196 ],
196 }, 197 },
197 }, 198 },
198 { 199 {
200 'target_name': 'v8-preparser',
Søren Thygesen Gjesse 2010/12/09 14:08:00 - -> _, other targets use underscore.
Lasse Reichstein 2010/12/13 09:19:49 Done.
201 'include_dirs': [
202 '../../include',
203 '../../src',
204 ],
205 'sources': [
206 '../../src/allocation.cc',
207 '../../src/hashmap.cc',
208 '../../src/preparse-data.cc',
209 '../../src/preparser.cc',
210 '../../src/preparser-api.cc',
211 '../../src/scanner-base.cc',
212 '../../src/token.cc',
213 '../../src/unicode.cc',
214 ],
215 'conditions': [
216 ['OS=="win" and component=="shared_library"', {
217 'sources': [ '../../src/v8preparserdll-main.cc' ],
218 'defines': [ 'BUILDING_V8_SHARED' ],
219 'direct_dependent_settings': {
220 'defines': [ 'USING_V8_SHARED' ]
221 },
222 'type': '<(component)',
223 }],
224 ['OS!="win"', {
225 'type': '<(library)'
226 }],
227 ['OS=="linux" and library=="shared_library"', {
Søren Thygesen Gjesse 2010/12/09 14:08:00 I also think -fPIC should be provided by the consu
Lasse Reichstein 2010/12/13 09:19:49 Done.
228 'cflags': ['-fPIC']
229 }],
230 ['v8_target_arch!="x64" and host_arch=="x64"', {
Søren Thygesen Gjesse 2010/12/09 14:08:00 Does the preparser actually care about the v8_targ
Lasse Reichstein 2010/12/13 09:19:49 Removed.
231 'cflags': ['-m32'],
232 'ldflags': ['-m32'],
233 }],
234 ]
235 },
236 {
199 'target_name': 'v8_snapshot', 237 'target_name': 'v8_snapshot',
200 'type': '<(library)', 238 'type': '<(library)',
201 'conditions': [ 239 'conditions': [
202 ['OS=="win" and component=="shared_library"', { 240 ['OS=="win" and component=="shared_library"', {
203 'defines': [ 241 'defines': [
204 'BUILDING_V8_SHARED', 242 'BUILDING_V8_SHARED',
205 ], 243 ],
206 }], 244 }],
207 ], 245 ],
208 'dependencies': [ 246 'dependencies': [
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 ], 814 ],
777 'conditions': [ 815 'conditions': [
778 ['OS=="win"', { 816 ['OS=="win"', {
779 # This could be gotten by not setting chromium_code, if that's OK. 817 # This could be gotten by not setting chromium_code, if that's OK.
780 'defines': ['_CRT_SECURE_NO_WARNINGS'], 818 'defines': ['_CRT_SECURE_NO_WARNINGS'],
781 }], 819 }],
782 ], 820 ],
783 }, 821 },
784 ], 822 ],
785 } 823 }
OLDNEW
« no previous file with comments | « src/v8preparserdll-main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698