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

Side by Side Diff: gyp/common_conditions.gypi

Issue 78653002: More common_conditions simplifications. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 1 month 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 | 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 # conditions used in both common.gypi and skia.gyp in chromium 1 # conditions used in both common.gypi and skia.gyp in chromium
2 # 2 #
3 { 3 {
4 'defines': [ 4 'defines': [
5 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=<(skia_static_initializers)', 5 'SK_ALLOW_STATIC_GLOBAL_INITIALIZERS=<(skia_static_initializers)',
6 'SK_SUPPORT_GPU=<(skia_gpu)',
7 'SK_SUPPORT_OPENCL=<(skia_opencl)',
8 'SK_DISTANCEFIELD_FONTSC=<(skia_distancefield_fonts)',
6 ], 9 ],
7 'conditions' : [ 10 'conditions' : [
8 [ 'skia_gpu == 1',
9 {
10 'defines': [
11 'SK_SUPPORT_GPU=1',
12 ],
13 }, {
14 'defines': [
15 'SK_SUPPORT_GPU=0',
16 ],
17 },
18 ],
19 [ 'skia_opencl == 1',
20 {
21 'defines': [
22 'SK_SUPPORT_OPENCL=1',
23 ],
24 }, {
25 'defines': [
26 'SK_SUPPORT_OPENCL=0',
27 ],
28 },
29 ],
30 [ 'skia_distancefield_fonts == 1',
31 {
32 'defines': [
33 'SK_DISTANCEFIELD_FONTS=1',
34 ],
35 }, {
36 'defines': [
37 'SK_DISTANCEFIELD_FONTS=0',
38 ],
39 },
40 ],
41 [ 'skia_os == "win"', 11 [ 'skia_os == "win"',
42 { 12 {
43 'defines': [ 13 'defines': [
44 'SK_BUILD_FOR_WIN32', 14 'SK_BUILD_FOR_WIN32',
45 '_CRT_SECURE_NO_WARNINGS', 15 '_CRT_SECURE_NO_WARNINGS',
46 'GR_GL_FUNCTION_TYPE=__stdcall', 16 'GR_GL_FUNCTION_TYPE=__stdcall',
47 ], 17 ],
48 'msvs_cygwin_shell': 0, 18 'msvs_cygwin_shell': 0,
49 'msvs_settings': { 19 'msvs_settings': {
50 'VCCLCompilerTool': { 20 'VCCLCompilerTool': {
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 }, 113 },
144 }], 114 }],
145 ], 115 ],
146 }, 116 },
147 ], 117 ],
148 118
149 # The following section is common to linux + derivatives and android 119 # The following section is common to linux + derivatives and android
150 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl", "chromeos", "android"]', 120 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl", "chromeos", "android"]',
151 { 121 {
152 'cflags': [ 122 'cflags': [
123 '-g',
153 '-fno-exceptions', 124 '-fno-exceptions',
154 '-fstrict-aliasing', 125 '-fstrict-aliasing',
155 126
156 '-Wall', 127 '-Wall',
157 '-Wextra', 128 '-Wextra',
158 '-Winit-self', 129 '-Winit-self',
159 '-Wpointer-arith', 130 '-Wpointer-arith',
160 131
161 '-Wno-unused-parameter', 132 '-Wno-unused-parameter',
162 '-Wno-c++11-extensions', 133 '-Wno-c++11-extensions',
163 ], 134 ],
164 'cflags_cc': [ 135 'cflags_cc': [
165 '-fno-rtti', 136 '-fno-rtti',
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 195
225 196
226 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl", "chromeos"] ', 197 [ 'skia_os in ["linux", "freebsd", "openbsd", "solaris", "nacl", "chromeos"] ',
227 { 198 {
228 'defines': [ 199 'defines': [
229 'SK_SAMPLES_FOR_X', 200 'SK_SAMPLES_FOR_X',
230 'SK_BUILD_FOR_UNIX', 201 'SK_BUILD_FOR_UNIX',
231 ], 202 ],
232 'configurations': { 203 'configurations': {
233 'Coverage': { 204 'Coverage': {
234 'cflags': ['-g --coverage'], 205 'cflags': ['--coverage'],
235 'ldflags': ['--coverage'], 206 'ldflags': ['--coverage'],
236 }, 207 },
237 'Debug': { 208 'Debug': {
238 'cflags': ['-g']
239 }, 209 },
240 'Release': { 210 'Release': {
241 'cflags': [ 211 'cflags': [
242 '-O<(skia_release_optimization_level)', 212 '-O<(skia_release_optimization_level)',
243 '-g',
244 ], 213 ],
245 'defines': [ 'NDEBUG' ], 214 'defines': [ 'NDEBUG' ],
246 }, 215 },
247 }, 216 },
248 'conditions' : [ 217 'conditions' : [
249 [ 'skia_shared_lib', { 218 [ 'skia_shared_lib', {
250 'cflags': [ 219 'cflags': [
251 '-fPIC', 220 '-fPIC',
252 ], 221 ],
253 'defines': [ 222 'defines': [
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 'xcode_settings': { 483 'xcode_settings': {
515 'SYMROOT': '<(DEPTH)/xcodebuild', 484 'SYMROOT': '<(DEPTH)/xcodebuild',
516 }, 485 },
517 } 486 }
518 487
519 # Local Variables: 488 # Local Variables:
520 # tab-width:2 489 # tab-width:2
521 # indent-tabs-mode:nil 490 # indent-tabs-mode:nil
522 # End: 491 # End:
523 # vim: set expandtab tabstop=2 shiftwidth=2: 492 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698