Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: build/linux/unbundle/ffmpeg.gn

Issue 2811423002: build/linux/unbundle: make ffmpeg.gn define USE_SYSTEM_FFMPEG (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_ffmpeg") {
9 packages = [ 9 packages = [
10 "libavcodec", 10 "libavcodec",
11 "libavformat", 11 "libavformat",
12 "libavutil", 12 "libavutil",
13 ] 13 ]
14 } 14 }
15 15
16 config("using_system_ffmpeg") {
17 defines = [ "USE_SYSTEM_FFMPEG=1" ]
18 }
19
16 shim_headers("ffmpeg_shim") { 20 shim_headers("ffmpeg_shim") {
17 root_path = "." 21 root_path = "."
18 headers = [ 22 headers = [
19 "libavcodec/avcodec.h", 23 "libavcodec/avcodec.h",
20 "libavformat/avformat.h", 24 "libavformat/avformat.h",
21 "libavutil/imgutils.h", 25 "libavutil/imgutils.h",
22 ] 26 ]
23 } 27 }
24 28
25 source_set("ffmpeg") { 29 source_set("ffmpeg") {
26 deps = [ 30 deps = [
27 ":ffmpeg_shim", 31 ":ffmpeg_shim",
28 ] 32 ]
29 public_configs = [ ":system_ffmpeg" ] 33 public_configs = [
34 ":system_ffmpeg",
35 ":using_system_ffmpeg",
36 ]
30 } 37 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698