OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 'conditions': [ | 6 'conditions': [ |
7 # In component mode (shared_lib), we build all of skia as a single DLL. | 7 # In component mode (shared_lib), we build all of skia as a single DLL. |
8 # However, in the static mode, we need to build skia as multiple targets | 8 # However, in the static mode, we need to build skia as multiple targets |
9 # in order to support the use case where a platform (e.g. Android) may | 9 # in order to support the use case where a platform (e.g. Android) may |
10 # already have a copy of skia as a system library. | 10 # already have a copy of skia as a system library. |
11 ['component=="static_library"', { | 11 ['component=="static_library"', { |
12 'targets': [ | 12 'targets': [ |
13 { | 13 { |
14 'target_name': 'skia_library', | 14 'target_name': 'skia_library', |
15 'type': 'static_library', | 15 'type': 'static_library', |
| 16 # The optimize: 'max' scattered throughout are particularly |
| 17 # important when compiled by MSVC 2013, which seems |
| 18 # to mis-link-time-compile code that's built with |
| 19 # different optimization levels. http://crbug.com/543583 |
| 20 'variables': { |
| 21 'optimize': 'max', |
| 22 }, |
16 'includes': [ | 23 'includes': [ |
17 'skia_common.gypi', | 24 'skia_common.gypi', |
18 'skia_library.gypi', | 25 'skia_library.gypi', |
19 '../build/android/increase_size_for_speed.gypi', | 26 '../build/android/increase_size_for_speed.gypi', |
20 # Disable LTO due to compiler error | 27 # Disable LTO due to compiler error |
21 # in mems_in_disjoint_alias_sets_p, at alias.c:393 | 28 # in mems_in_disjoint_alias_sets_p, at alias.c:393 |
22 # crbug.com/422255 | 29 # crbug.com/422255 |
23 '../build/android/disable_gcc_lto.gypi', | 30 '../build/android/disable_gcc_lto.gypi', |
24 ], | 31 ], |
25 }, | 32 }, |
26 ], | 33 ], |
27 }], | 34 }], |
28 ['component=="static_library"', { | 35 ['component=="static_library"', { |
29 'targets': [ | 36 'targets': [ |
30 { | 37 { |
31 'target_name': 'skia', | 38 'target_name': 'skia', |
| 39 # The optimize: 'max' scattered throughout are particularly |
| 40 # important when compiled by MSVC 2013, which seems |
| 41 # to mis-link-time-compile code that's built with |
| 42 # different optimization levels. http://crbug.com/543583 |
| 43 'variables': { |
| 44 'optimize': 'max', |
| 45 }, |
32 'type': 'none', | 46 'type': 'none', |
33 'dependencies': [ | 47 'dependencies': [ |
34 'skia_library', | 48 'skia_library', |
35 'skia_chrome', | 49 'skia_chrome', |
36 ], | 50 ], |
37 'export_dependent_settings': [ | 51 'export_dependent_settings': [ |
38 'skia_library', | 52 'skia_library', |
39 'skia_chrome', | 53 'skia_chrome', |
40 ], | 54 ], |
41 'direct_dependent_settings': { | 55 'direct_dependent_settings': { |
(...skipping 14 matching lines...) Expand all Loading... |
56 'skia_common.gypi', | 70 'skia_common.gypi', |
57 '../build/android/increase_size_for_speed.gypi', | 71 '../build/android/increase_size_for_speed.gypi', |
58 ], | 72 ], |
59 }, | 73 }, |
60 ], | 74 ], |
61 }, | 75 }, |
62 { # component != static_library | 76 { # component != static_library |
63 'targets': [ | 77 'targets': [ |
64 { | 78 { |
65 'target_name': 'skia', | 79 'target_name': 'skia', |
| 80 # The optimize: 'max' scattered throughout are particularly |
| 81 # important when compiled by MSVC 2013, which seems |
| 82 # to mis-link-time-compile code that's built with |
| 83 # different optimization levels. http://crbug.com/543583 |
| 84 'variables': { |
| 85 'optimize': 'max', |
| 86 }, |
66 'type': 'shared_library', | 87 'type': 'shared_library', |
67 'includes': [ | 88 'includes': [ |
68 # Include skia_common.gypi first since it contains filename | 89 # Include skia_common.gypi first since it contains filename |
69 # exclusion rules. This allows the following includes to override | 90 # exclusion rules. This allows the following includes to override |
70 # the exclusion rules. | 91 # the exclusion rules. |
71 'skia_common.gypi', | 92 'skia_common.gypi', |
72 'skia_chrome.gypi', | 93 'skia_chrome.gypi', |
73 'skia_library.gypi', | 94 'skia_library.gypi', |
74 '../build/android/increase_size_for_speed.gypi', | 95 '../build/android/increase_size_for_speed.gypi', |
75 ], | 96 ], |
(...skipping 25 matching lines...) Expand all Loading... |
101 'type': 'none', | 122 'type': 'none', |
102 }, | 123 }, |
103 ], | 124 ], |
104 }], | 125 }], |
105 ], | 126 ], |
106 | 127 |
107 # targets that are not dependent upon the component type | 128 # targets that are not dependent upon the component type |
108 'targets': [ | 129 'targets': [ |
109 { | 130 { |
110 'target_name': 'image_operations_bench', | 131 'target_name': 'image_operations_bench', |
| 132 # The optimize: 'max' scattered throughout are particularly |
| 133 # important when compiled by MSVC 2013, which seems |
| 134 # to mis-link-time-compile code that's built with |
| 135 # different optimization levels. http://crbug.com/543583 |
| 136 'variables': { |
| 137 'optimize': 'max', |
| 138 }, |
111 'type': 'executable', | 139 'type': 'executable', |
112 'dependencies': [ | 140 'dependencies': [ |
113 '../base/base.gyp:base', | 141 '../base/base.gyp:base', |
114 'skia', | 142 'skia', |
115 ], | 143 ], |
116 'include_dirs': [ | 144 'include_dirs': [ |
117 '..', | 145 '..', |
118 ], | 146 ], |
119 'sources': [ | 147 'sources': [ |
120 'ext/image_operations_bench.cc', | 148 'ext/image_operations_bench.cc', |
121 ], | 149 ], |
122 }, | 150 }, |
123 { | 151 { |
124 'target_name': 'filter_fuzz_stub', | 152 'target_name': 'filter_fuzz_stub', |
125 'type': 'executable', | 153 'type': 'executable', |
| 154 # The optimize: 'max' scattered throughout are particularly |
| 155 # important when compiled by MSVC 2013, which seems |
| 156 # to mis-link-time-compile code that's built with |
| 157 # different optimization levels. http://crbug.com/543583 |
| 158 'variables': { |
| 159 'optimize': 'max', |
| 160 }, |
126 'dependencies': [ | 161 'dependencies': [ |
127 '../base/base.gyp:base', | 162 '../base/base.gyp:base', |
128 '../base/base.gyp:test_support_base', | 163 '../base/base.gyp:test_support_base', |
129 'skia.gyp:skia', | 164 'skia.gyp:skia', |
130 ], | 165 ], |
131 'sources': [ | 166 'sources': [ |
132 'tools/filter_fuzz_stub/filter_fuzz_stub.cc', | 167 'tools/filter_fuzz_stub/filter_fuzz_stub.cc', |
133 ], | 168 ], |
134 'includes': [ | 169 'includes': [ |
135 '../build/android/increase_size_for_speed.gypi', | 170 '../build/android/increase_size_for_speed.gypi', |
136 ], | 171 ], |
137 }, | 172 }, |
138 { | 173 { |
139 'target_name': 'skia_mojo', | 174 'target_name': 'skia_mojo', |
140 'type': 'static_library', | 175 'type': 'static_library', |
| 176 # The optimize: 'max' scattered throughout are particularly |
| 177 # important when compiled by MSVC 2013, which seems |
| 178 # to mis-link-time-compile code that's built with |
| 179 # different optimization levels. http://crbug.com/543583 |
| 180 'variables': { |
| 181 'optimize': 'max', |
| 182 }, |
141 'dependencies': [ | 183 'dependencies': [ |
142 'skia', | 184 'skia', |
143 '../base/base.gyp:base', | 185 '../base/base.gyp:base', |
144 ], | 186 ], |
145 'includes': [ | 187 'includes': [ |
146 '../third_party/mojo/mojom_bindings_generator.gypi', | 188 '../third_party/mojo/mojom_bindings_generator.gypi', |
147 ], | 189 ], |
148 'sources': [ | 190 'sources': [ |
149 # Note: file list duplicated in GN build. | 191 # Note: file list duplicated in GN build. |
150 'public/interfaces/bitmap.mojom', | 192 'public/interfaces/bitmap.mojom', |
151 'public/type_converters.cc', | 193 'public/type_converters.cc', |
152 ], | 194 ], |
153 }, | 195 }, |
154 ], | 196 ], |
155 } | 197 } |
OLD | NEW |