OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//build/config/arm.gni") | 5 import("//build/config/arm.gni") |
6 import("//build/config/sanitizers/sanitizers.gni") | 6 import("//build/config/sanitizers/sanitizers.gni") |
7 | 7 |
8 config("libwebp_config") { | 8 config("libwebp_config") { |
9 include_dirs = [ "." ] | 9 include_dirs = [ "." ] |
10 } | 10 } |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 | 188 |
189 if (set_opt_level) { | 189 if (set_opt_level) { |
190 configs -= [ "//build/config/compiler:default_optimization" ] | 190 configs -= [ "//build/config/compiler:default_optimization" ] |
191 configs += [ "//build/config/compiler:optimize_max" ] | 191 configs += [ "//build/config/compiler:optimize_max" ] |
192 } | 192 } |
193 | 193 |
194 if (current_cpu == "arm") { | 194 if (current_cpu == "arm") { |
195 # behavior similar to *.c.neon in an Android.mk | 195 # behavior similar to *.c.neon in an Android.mk |
196 configs -= [ "//build/config/compiler:compiler_arm_fpu" ] | 196 configs -= [ "//build/config/compiler:compiler_arm_fpu" ] |
197 cflags = [ "-mfpu=neon" ] | 197 cflags = [ "-mfpu=neon" ] |
198 } else if (current_cpu == "arm64") { | 198 } else if (current_cpu == "arm64" && !is_clang) { |
199 # avoid an ICE with gcc-4.9: b/15574841 | 199 # avoid an ICE with gcc-4.9: b/15574841 |
200 cflags = [ "-frename-registers" ] | 200 cflags = [ "-frename-registers" ] |
201 } | 201 } |
202 | 202 |
203 if (is_android) { | 203 if (is_android) { |
204 configs -= [ "//build/config/android:default_cygprofile_instrumentation" ] | 204 configs -= [ "//build/config/android:default_cygprofile_instrumentation" ] |
205 configs += [ "//build/config/android:no_cygprofile_instrumentation" ] | 205 configs += [ "//build/config/android:no_cygprofile_instrumentation" ] |
206 } | 206 } |
207 } | 207 } |
208 } # use_dsp_neon | 208 } # use_dsp_neon |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 ":libwebp_demux", | 286 ":libwebp_demux", |
287 ":libwebp_dsp", | 287 ":libwebp_dsp", |
288 ":libwebp_enc", | 288 ":libwebp_enc", |
289 ":libwebp_utils", | 289 ":libwebp_utils", |
290 ] | 290 ] |
291 public_configs = [ ":libwebp_config" ] | 291 public_configs = [ ":libwebp_config" ] |
292 if (use_dsp_neon) { | 292 if (use_dsp_neon) { |
293 deps += [ ":libwebp_dsp_neon" ] | 293 deps += [ ":libwebp_dsp_neon" ] |
294 } | 294 } |
295 } | 295 } |
OLD | NEW |