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

Side by Side Diff: gyp/common_conditions.gypi

Issue 339193002: Silence warnings about using offsetof on near-POD structs. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 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
« 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)', 6 'SK_SUPPORT_GPU=<(skia_gpu)',
7 'SK_SUPPORT_OPENCL=<(skia_opencl)', 7 'SK_SUPPORT_OPENCL=<(skia_opencl)',
8 'SK_FORCE_DISTANCEFIELD_FONTS=<(skia_force_distancefield_fonts)', 8 'SK_FORCE_DISTANCEFIELD_FONTS=<(skia_force_distancefield_fonts)',
9 ], 9 ],
10 'conditions' : [ 10 'conditions' : [
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 '-Wall', 168 '-Wall',
169 '-Wextra', 169 '-Wextra',
170 '-Winit-self', 170 '-Winit-self',
171 '-Wpointer-arith', 171 '-Wpointer-arith',
172 172
173 '-Wno-unused-parameter', 173 '-Wno-unused-parameter',
174 ], 174 ],
175 'cflags_cc': [ 175 'cflags_cc': [
176 '-fno-rtti', 176 '-fno-rtti',
177 '-Wnon-virtual-dtor', 177 '-Wnon-virtual-dtor',
178 '-Wno-invalid-offsetof', # GCC <4.6 is old-school strict about what i s POD.
178 ], 179 ],
179 'conditions': [ 180 'conditions': [
180 [ 'skia_android_framework==0', { 181 [ 'skia_android_framework==0', {
181 'cflags': [ 182 'cflags': [
182 # This flag is not supported by Android build system. 183 # This flag is not supported by Android build system.
183 '-Wno-c++11-extensions', 184 '-Wno-c++11-extensions',
184 ], 185 ],
185 }], 186 }],
186 [ 'skia_warnings_as_errors', { 187 [ 'skia_warnings_as_errors', {
187 'cflags': [ 188 'cflags': [
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 'SK_BUILD_JSON_WRITER', 684 'SK_BUILD_JSON_WRITER',
684 ] 685 ]
685 }], 686 }],
686 687
687 ], # end 'conditions' 688 ], # end 'conditions'
688 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for more details 689 # The Xcode SYMROOT must be at the root. See build/common.gypi in chromium for more details
689 'xcode_settings': { 690 'xcode_settings': {
690 'SYMROOT': '<(DEPTH)/xcodebuild', 691 'SYMROOT': '<(DEPTH)/xcodebuild',
691 }, 692 },
692 } 693 }
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