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_loader") {
18  branch_protector_ret = "pac_ret"
19  sanitize = av_codec_sanitize
20  include_dirs = [
21    "$av_codec_root_dir/interfaces/inner_api/native",
22    "$av_codec_root_dir/interfaces/kits/c",
23    "$av_codec_root_dir/services/dfx/include",
24    "$av_codec_root_dir/services/engine/base/include",
25    "$av_codec_root_dir/services/engine/codec/include/video",
26    "$av_codec_root_dir/services/engine/codec/video/fcodec",
27    "$av_codec_root_dir/services/engine/codec/video/hevcdecoder",
28    "$av_codec_root_dir/services/engine/common/include",
29    "$av_codec_root_dir/services/utils/include",
30  ]
31
32  defines = []
33  defines += av_codec_defines
34
35  sources = [
36    "$av_codec_root_dir/services/engine/codec/video/fcodec_loader.cpp",
37    "$av_codec_root_dir/services/engine/codec/video/hcodec_loader.cpp",
38    "$av_codec_root_dir/services/engine/codec/video/hevc_decoder_loader.cpp",
39    "$av_codec_root_dir/services/engine/codec/video/video_codec_loader.cpp",
40  ]
41
42  deps = [ "$av_codec_root_dir/services/engine/base:av_codec_codec_base" ]
43
44  public_deps = [
45    "$av_codec_root_dir/services/dfx:av_codec_service_dfx",
46    "$av_codec_root_dir/services/utils:av_codec_service_utils",
47  ]
48
49  external_deps = [
50    "bounds_checking_function:libsec_static",
51    "c_utils:utils",
52    "ffmpeg:libohosffmpeg",
53    "graphic_surface:surface",
54    "graphic_surface:sync_fence",
55    "hilog:libhilog",
56    "hisysevent:libhisysevent",
57    "hitrace:hitrace_meter",
58    "media_foundation:media_foundation",
59  ]
60
61  subsystem_name = "multimedia"
62  part_name = "av_codec"
63}
64