# Copyright (c) 2023 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import("//build/ohos.gni")
import("//foundation/multimedia/av_codec/config.gni")

ohos_static_library("hcodec_test_helper") {
  subsystem_name = "multimedia"
  part_name = "av_codec"
  sources = [
    "command_parser.cpp",
    "start_code_detector.cpp",
    "test_utils.cpp",
    "tester_capi.cpp",
    "tester_codecbase.cpp",
    "tester_common.cpp",
  ]
  include_dirs = [
    "//third_party/openmax/api/1.1.2",
    "//drivers/peripheral/codec/interfaces/include/",
    "//foundation/window/window_manager/interfaces/innerkits/",
    "$av_codec_root_dir/services/engine/codec/video/hcodec/",
    "$av_codec_root_dir/services/engine/base/include/",
    "$av_codec_root_dir/interfaces/inner_api/native/",
    "$av_codec_root_dir/interfaces/kits/c/",
    "$av_codec_root_dir/frameworks/native/capi/common",
  ]
  deps = [
    "$av_codec_root_dir/interfaces/inner_api/native:av_codec_client",
    "$av_codec_root_dir/interfaces/kits/c:capi_packages",
    "$av_codec_root_dir/services/engine/codec/video/hcodec:hcodec",
  ]
  external_deps = [
    "c_utils:utils",
    "drivers_interface_codec:libcodec_proxy_3.0",
    "graphic_2d:librender_service_client",
    "graphic_surface:surface",
    "graphic_surface:sync_fence",
    "hilog:libhilog",
    "media_foundation:media_foundation",
    "media_foundation:native_media_core",
    "window_manager:libwm",
  ]
}