1# Copyright 2017 The ANGLE Project Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5config("libpng_config") { 6 include_dirs = [ "src" ] 7} 8 9static_library("libpng") { 10 sources = [ 11 "src/png.c", 12 "src/pngerror.c", 13 "src/pngget.c", 14 "src/pngmem.c", 15 "src/pngpread.c", 16 "src/pngread.c", 17 "src/pngrio.c", 18 "src/pngrtran.c", 19 "src/pngrutil.c", 20 "src/pngset.c", 21 "src/pngtrans.c", 22 "src/pngwio.c", 23 "src/pngwrite.c", 24 "src/pngwtran.c", 25 "src/pngwutil.c", 26 ] 27 if (target_cpu == "arm" || target_cpu == "arm64") { 28 sources += [ 29 "src/arm/arm_init.c", 30 "src/arm/filter_neon.S", 31 "src/arm/filter_neon_intrinsics.c", 32 ] 33 } 34 if (is_win) { 35 cflags = [ "/wd4028" ] 36 } 37 configs -= [ "//build/config/compiler:chromium_code" ] 38 public_configs = [ ":libpng_config" ] 39 deps = [ "//third_party/zlib:zlib" ] 40} 41