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

Side by Side Diff: build/standalone.gypi

Issue 18181006: Introduce a notion of "v8_code" in gyp config files. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 7 years, 5 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 | preparser/preparser.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 2012 the V8 project authors. All rights reserved. 1 # Copyright 2012 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 'target_arch%': '<(host_arch)', 58 'target_arch%': '<(host_arch)',
59 }, 59 },
60 'host_arch%': '<(host_arch)', 60 'host_arch%': '<(host_arch)',
61 'target_arch%': '<(target_arch)', 61 'target_arch%': '<(target_arch)',
62 'v8_target_arch%': '<(target_arch)', 62 'v8_target_arch%': '<(target_arch)',
63 }, 63 },
64 'host_arch%': '<(host_arch)', 64 'host_arch%': '<(host_arch)',
65 'target_arch%': '<(target_arch)', 65 'target_arch%': '<(target_arch)',
66 'v8_target_arch%': '<(v8_target_arch)', 66 'v8_target_arch%': '<(v8_target_arch)',
67 'werror%': '-Werror', 67 'werror%': '-Werror',
68
69 # .gyp files or targets should set v8_code to 1 if they build V8 specific
70 # code, as opposed to external code. This variable is used to control such
71 # things as the set of warnings to enable, and whether warnings are treated
72 # as errors.
73 'v8_code%': 0,
74
68 'conditions': [ 75 'conditions': [
69 ['(v8_target_arch=="arm" and host_arch!="arm") or \ 76 ['(v8_target_arch=="arm" and host_arch!="arm") or \
70 (v8_target_arch=="mipsel" and host_arch!="mipsel") or \ 77 (v8_target_arch=="mipsel" and host_arch!="mipsel") or \
71 (v8_target_arch=="x64" and host_arch!="x64") or \ 78 (v8_target_arch=="x64" and host_arch!="x64") or \
72 (OS=="android")', { 79 (OS=="android")', {
73 'want_separate_host_toolset': 1, 80 'want_separate_host_toolset': 1,
74 }, { 81 }, {
75 'want_separate_host_toolset': 0, 82 'want_separate_host_toolset': 0,
76 }], 83 }],
84 ['OS == "win"', {
85 'os_posix%': 0,
86 }, {
87 'os_posix%': 1,
88 }],
77 ], 89 ],
78 # Default ARM variable settings. 90 # Default ARM variable settings.
79 'armv7%': 'default', 91 'armv7%': 'default',
80 'arm_neon%': 0, 92 'arm_neon%': 0,
81 'arm_fpu%': 'vfpv3', 93 'arm_fpu%': 'vfpv3',
82 'arm_float_abi%': 'default', 94 'arm_float_abi%': 'default',
83 'arm_thumb': 'default', 95 'arm_thumb': 'default',
84 }, 96 },
85 'target_defaults': { 97 'target_defaults': {
98 'variables': {
99 'v8_code%': '<(v8_code)',
100 },
86 'default_configuration': 'Debug', 101 'default_configuration': 'Debug',
87 'configurations': { 102 'configurations': {
88 'Debug': { 103 'Debug': {
89 'cflags': [ '-g', '-O0' ], 104 'cflags': [ '-g', '-O0' ],
90 }, 105 },
91 'Release': { 106 'Release': {
92 # Xcode insists on this empty entry. 107 # Xcode insists on this empty entry.
93 }, 108 },
94 }, 109 },
110 'target_conditions': [
111 ['v8_code == 0', {
112 'conditions': [
113 ['os_posix == 1 and OS != "mac"', {
114 'cflags!': [
115 '-Werror',
116 ],
117 }],
118 ['OS == "mac"', {
119 'xcode_settings': {
120 'GCC_TREAT_WARNINGS_AS_ERRORS': 'NO', # -Werror
121 },
122 }],
123 ['OS == "win"', {
124 'msvs_settings': {
125 'VCCLCompilerTool': {
126 'WarnAsError': 'false',
127 },
128 },
129 }],
130 ],
131 }],
132 ],
95 }, 133 },
96 'conditions': [ 134 'conditions': [
97 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \ 135 ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
98 or OS=="netbsd"', { 136 or OS=="netbsd"', {
99 'target_defaults': { 137 'target_defaults': {
100 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter', 138 'cflags': [ '-Wall', '<(werror)', '-W', '-Wno-unused-parameter',
101 '-pthread', '-fno-exceptions', '-pedantic' ], 139 '-pthread', '-fno-exceptions', '-pedantic' ],
102 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti' ], 140 'cflags_cc': [ '-Wnon-virtual-dtor', '-fno-rtti' ],
103 'ldflags': [ '-pthread', ], 141 'ldflags': [ '-pthread', ],
104 'conditions': [ 142 'conditions': [
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 }, 254 },
217 'target_conditions': [ 255 'target_conditions': [
218 ['_type!="static_library"', { 256 ['_type!="static_library"', {
219 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']}, 257 'xcode_settings': {'OTHER_LDFLAGS': ['-Wl,-search_paths_first']},
220 }], 258 }],
221 ], # target_conditions 259 ], # target_conditions
222 }, # target_defaults 260 }, # target_defaults
223 }], # OS=="mac" 261 }], # OS=="mac"
224 ], 262 ],
225 } 263 }
OLDNEW
« no previous file with comments | « no previous file | preparser/preparser.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698