| 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/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  Loading... | 
| 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  Loading... | 
| 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 } | 
| OLD | NEW | 
|---|