You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.0 KiB
54 lines
1.0 KiB
4 months ago
|
# Copyright 2020 Google Inc.
|
||
|
#
|
||
|
# Use of this source code is governed by a BSD-style license that can be
|
||
|
# found in the LICENSE file.
|
||
|
|
||
|
import("../../gn/skia.gni")
|
||
|
|
||
|
if (skia_use_ffmpeg) {
|
||
|
config("public_decoder_config") {
|
||
|
defines = [ "HAVE_VIDEO_DECODER" ]
|
||
|
include_dirs = [ "." ]
|
||
|
}
|
||
|
|
||
|
static_library("video_decoder") {
|
||
|
public_configs = [ ":public_decoder_config" ]
|
||
|
sources = [
|
||
|
"SkVideoDecoder.cpp",
|
||
|
"SkVideoDecoder.h",
|
||
|
]
|
||
|
deps = [ "../..:skia" ]
|
||
|
libs = [
|
||
|
"swscale",
|
||
|
"avcodec",
|
||
|
"avformat",
|
||
|
"avutil",
|
||
|
]
|
||
|
}
|
||
|
|
||
|
config("public_encoder_config") {
|
||
|
defines = [ "HAVE_VIDEO_ENCODER" ]
|
||
|
include_dirs = [ "." ]
|
||
|
}
|
||
|
|
||
|
static_library("video_encoder") {
|
||
|
public_configs = [ ":public_encoder_config" ]
|
||
|
sources = [
|
||
|
"SkVideoEncoder.cpp",
|
||
|
"SkVideoEncoder.h",
|
||
|
]
|
||
|
deps = [ "../..:skia" ]
|
||
|
libs = [
|
||
|
"swscale",
|
||
|
"avcodec",
|
||
|
"avformat",
|
||
|
"avutil",
|
||
|
]
|
||
|
}
|
||
|
} else {
|
||
|
group("video_decoder") {
|
||
|
}
|
||
|
group("video_encoder") {
|
||
|
}
|
||
|
}
|