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_ffmpeg") { | 8 pkg_config("system_libpng") { |
9 packages = [ | 9 packages = [ "libpng" ] |
10 "libavcodec", | 10 } |
11 "libavformat", | 11 |
12 "libavutil", | 12 shim_headers("libpng_shim") { |
| 13 root_path = "." |
| 14 headers = [ |
| 15 "png.h", |
| 16 "pngconf.h", |
13 ] | 17 ] |
14 } | 18 } |
15 | 19 |
16 shim_headers("ffmpeg_shim") { | 20 source_set("libpng") { |
17 root_path = "." | 21 deps = [ |
18 headers = [ | 22 ":libpng_shim", |
19 "libavcodec/avcodec.h", | |
20 "libavformat/avformat.h", | |
21 "libavutil/imgutils.h", | |
22 ] | 23 ] |
| 24 public_configs = [ ":system_libpng" ] |
23 } | 25 } |
24 | |
25 source_set("ffmpeg") { | |
26 deps = [ | |
27 ":ffmpeg_shim", | |
28 ] | |
29 public_configs = [ ":system_ffmpeg" ] | |
30 } | |
OLD | NEW |