1# Copyright (c) 2020-2021 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. 13import("//build/lite/config/component/lite_component.gni") 14import("//foundation/multimedia/media_utils_lite/config.gni") 15 16executable("test_play_file_h265") { 17 sources = [ "test_play_file_h265.cpp" ] 18 cflags = [ "-Wall" ] 19 cflags += [ "-Wno-error" ] 20 cflags_cc = cflags 21 include_dirs = [ 22 "//third_party/bounds_checking_function/include", 23 "//drivers/peripheral/codec/interfaces/include", 24 "//foundation/multimedia/media_utils_lite/hals", 25 ] 26 27 if (enable_media_passthrough_mode == true) { 28 defines = [ "ENABLE_PASSTHROUGH_MODE" ] 29 } 30 31 ldflags = [ "-lstdc++" ] 32 ldflags += [ "-lcodec" ] 33 ldflags += [ "-Wl,-rpath-link=$ohos_root_path/$root_out_dir" ] 34 deps = [ 35 "//device/soc/hisilicon/common/hal/media:hardware_media_sdk", 36 "//third_party/bounds_checking_function:libsec_shared", 37 ] 38} 39