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

Side by Side Diff: build/common.gypi

Issue 7658011: GYP fixes: -Werror, snapshot.log, want_separate_host_toolset detection (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
« no previous file with comments | « no previous file | tools/gyp/v8.gyp » ('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
(...skipping 14 matching lines...) Expand all
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 'library%': 'static_library', 30 'library%': 'static_library',
31 'component%': 'static_library', 31 'component%': 'static_library',
32 'visibility%': 'hidden', 32 'visibility%': 'hidden',
33 'msvs_multi_core_compile%': '1', 33 'msvs_multi_core_compile%': '1',
34 'variables': { 34 'variables': {
35 'conditions': [ 35 'variables': {
36 [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd"', { 36 'conditions': [
37 # This handles the Linux platforms we generally deal with. Anything 37 [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd"', {
38 # else gets passed through, which probably won't work very well; such 38 # This handles the Linux platforms we generally deal with. Anything
39 # hosts should pass an explicit target_arch to gyp. 39 # else gets passed through, which probably won't work very well; suc h
40 'host_arch%': 40 # hosts should pass an explicit target_arch to gyp.
41 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/arm .*/arm/")', 41 'host_arch%':
42 }, { # OS!="linux" and OS!="freebsd" and OS!="openbsd" 42 '<!(uname -m | sed -e "s/i.86/ia32/;s/x86_64/x64/;s/amd64/x64/;s/a rm.*/arm/")',
43 'host_arch%': 'ia32', 43 }, { # OS!="linux" and OS!="freebsd" and OS!="openbsd"
44 }], 44 'host_arch%': 'ia32',
45 ], 45 }],
46 ],
47 },
48 'host_arch%': '<(host_arch)',
49 'target_arch%': '<(host_arch)',
50 'v8_target_arch%': '<(target_arch)',
46 }, 51 },
47 'host_arch%': '<(host_arch)', 52 'host_arch%': '<(host_arch)',
48 'target_arch%': '<(host_arch)', 53 'target_arch%': '<(target_arch)',
49 'v8_target_arch%': '<(target_arch)', 54 'v8_target_arch%': '<(v8_target_arch)',
50 'v8_enable_debugger_support%': 1, 55 'v8_enable_debugger_support%': 1,
51 'conditions': [ 56 'conditions': [
52 ['(target_arch=="arm" and host_arch!="arm") or \ 57 ['(v8_target_arch=="arm" and host_arch!="arm") or \
53 (target_arch=="x64" and host_arch!="x64")', { 58 (v8_target_arch=="x64" and host_arch!="x64")', {
54 'want_separate_host_toolset': 1, 59 'want_separate_host_toolset': 1,
55 }, { 60 }, {
56 'want_separate_host_toolset': 0, 61 'want_separate_host_toolset': 0,
57 }], 62 }],
58 ], 63 ],
59 }, 64 },
60 'target_defaults': { 65 'target_defaults': {
61 'default_configuration': 'Debug', 66 'default_configuration': 'Debug',
62 'conditions': [ 67 'conditions': [
63 ['v8_enable_debugger_support==1', { 68 ['v8_enable_debugger_support==1', {
64 'defines': ['ENABLE_DEBUGGER_SUPPORT',], 69 'defines': ['ENABLE_DEBUGGER_SUPPORT',],
65 }, 70 },
66 ], 71 ],
67 ], 72 ],
68 'configurations': { 73 'configurations': {
69 'Debug': { 74 'Debug': {
70 'cflags': [ '-g', '-O0' ], 75 'cflags': [ '-g', '-O0' ],
71 'defines': [ 'ENABLE_DISASSEMBLER', 'DEBUG', 'V8_ENABLE_CHECKS', 76 'defines': [ 'ENABLE_DISASSEMBLER', 'DEBUG', 'V8_ENABLE_CHECKS',
72 'OBJECT_PRINT' ], 77 'OBJECT_PRINT' ],
73 }, 78 },
74 'Release': { 79 'Release': {
75 'cflags': [ '-O3', '-fomit-frame-pointer', '-fdata-sections', 80 'cflags': [ '-O3', '-fomit-frame-pointer', '-fdata-sections',
76 '-ffunction-sections' ], 81 '-ffunction-sections' ],
77 }, 82 },
78 }, 83 },
79 }, 84 },
80 'conditions': [ 85 'conditions': [
81 [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', { 86 [ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
82 'target_defaults': { 87 'target_defaults': {
83 'cflags': [ '-Wall', '-pthread', '-fno-rtti', '-fno-exceptions', 88 'cflags': [ '-Wall', '-Werror', '-W', '-Wno-unused-parameter',
84 '-pedantic' ], 89 '-Wnon-virtual-dtor', '-pthread', '-fno-rtti',
90 '-fno-exceptions', '-pedantic' ],
85 'ldflags': [ '-pthread', ], 91 'ldflags': [ '-pthread', ],
86 'conditions': [ 92 'conditions': [
87 [ 'target_arch=="ia32"', { 93 [ 'target_arch=="ia32"', {
88 'cflags': [ '-m32' ], 94 'cflags': [ '-m32' ],
89 'ldflags': [ '-m32' ], 95 'ldflags': [ '-m32' ],
90 }], 96 }],
91 [ 'OS=="linux"', { 97 [ 'OS=="linux"', {
92 'cflags': [ '-ansi' ], 98 'cflags': [ '-ansi' ],
93 }], 99 }],
94 [ 'visibility=="hidden"', { 100 [ 'visibility=="hidden"', {
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 }, 199 },
194 'target_conditions': [ 200 'target_conditions': [
195 ['_type!="static_library"', { 201 ['_type!="static_library"', {
196 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, 202 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
197 }], 203 }],
198 ], # target_conditions 204 ], # target_conditions
199 }, # target_defaults 205 }, # target_defaults
200 }], # OS=="mac" 206 }], # OS=="mac"
201 ], 207 ],
202 } 208 }
OLDNEW
« no previous file with comments | « no previous file | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698