mirror of
https://gitee.com/openharmony/distributedhardware_distributed_hardware_fwk
synced 2024-11-23 07:40:26 +00:00
bfb61c94a4
Signed-off-by: Bobie <zhouchuanbo2@huawei.com>
88 lines
2.3 KiB
Plaintext
88 lines
2.3 KiB
Plaintext
# Copyright (c) 2024 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("../distributed_av_transport.gni")
|
|
|
|
config("av_pipeline_fwk_external_config") {
|
|
include_dirs = [
|
|
"${common_path}/include",
|
|
"${dh_fwk_sdk_path}/include",
|
|
"${interface_path}",
|
|
]
|
|
}
|
|
|
|
ohos_shared_library("distributed_av_pipeline_fwk") {
|
|
sanitize = {
|
|
cfi = true
|
|
cfi_cross_dso = true
|
|
cfi_no_nvcall = true
|
|
cfi_vcall_icall_only = true
|
|
debug = false
|
|
boundary_sanitize = true
|
|
integer_overflow = true
|
|
ubsan = true
|
|
}
|
|
branch_protector_ret = "pac_ret"
|
|
public_configs = [ ":av_pipeline_fwk_external_config" ]
|
|
|
|
include_dirs = [
|
|
"${dh_fwk_utils_path}/include",
|
|
"${distributed_av_transport_path}/framework",
|
|
"${distributed_av_transport_path}/framework/filter/include",
|
|
]
|
|
|
|
sources = [
|
|
"${common_path}/src/av_trans_log.cpp",
|
|
"${distributed_av_transport_path}/framework/filter/src/filter.cpp",
|
|
"${distributed_av_transport_path}/framework/filter/src/filter_factory.cpp",
|
|
"${distributed_av_transport_path}/framework/pipeline/src/pipeline.cpp",
|
|
]
|
|
|
|
deps = [ "${dh_fwk_sdk_path}:libdhfwk_sdk" ]
|
|
|
|
defines = [
|
|
"HI_LOG_ENABLE",
|
|
"DH_LOG_TAG=\"av_trans_fwk\"",
|
|
"LOG_DOMAIN=0xD004101",
|
|
]
|
|
|
|
external_deps = [
|
|
"bounds_checking_function:libsec_shared",
|
|
"c_utils:utils",
|
|
"hilog:libhilog",
|
|
"hisysevent:libhisysevent",
|
|
"hitrace:hitrace_meter",
|
|
"ipc:ipc_core",
|
|
"safwk:system_ability_fwk",
|
|
"samgr:samgr_proxy",
|
|
]
|
|
|
|
if (histreamer_compile_part) {
|
|
external_deps += [ "media_foundation:media_foundation" ]
|
|
}
|
|
|
|
cflags = [
|
|
"-fexceptions",
|
|
"-fno-rtti",
|
|
"-fPIC",
|
|
"-O2",
|
|
"-Wall",
|
|
"-Wno-c++20-extensions",
|
|
]
|
|
cflags_cc = cflags
|
|
|
|
part_name = "distributed_hardware_fwk"
|
|
subsystem_name = "distributedhardware"
|
|
}
|