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

Side by Side Diff: build/standalone.gypi

Issue 7740020: Refactor .gyp files: (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 4 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
OLDNEW
1 # Copyright 2011 the V8 project authors. All rights reserved. 1 # Copyright 2011 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
11 # with the distribution. 11 # with the distribution.
12 # * Neither the name of Google Inc. nor the names of its 12 # * Neither the name of Google Inc. nor the names of its
13 # contributors may be used to endorse or promote products derived 13 # contributors may be used to endorse or promote products derived
14 # from this software without specific prior written permission. 14 # from this software without specific prior written permission.
15 # 15 #
16 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 16 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 17 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 18 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 19 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 20 # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 21 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 22 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
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 # Definitions to be used when building stand-alone V8 binaries.
29
28 { 30 {
29 'variables': { 31 'variables': {
30 'library%': 'static_library', 32 'library%': 'static_library',
31 'component%': 'static_library', 33 'component%': 'static_library',
32 'visibility%': 'hidden', 34 'visibility%': 'hidden',
33 'msvs_multi_core_compile%': '1', 35 'msvs_multi_core_compile%': '1',
34 'variables': { 36 'variables': {
35 'variables': { 37 'variables': {
36 'conditions': [ 38 'conditions': [
37 [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd"', { 39 [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
38 # This handles the Linux platforms we generally deal with. Anything 40 # This handles the Linux platforms we generally deal with. Anything
39 # else gets passed through, which probably won't work very well; suc h 41 # else gets passed through, which probably won't work very well; suc h
40 # hosts should pass an explicit target_arch to gyp. 42 # hosts should pass an explicit target_arch to gyp.
41 'host_arch%': 43 'host_arch%':
42 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/a rm.*/arm/")', 44 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/a rm.*/arm/")',
43 }, { # OS!="linux" and OS!="freebsd" and OS!="openbsd" 45 }, { # OS!="linux" and OS!="freebsd" and OS!="openbsd"
44 'host_arch%': 'ia32', 46 'host_arch%': 'ia32',
45 }], 47 }],
46 ], 48 ],
47 }, 49 },
48 'host_arch%': '<(host_arch)', 50 'host_arch%': '<(host_arch)',
49 'target_arch%': '<(host_arch)', 51 'target_arch%': '<(host_arch)',
50 'v8_target_arch%': '<(target_arch)', 52 'v8_target_arch%': '<(target_arch)',
51 }, 53 },
52 'host_arch%': '<(host_arch)', 54 'host_arch%': '<(host_arch)',
53 'target_arch%': '<(target_arch)', 55 'target_arch%': '<(target_arch)',
54 'v8_target_arch%': '<(v8_target_arch)', 56 'v8_target_arch%': '<(v8_target_arch)',
55 'v8_enable_debugger_support%': 1, 57 'v8_enable_debugger_support%': 1,
58 'v8_can_use_vfp_instructions%': 'true',
Yang 2011/08/25 11:24:03 You mentioned something about this...
Jakob Kummerow 2011/08/25 14:46:08 Done.
56 'conditions': [ 59 'conditions': [
57 ['(v8_target_arch=="arm" and host_arch!="arm") or \ 60 ['(v8_target_arch=="arm" and host_arch!="arm") or \
58 (v8_target_arch=="x64" and host_arch!="x64")', { 61 (v8_target_arch=="x64" and host_arch!="x64")', {
59 'want_separate_host_toolset': 1, 62 'want_separate_host_toolset': 1,
60 }, { 63 }, {
61 'want_separate_host_toolset': 0, 64 'want_separate_host_toolset': 0,
62 }], 65 }],
63 ], 66 ],
64 }, 67 },
65 'target_defaults': { 68 'target_defaults': {
66 'default_configuration': 'Debug', 69 'default_configuration': 'Debug',
67 'conditions': [
68 ['v8_enable_debugger_support==1', {
69 'defines': ['ENABLE_DEBUGGER_SUPPORT',],
70 },
71 ],
72 ],
73 'configurations': { 70 'configurations': {
74 'Debug': { 71 'Debug': {
75 'cflags': [ '-g', '-O0' ], 72 'cflags': [ '-g', '-O0' ],
76 'defines': [ 'ENABLE_DISASSEMBLER', 'DEBUG', 'V8_ENABLE_CHECKS',
77 'OBJECT_PRINT' ],
78 },
79 'Release': {
80 'cflags': [ '-O3', '-fomit-frame-pointer', '-fdata-sections',
81 '-ffunction-sections' ],
82 }, 73 },
83 }, 74 },
84 }, 75 },
85 'conditions': [ 76 'conditions': [
86 [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { 77 [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
87 'target_defaults': { 78 'target_defaults': {
88 'cflags': [ '-Wall', '-Werror', '-W', '-Wno-unused-parameter', 79 'cflags': [ '-Wall', '-Werror', '-W', '-Wno-unused-parameter',
89 '-Wnon-virtual-dtor', '-pthread', '-fno-rtti', 80 '-Wnon-virtual-dtor', '-pthread', '-fno-rtti',
90 '-fno-exceptions', '-pedantic' ], 81 '-fno-exceptions', '-pedantic' ],
91 'ldflags': [ '-pthread', ], 82 #'ldflags': [ '-pthread', ],
Yang 2011/08/25 11:24:03 Remove this line.
Jakob Kummerow 2011/08/25 14:46:08 Done - sort of. In reaction to your other comment,
92 'conditions': [ 83 'conditions': [
93 [ 'target_arch=="ia32"', { 84 [ 'target_arch=="ia32"', {
94 'cflags': [ '-m32' ], 85 'cflags': [ '-m32' ],
95 'ldflags': [ '-m32' ], 86 'ldflags': [ '-m32' ],
96 }], 87 }],
97 [ 'OS=="linux"', { 88 [ 'OS=="linux"', {
98 'cflags': [ '-ansi' ], 89 'cflags': [ '-ansi' ],
99 }], 90 }],
100 [ 'visibility=="hidden"', { 91 [ 'visibility=="hidden"', {
101 'cflags': [ '-fvisibility=hidden' ], 92 'cflags': [ '-fvisibility=hidden' ],
102 }], 93 }],
94 [ 'component=="shared_library"', {
95 'ldflags': [ '-pthread', ],
96 }],
103 ], 97 ],
104 }, 98 },
105 }], # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"' 99 }], # 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"'
106 ['OS=="win"', { 100 ['OS=="win"', {
107 'target_defaults': { 101 'target_defaults': {
108 'defines': [ 102 'defines': [
109 'WIN32', 103 'WIN32',
110 '_CRT_SECURE_NO_DEPRECATE', 104 '_CRT_SECURE_NO_DEPRECATE',
111 '_CRT_NONSTDC_NO_DEPRECATE', 105 '_CRT_NONSTDC_NO_DEPRECATE',
112 ], 106 ],
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 }, 193 },
200 'target_conditions': [ 194 'target_conditions': [
201 ['_type!="static_library"', { 195 ['_type!="static_library"', {
202 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, 196 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
203 }], 197 }],
204 ], # target_conditions 198 ], # target_conditions
205 }, # target_defaults 199 }, # target_defaults
206 }], # OS=="mac" 200 }], # OS=="mac"
207 ], 201 ],
208 } 202 }
OLDNEW
« no previous file with comments | « build/gyp_v8 ('k') | build/v8-features.gypi » ('j') | samples/samples.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698