# Copyright (c) 2020-2021 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/lite/config/component/lite_component.gni") import("//foundation/multimedia/media_utils_lite/config.gni") executable("test_play_file_h265") { sources = [ "test_play_file_h265.cpp" ] cflags = [ "-Wall" ] cflags += [ "-Wno-error" ] cflags_cc = cflags include_dirs = [ "//third_party/bounds_checking_function/include", "//drivers/peripheral/codec/interfaces/include", "//foundation/multimedia/media_utils_lite/hals", ] if (enable_media_passthrough_mode == true) { defines = [ "ENABLE_PASSTHROUGH_MODE" ] } ldflags = [ "-lstdc++" ] ldflags += [ "-lcodec" ] ldflags += [ "-Wl,-rpath-link=$ohos_root_path/$root_out_dir" ] deps = [ "//device/soc/hisilicon/common/hal/media:hardware_media_sdk", "//third_party/bounds_checking_function:libsec_shared", ] }