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

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: addressed comments 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
« no previous file with comments | « build/gyp_v8 ('k') | build/v8-features.gypi » ('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 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,
56 'conditions': [ 57 'conditions': [
57 ['(v8_target_arch=="arm" and host_arch!="arm") or \ 58 ['(v8_target_arch=="arm" and host_arch!="arm") or \
58 (v8_target_arch=="x64" and host_arch!="x64")', { 59 (v8_target_arch=="x64" and host_arch!="x64")', {
59 'want_separate_host_toolset': 1, 60 'want_separate_host_toolset': 1,
60 }, { 61 }, {
61 'want_separate_host_toolset': 0, 62 'want_separate_host_toolset': 0,
62 }], 63 }],
63 ], 64 ],
64 }, 65 },
65 'target_defaults': { 66 'target_defaults': {
66 'default_configuration': 'Debug', 67 'default_configuration': 'Debug',
67 'conditions': [
68 ['v8_enable_debugger_support==1', {
69 'defines': ['ENABLE_DEBUGGER_SUPPORT',],
70 },
71 ],
72 ],
73 'configurations': { 68 'configurations': {
74 'Debug': { 69 'Debug': {
75 'cflags': [ '-g', '-O0' ], 70 '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 }, 71 },
83 }, 72 },
84 }, 73 },
85 'conditions': [ 74 'conditions': [
86 [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { 75 [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
87 'target_defaults': { 76 'target_defaults': {
88 'cflags': [ '-Wall', '-Werror', '-W', '-Wno-unused-parameter', 77 'cflags': [ '-Wall', '-Werror', '-W', '-Wno-unused-parameter',
89 '-Wnon-virtual-dtor', '-pthread', '-fno-rtti', 78 '-Wnon-virtual-dtor', '-pthread', '-fno-rtti',
90 '-fno-exceptions', '-pedantic' ], 79 '-fno-exceptions', '-pedantic' ],
91 'ldflags': [ '-pthread', ], 80 'ldflags': [ '-pthread', ],
(...skipping 17 matching lines...) Expand all
109 'WIN32', 98 'WIN32',
110 '_CRT_SECURE_NO_DEPRECATE', 99 '_CRT_SECURE_NO_DEPRECATE',
111 '_CRT_NONSTDC_NO_DEPRECATE', 100 '_CRT_NONSTDC_NO_DEPRECATE',
112 ], 101 ],
113 'conditions': [ 102 'conditions': [
114 ['component=="static_library"', { 103 ['component=="static_library"', {
115 'defines': [ 104 'defines': [
116 '_HAS_EXCEPTIONS=0', 105 '_HAS_EXCEPTIONS=0',
117 ], 106 ],
118 }], 107 }],
119 ], 108 ],
120 'msvs_cygwin_dirs': ['<(DEPTH)/third_party/cygwin'], 109 'msvs_cygwin_dirs': ['<(DEPTH)/third_party/cygwin'],
121 'msvs_disabled_warnings': [4355, 4800], 110 'msvs_disabled_warnings': [4355, 4800],
122 'msvs_settings': { 111 'msvs_settings': {
123 'VCCLCompilerTool': { 112 'VCCLCompilerTool': {
124 'MinimalRebuild': 'false', 113 'MinimalRebuild': 'false',
125 'BufferSecurityCheck': 'true', 114 'BufferSecurityCheck': 'true',
126 'EnableFunctionLevelLinking': 'true', 115 'EnableFunctionLevelLinking': 'true',
127 'RuntimeTypeInfo': 'false', 116 'RuntimeTypeInfo': 'false',
128 'WarningLevel': '3', 117 'WarningLevel': '3',
129 'WarnAsError': 'true', 118 'WarnAsError': 'true',
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 }, 188 },
200 'target_conditions': [ 189 'target_conditions': [
201 ['_type!="static_library"', { 190 ['_type!="static_library"', {
202 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, 191 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
203 }], 192 }],
204 ], # target_conditions 193 ], # target_conditions
205 }, # target_defaults 194 }, # target_defaults
206 }], # OS=="mac" 195 }], # OS=="mac"
207 ], 196 ],
208 } 197 }
OLDNEW
« no previous file with comments | « build/gyp_v8 ('k') | build/v8-features.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698