1# Copyright (c) 2022 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("//build/test.gni") 16import("//drivers/hdf_core/adapter/uhdf2/uhdf.gni") 17 18ohos_unittest("codec_hdi_adapter_test") { 19 module_out_path = "hdf/codec" 20 include_dirs = [ 21 "//drivers/peripheral/codec/interfaces/include", 22 "//third_party/openmax/api/1.1.2", 23 ] 24 sources = [ "codec_hdi_adapter_test.cpp" ] 25 26 deps = [ 27 "//drivers/peripheral/codec/hal/passthrough:codec_hdi_passthrough", 28 "//third_party/googletest:gtest_main", 29 ] 30 31 if (is_standard_system) { 32 external_deps = [ 33 "c_utils:utils", 34 "hdf_core:libhdf_utils", 35 "hdf_core:libhdi", 36 "hiviewdfx_hilog_native:libhilog", 37 ] 38 } else { 39 external_deps = [ "hilog:libhilog" ] 40 } 41} 42