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

Side by Side Diff: third_party/libwebp/libwebp.gyp

Issue 1889513005: Make libwebp.gyp respect order_profiling mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 # 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 'target_defaults': { 6 'target_defaults': {
7 'conditions': [ 7 'conditions': [
8 ['os_posix==1 and (target_arch=="arm" or target_arch=="arm64")', { 8 ['os_posix==1 and (target_arch=="arm" or target_arch=="arm64")', {
9 'cflags!': [ '-Os' ], 9 'cflags!': [ '-Os' ],
10 'cflags': [ '-O2' ], 10 'cflags': [ '-O2' ],
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 'conditions': [ 90 'conditions': [
91 ['OS == "android"', { 91 ['OS == "android"', {
92 'dependencies': [ '../../build/android/ndk.gyp:cpu_features' ], 92 'dependencies': [ '../../build/android/ndk.gyp:cpu_features' ],
93 }], 93 }],
94 # iOS uses the same project to generate build project for both device 94 # iOS uses the same project to generate build project for both device
95 # and simulator and do not use "target_arch" variable. Other platform 95 # and simulator and do not use "target_arch" variable. Other platform
96 # set it correctly. 96 # set it correctly.
97 ['OS!="ios" and (target_arch=="ia32" or target_arch=="x64")', { 97 ['OS!="ios" and (target_arch=="ia32" or target_arch=="x64")', {
98 'defines': [ 'WEBP_HAVE_SSE2', 'WEBP_HAVE_SSE41' ], 98 'defines': [ 'WEBP_HAVE_SSE2', 'WEBP_HAVE_SSE41' ],
99 }], 99 }],
100 ['order_profiling != 0', {
101 'target_conditions' : [
102 ['_toolset=="target"', {
103 'cflags!': [ '-finstrument-functions' ],
104 }],
105 ],
106 }],
107 ], 100 ],
108 }, 101 },
109 { 102 {
110 'target_name': 'libwebp_dsp_sse2', 103 'target_name': 'libwebp_dsp_sse2',
111 'type': 'static_library', 104 'type': 'static_library',
112 'include_dirs': ['.'], 105 'include_dirs': ['.'],
113 'sources': [ 106 'sources': [
114 'dsp/alpha_processing_sse2.c', 107 'dsp/alpha_processing_sse2.c',
115 'dsp/argb_sse2.c', 108 'dsp/argb_sse2.c',
116 'dsp/cost_sse2.c', 109 'dsp/cost_sse2.c',
117 'dsp/dec_sse2.c', 110 'dsp/dec_sse2.c',
118 'dsp/enc_sse2.c', 111 'dsp/enc_sse2.c',
119 'dsp/filters_sse2.c', 112 'dsp/filters_sse2.c',
120 'dsp/lossless_enc_sse2.c', 113 'dsp/lossless_enc_sse2.c',
121 'dsp/lossless_sse2.c', 114 'dsp/lossless_sse2.c',
122 'dsp/rescaler_sse2.c', 115 'dsp/rescaler_sse2.c',
123 'dsp/upsampling_sse2.c', 116 'dsp/upsampling_sse2.c',
124 'dsp/yuv_sse2.c', 117 'dsp/yuv_sse2.c',
125 ], 118 ],
126 'conditions': [ 119 'conditions': [
127 # iOS uses the same project to generate build project for both device 120 # iOS uses the same project to generate build project for both device
128 # and simulator and do not use "target_arch" variable. Other platform 121 # and simulator and do not use "target_arch" variable. Other platform
129 # set it correctly. 122 # set it correctly.
130 ['OS!="ios" and (target_arch=="ia32" or target_arch=="x64") and msan==0' , { 123 ['OS!="ios" and (target_arch=="ia32" or target_arch=="x64") and msan==0' , {
131 'cflags': [ '-msse2', ], 124 'cflags': [ '-msse2', ],
132 'xcode_settings': { 'OTHER_CFLAGS': [ '-msse2' ] }, 125 'xcode_settings': { 'OTHER_CFLAGS': [ '-msse2' ] },
133 }], 126 }],
134 ['order_profiling != 0', {
135 'target_conditions' : [
136 ['_toolset=="target"', {
137 'cflags!': [ '-finstrument-functions' ],
138 }],
139 ],
140 }],
141 ], 127 ],
142 }, 128 },
143 { 129 {
144 'target_name': 'libwebp_dsp_sse41', 130 'target_name': 'libwebp_dsp_sse41',
145 'type': 'static_library', 131 'type': 'static_library',
146 'include_dirs': ['.'], 132 'include_dirs': ['.'],
147 'sources': [ 133 'sources': [
148 'dsp/alpha_processing_sse41.c', 134 'dsp/alpha_processing_sse41.c',
149 'dsp/dec_sse41.c', 135 'dsp/dec_sse41.c',
150 'dsp/enc_sse41.c', 136 'dsp/enc_sse41.c',
151 'dsp/lossless_enc_sse41.c', 137 'dsp/lossless_enc_sse41.c',
152 ], 138 ],
153 'conditions': [ 139 'conditions': [
154 ['OS=="win" and clang==1', { 140 ['OS=="win" and clang==1', {
155 # cl.exe's /arch flag doesn't have a setting for SSSE3/4, and cl.exe 141 # cl.exe's /arch flag doesn't have a setting for SSSE3/4, and cl.exe
156 # doesn't need it for intrinsics. clang-cl does need it, though. 142 # doesn't need it for intrinsics. clang-cl does need it, though.
157 'msvs_settings': { 143 'msvs_settings': {
158 'VCCLCompilerTool': { 'AdditionalOptions': [ '-msse4.1' ] }, 144 'VCCLCompilerTool': { 'AdditionalOptions': [ '-msse4.1' ] },
159 }, 145 },
160 }], 146 }],
161 # iOS uses the same project to generate build project for both device 147 # iOS uses the same project to generate build project for both device
162 # and simulator and do not use "target_arch" variable. Other platform 148 # and simulator and do not use "target_arch" variable. Other platform
163 # set it correctly. 149 # set it correctly.
164 ['OS!="ios" and (target_arch=="ia32" or target_arch=="x64") and msan==0' , { 150 ['OS!="ios" and (target_arch=="ia32" or target_arch=="x64") and msan==0' , {
165 'cflags': [ '-msse4.1', ], 151 'cflags': [ '-msse4.1', ],
166 'xcode_settings': { 'OTHER_CFLAGS': [ '-msse4.1' ] }, 152 'xcode_settings': { 'OTHER_CFLAGS': [ '-msse4.1' ] },
167 }], 153 }],
168 ['order_profiling != 0', {
169 'target_conditions' : [
170 ['_toolset=="target"', {
171 'cflags!': [ '-finstrument-functions' ],
172 }],
173 ],
174 }],
175 ], 154 ],
176 }, 155 },
177 { 156 {
178 'target_name': 'libwebp_dsp_neon', 157 'target_name': 'libwebp_dsp_neon',
179 'includes' : [ 158 'includes' : [
180 # Disable LTO due to Neon issues. 159 # Disable LTO due to Neon issues.
181 # crbug.com/408997 160 # crbug.com/408997
182 '../../build/android/disable_gcc_lto.gypi', 161 '../../build/android/disable_gcc_lto.gypi',
183 ], 162 ],
184 'conditions': [ 163 'conditions': [
(...skipping 18 matching lines...) Expand all
203 'cflags': [ '-mfpu=neon' ], 182 'cflags': [ '-mfpu=neon' ],
204 }], 183 }],
205 ['target_arch == "arm64"', { 184 ['target_arch == "arm64"', {
206 # avoid an ICE with gcc-4.9: b/15574841 185 # avoid an ICE with gcc-4.9: b/15574841
207 'cflags': [ '-frename-registers' ], 186 'cflags': [ '-frename-registers' ],
208 }], 187 }],
209 ] 188 ]
210 }, { 189 }, {
211 'type': 'none', 190 'type': 'none',
212 }], 191 }],
213 ['order_profiling != 0', {
214 'target_conditions' : [
215 ['_toolset=="target"', {
216 'cflags!': [ '-finstrument-functions' ],
217 }],
218 ],
219 }],
220 ], 192 ],
221 }, 193 },
222 { 194 {
223 'target_name': 'libwebp_enc', 195 'target_name': 'libwebp_enc',
224 'type': 'static_library', 196 'type': 'static_library',
225 'include_dirs': ['.'], 197 'include_dirs': ['.'],
226 'sources': [ 198 'sources': [
227 'enc/alpha.c', 199 'enc/alpha.c',
228 'enc/analysis.c', 200 'enc/analysis.c',
229 'enc/backward_references.c', 201 'enc/backward_references.c',
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 ], 261 ],
290 'direct_dependent_settings': { 262 'direct_dependent_settings': {
291 'include_dirs': ['.'], 263 'include_dirs': ['.'],
292 }, 264 },
293 'conditions': [ 265 'conditions': [
294 ['OS!="win"', {'product_name': 'webp'}], 266 ['OS!="win"', {'product_name': 'webp'}],
295 ], 267 ],
296 }, 268 },
297 ], 269 ],
298 } 270 }
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