| 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 import("//build/config/arm.gni") |
| 7 | 7 |
| 8 config("libpng_config") { | 8 config("libpng_config") { |
| 9 include_dirs = [ "." ] | 9 include_dirs = [ "." ] |
| 10 | 10 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 65 |
| 66 if (current_cpu == "x86" || current_cpu == "x64") { | 66 if (current_cpu == "x86" || current_cpu == "x64") { |
| 67 sources += [ | 67 sources += [ |
| 68 "contrib/intel/filter_sse2_intrinsics.c", | 68 "contrib/intel/filter_sse2_intrinsics.c", |
| 69 "contrib/intel/intel_init.c", | 69 "contrib/intel/intel_init.c", |
| 70 ] | 70 ] |
| 71 defines += [ "PNG_INTEL_SSE_OPT=1" ] | 71 defines += [ "PNG_INTEL_SSE_OPT=1" ] |
| 72 } else if ((current_cpu == "arm" || current_cpu == "arm64") && arm_use_neon) { | 72 } else if ((current_cpu == "arm" || current_cpu == "arm64") && arm_use_neon) { |
| 73 sources += [ | 73 sources += [ |
| 74 "arm/arm_init.c", | 74 "arm/arm_init.c", |
| 75 "arm/arm_palette.c", |
| 75 "arm/filter_neon_intrinsics.c", | 76 "arm/filter_neon_intrinsics.c", |
| 76 ] | 77 ] |
| 77 defines += [ | 78 defines += [ |
| 78 "PNG_ARM_NEON_OPT=2", | 79 "PNG_ARM_NEON_OPT=2", |
| 79 "PNG_ARM_NEON_IMPLEMENTATION=1", | 80 "PNG_ARM_NEON_IMPLEMENTATION=1", |
| 80 ] | 81 ] |
| 81 } | 82 } |
| 82 | 83 |
| 83 configs -= [ "//build/config/compiler:chromium_code" ] | 84 configs -= [ "//build/config/compiler:chromium_code" ] |
| 84 configs += [ "//build/config/compiler:no_chromium_code" ] | 85 configs += [ "//build/config/compiler:no_chromium_code" ] |
| (...skipping 22 matching lines...) Expand all Loading... |
| 107 ":libpng_sources", | 108 ":libpng_sources", |
| 108 ] | 109 ] |
| 109 } | 110 } |
| 110 } else { | 111 } else { |
| 111 group("libpng") { | 112 group("libpng") { |
| 112 public_deps = [ | 113 public_deps = [ |
| 113 ":libpng_sources", | 114 ":libpng_sources", |
| 114 ] | 115 ] |
| 115 } | 116 } |
| 116 } | 117 } |
| OLD | NEW |