18c77b71bSopenharmony_ci# Copyright (c) 2020-2021 Huawei Device Co., Ltd. 28c77b71bSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 38c77b71bSopenharmony_ci# you may not use this file except in compliance with the License. 48c77b71bSopenharmony_ci# You may obtain a copy of the License at 58c77b71bSopenharmony_ci# 68c77b71bSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 78c77b71bSopenharmony_ci# 88c77b71bSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 98c77b71bSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 108c77b71bSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 118c77b71bSopenharmony_ci# See the License for the specific language governing permissions and 128c77b71bSopenharmony_ci# limitations under the License. 138c77b71bSopenharmony_ciimport("//build/lite/config/component/lite_component.gni") 148c77b71bSopenharmony_ciimport("//foundation/multimedia/media_utils_lite/config.gni") 158c77b71bSopenharmony_ci 168c77b71bSopenharmony_ciexecutable("test_play_file_h265") { 178c77b71bSopenharmony_ci sources = [ "test_play_file_h265.cpp" ] 188c77b71bSopenharmony_ci cflags = [ "-Wall" ] 198c77b71bSopenharmony_ci cflags += [ "-Wno-error" ] 208c77b71bSopenharmony_ci cflags_cc = cflags 218c77b71bSopenharmony_ci include_dirs = [ 228c77b71bSopenharmony_ci "//third_party/bounds_checking_function/include", 238c77b71bSopenharmony_ci "//drivers/peripheral/codec/interfaces/include", 248c77b71bSopenharmony_ci "//foundation/multimedia/media_utils_lite/hals", 258c77b71bSopenharmony_ci ] 268c77b71bSopenharmony_ci 278c77b71bSopenharmony_ci if (enable_media_passthrough_mode == true) { 288c77b71bSopenharmony_ci defines = [ "ENABLE_PASSTHROUGH_MODE" ] 298c77b71bSopenharmony_ci } 308c77b71bSopenharmony_ci 318c77b71bSopenharmony_ci ldflags = [ "-lstdc++" ] 328c77b71bSopenharmony_ci ldflags += [ "-lcodec" ] 338c77b71bSopenharmony_ci ldflags += [ "-Wl,-rpath-link=$ohos_root_path/$root_out_dir" ] 348c77b71bSopenharmony_ci deps = [ 358c77b71bSopenharmony_ci "//device/soc/hisilicon/common/hal/media:hardware_media_sdk", 368c77b71bSopenharmony_ci "//third_party/bounds_checking_function:libsec_shared", 378c77b71bSopenharmony_ci ] 388c77b71bSopenharmony_ci} 39