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

Side by Side Diff: third_party/libpng/BUILD.gn

Issue 2074363002: skip neon intrinsics in libpng when neon is not available (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | third_party/libpng/libpng.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/chromecast_build.gni") 5 import("//build/config/chromecast_build.gni")
6 import("//build/config/arm.gni")
6 7
7 config("libpng_config") { 8 config("libpng_config") {
8 include_dirs = [ "." ] 9 include_dirs = [ "." ]
9 10
10 defines = [] 11 defines = []
11 12
12 if (is_win) { 13 if (is_win) {
13 if (is_component_build) { 14 if (is_component_build) {
14 defines += [ 15 defines += [
15 "PNG_USE_DLL", 16 "PNG_USE_DLL",
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 ] 61 ]
61 62
62 defines = [] 63 defines = []
63 64
64 if (current_cpu == "x86" || current_cpu == "x64") { 65 if (current_cpu == "x86" || current_cpu == "x64") {
65 sources += [ 66 sources += [
66 "contrib/intel/filter_sse2_intrinsics.c", 67 "contrib/intel/filter_sse2_intrinsics.c",
67 "contrib/intel/intel_init.c", 68 "contrib/intel/intel_init.c",
68 ] 69 ]
69 defines += [ "PNG_INTEL_SSE_OPT=1" ] 70 defines += [ "PNG_INTEL_SSE_OPT=1" ]
70 } else if (current_cpu == "arm" || current_cpu == "arm64") { 71 } else if ((current_cpu == "arm" || current_cpu == "arm64") && arm_use_neon) {
71 sources += [ 72 sources += [
72 "arm/arm_init.c", 73 "arm/arm_init.c",
73 "arm/filter_neon_intrinsics.c", 74 "arm/filter_neon_intrinsics.c",
74 ] 75 ]
75 defines += [ 76 defines += [
76 "PNG_ARM_NEON_OPT=2", 77 "PNG_ARM_NEON_OPT=2",
77 "PNG_ARM_NEON_IMPLEMENTATION=1", 78 "PNG_ARM_NEON_IMPLEMENTATION=1",
78 ] 79 ]
79 } 80 }
80 81
(...skipping 19 matching lines...) Expand all
100 ":libpng_sources", 101 ":libpng_sources",
101 ] 102 ]
102 } 103 }
103 } else { 104 } else {
104 group("libpng") { 105 group("libpng") {
105 public_deps = [ 106 public_deps = [
106 ":libpng_sources", 107 ":libpng_sources",
107 ] 108 ]
108 } 109 }
109 } 110 }
OLDNEW
« no previous file with comments | « no previous file | third_party/libpng/libpng.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698