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

Side by Side Diff: skia/skia_chrome.gypi

Issue 437543007: Refactor how clang warning flags are set. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 5
6 # This gypi file contains all the Chrome-specific enhancements to Skia. 6 # This gypi file contains all the Chrome-specific enhancements to Skia.
7 # In component mode (shared_lib) it is folded into a single shared library with 7 # In component mode (shared_lib) it is folded into a single shared library with
8 # the Skia files but in all other cases it is a separate library. 8 # the Skia files but in all other cases it is a separate library.
9 { 9 {
10 'dependencies': [ 10 'dependencies': [
11 'skia_library', 11 'skia_library',
12 'skia_chrome_opts', 12 'skia_chrome_opts',
13 '../base/base.gyp:base', 13 '../base/base.gyp:base',
14 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_ann otations', 14 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_ann otations',
15 ], 15 ],
16 16
17 'direct_dependent_settings': { 17 'direct_dependent_settings': {
18 'include_dirs': [ 18 'include_dirs': [
19 'ext', 19 'ext',
20 ], 20 ],
21 }, 21 },
22 22 'variables': {
23 # TODO(scottmg): http://crbug.com/177306
24 'clang_warning_flags_unset': [
25 # Don't warn about string->bool used in asserts.
26 '-Wstring-conversion',
27 ],
28 },
23 'sources': [ 29 'sources': [
24 # Note: file list duplicated in GN build. 30 # Note: file list duplicated in GN build.
25 'ext/analysis_canvas.cc', 31 'ext/analysis_canvas.cc',
26 'ext/analysis_canvas.h', 32 'ext/analysis_canvas.h',
27 'ext/benchmarking_canvas.cc', 33 'ext/benchmarking_canvas.cc',
28 'ext/benchmarking_canvas.h', 34 'ext/benchmarking_canvas.h',
29 'ext/bitmap_platform_device.h', 35 'ext/bitmap_platform_device.h',
30 'ext/bitmap_platform_device_cairo.cc', 36 'ext/bitmap_platform_device_cairo.cc',
31 'ext/bitmap_platform_device_cairo.h', 37 'ext/bitmap_platform_device_cairo.h',
32 'ext/bitmap_platform_device_mac.cc', 38 'ext/bitmap_platform_device_mac.cc',
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 ], 98 ],
93 }], 99 }],
94 ['OS == "ios"', { 100 ['OS == "ios"', {
95 'sources/': [ 101 'sources/': [
96 ['exclude', '^ext/vector_platform_device_skia\\.'], 102 ['exclude', '^ext/vector_platform_device_skia\\.'],
97 ], 103 ],
98 'dependencies!': [ 104 'dependencies!': [
99 'skia_chrome_opts', 105 'skia_chrome_opts',
100 ], 106 ],
101 }], 107 }],
102 # TODO(scottmg): http://crbug.com/177306
103 ['clang==1', {
104 'xcode_settings': {
105 'WARNING_CFLAGS!': [
106 # Don't warn about string->bool used in asserts.
107 '-Wstring-conversion',
108 ],
109 },
110 'cflags!': [
111 '-Wstring-conversion',
112 ],
113 }],
114 [ 'OS != "android" and (OS != "linux" or use_cairo==1)', { 108 [ 'OS != "android" and (OS != "linux" or use_cairo==1)', {
115 'sources!': [ 109 'sources!': [
116 'ext/bitmap_platform_device_skia.cc', 110 'ext/bitmap_platform_device_skia.cc',
117 ], 111 ],
118 }], 112 }],
119 ], 113 ],
120 114
121 'target_conditions': [ 115 'target_conditions': [
122 # Pull in specific linux files for android (which have been filtered out 116 # Pull in specific linux files for android (which have been filtered out
123 # by file name rules). 117 # by file name rules).
124 [ 'OS == "android"', { 118 [ 'OS == "android"', {
125 'sources/': [ 119 'sources/': [
126 ['include', 'ext/platform_device_linux\\.cc$'], 120 ['include', 'ext/platform_device_linux\\.cc$'],
127 ], 121 ],
128 }], 122 }],
129 ], 123 ],
130 } 124 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698