• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2023 Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("//build/ohos.gni")
15import("//foundation/multimedia/av_codec/config.gni")
16
17ohos_static_library("av_codec_video_ffmpeg_codec") {
18  sanitize = {
19    cfi = true
20    cfi_cross_dso = true
21    debug = false
22  }
23  include_dirs = [
24    "$av_codec_root_dir/interfaces/inner_api/native",
25    "$av_codec_root_dir/interfaces/kits/c",
26    "$av_codec_root_dir/services/dfx/include",
27    "$av_codec_root_dir/services/engine/base/include",
28    "$av_codec_root_dir/services/engine/codec/include/video",
29    "$av_codec_root_dir/services/engine/common/include",
30    "$av_codec_root_dir/services/utils/include",
31    "//drivers/peripheral/display/interfaces/include",
32    "//base/startup/init/interfaces/innerkits/include/syspara",
33    "//base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/include",
34    "//third_party/ffmpeg",
35  ]
36
37  defines = []
38  defines += av_codec_defines
39
40  sources = [
41    "$av_codec_root_dir/services/engine/codec/video/fcodec.cpp",
42    "$av_codec_root_dir/services/engine/codec/video/hcodec_loader.cpp",
43  ]
44
45  deps = [
46    "$av_codec_root_dir/services/engine/base:av_codec_codec_base",
47    "$av_codec_root_dir/services/engine/common:av_codec_engine_common",
48    "//third_party/ffmpeg:libohosffmpeg",
49  ]
50
51  public_deps = [
52    "$av_codec_root_dir/services/dfx:av_codec_service_dfx",
53    "$av_codec_root_dir/services/utils:av_codec_format",
54    "$av_codec_root_dir/services/utils:av_codec_service_utils",
55    "//third_party/bounds_checking_function:libsec_static",
56  ]
57
58  external_deps = [
59    "c_utils:utils",
60    "graphic_2d:surface",
61    "graphic_2d:sync_fence",
62    "hilog:libhilog",
63    "hisysevent:libhisysevent",
64    "hitrace:hitrace_meter",
65  ]
66
67  subsystem_name = "multimedia"
68  part_name = "av_codec"
69}
70