| 1 |
# Copyright 2020 Google Inc. |
| 2 |
# |
| 3 |
# Use of this source code is governed by a BSD-style license that can be |
| 4 |
# found in the LICENSE file. |
| 5 |
|
| 6 |
import("../../gn/skia.gni") |
| 7 |
|
| 8 |
if (skia_use_ffmpeg) { |
| 9 |
config("public_decoder_config") { |
| 10 |
defines = [ "HAVE_VIDEO_DECODER" ] |
| 11 |
include_dirs = [ "." ] |
| 12 |
} |
| 13 |
|
| 14 |
static_library("video_decoder") { |
| 15 |
public_configs = [ ":public_decoder_config" ] |
| 16 |
sources = [ |
| 17 |
"SkVideoDecoder.cpp", |
| 18 |
"SkVideoDecoder.h", |
| 19 |
] |
| 20 |
deps = [ "../..:skia" ] |
| 21 |
libs = [ |
| 22 |
"swscale", |
| 23 |
"avcodec", |
| 24 |
"avformat", |
| 25 |
"avutil", |
| 26 |
] |
| 27 |
} |
| 28 |
|
| 29 |
config("public_encoder_config") { |
| 30 |
defines = [ "HAVE_VIDEO_ENCODER" ] |
| 31 |
include_dirs = [ "." ] |
| 32 |
} |
| 33 |
|
| 34 |
static_library("video_encoder") { |
| 35 |
public_configs = [ ":public_encoder_config" ] |
| 36 |
sources = [ |
| 37 |
"SkVideoEncoder.cpp", |
| 38 |
"SkVideoEncoder.h", |
| 39 |
] |
| 40 |
deps = [ "../..:skia" ] |
| 41 |
libs = [ |
| 42 |
"swscale", |
| 43 |
"avcodec", |
| 44 |
"avformat", |
| 45 |
"avutil", |
| 46 |
] |
| 47 |
} |
| 48 |
} else { |
| 49 |
group("video_decoder") { |
| 50 |
} |
| 51 |
group("video_encoder") { |
| 52 |
} |
| 53 |
} |