OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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/linux/pkg_config.gni") | 5 import("//build/config/linux/pkg_config.gni") |
6 import("//build/shim_headers.gni") | 6 import("//build/shim_headers.gni") |
7 | 7 |
8 pkg_config("system_libpng") { | 8 pkg_config("libpng_config") { |
9 packages = [ "libpng" ] | 9 packages = [ "libpng" ] |
10 } | 10 } |
11 | 11 |
12 shim_headers("libpng_shim") { | 12 shim_headers("libpng_shim") { |
13 root_path = "." | 13 root_path = "." |
14 headers = [ | 14 headers = [ |
15 "png.h", | 15 "png.h", |
16 "pngconf.h", | 16 "pngconf.h", |
17 ] | 17 ] |
18 } | 18 } |
19 | 19 |
20 source_set("libpng") { | 20 source_set("libpng") { |
21 deps = [ | 21 deps = [ |
22 ":libpng_shim", | 22 ":libpng_shim", |
23 ] | 23 ] |
24 public_configs = [ ":system_libpng" ] | 24 public_configs = [ ":libpng_config" ] |
25 } | 25 } |
OLD | NEW |