| OLD | NEW |
| 1 # Copyright 2016 Google Inc. | 1 # Copyright 2016 Google Inc. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 declare_args() { | 6 declare_args() { |
| 7 } | 7 } |
| 8 | 8 |
| 9 import("../third_party.gni") | 9 import("../third_party.gni") |
| 10 | 10 |
| 11 config("libpng_public") { | |
| 12 include_dirs = [ "." ] | |
| 13 } | |
| 14 third_party("libpng") { | 11 third_party("libpng") { |
| 15 public_configs = [ ":libpng_public" ] | 12 public_include_dirs = [ "." ] |
| 16 | 13 |
| 17 deps = [ | 14 deps = [ |
| 18 "//third_party/zlib", | 15 "//third_party/zlib", |
| 19 ] | 16 ] |
| 20 sources = [ | 17 sources = [ |
| 21 "png.c", | 18 "png.c", |
| 22 "pngerror.c", | 19 "pngerror.c", |
| 23 "pngget.c", | 20 "pngget.c", |
| 24 "pngmem.c", | 21 "pngmem.c", |
| 25 "pngpread.c", | 22 "pngpread.c", |
| 26 "pngread.c", | 23 "pngread.c", |
| 27 "pngrio.c", | 24 "pngrio.c", |
| 28 "pngrtran.c", | 25 "pngrtran.c", |
| 29 "pngrutil.c", | 26 "pngrutil.c", |
| 30 "pngset.c", | 27 "pngset.c", |
| 31 "pngtrans.c", | 28 "pngtrans.c", |
| 32 "pngwio.c", | 29 "pngwio.c", |
| 33 "pngwrite.c", | 30 "pngwrite.c", |
| 34 "pngwtran.c", | 31 "pngwtran.c", |
| 35 "pngwutil.c", | 32 "pngwutil.c", |
| 36 ] | 33 ] |
| 37 } | 34 } |
| OLD | NEW |