Files
2024-09-27 19:16:49 +08:00

95 lines
2.7 KiB
Plaintext

# Copyright (c) 2023 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")
sec_comp_root_dir = ".."
config("libsecurity_component_framework_config") {
include_dirs = [
"common/include",
"${sec_comp_root_dir}/interfaces/inner_api/security_component/include",
]
}
ohos_shared_library("libsecurity_component_framework") {
subsystem_name = "security"
part_name = "security_component_manager"
output_name = "libsecurity_component_framework"
include_dirs = [
"common/include",
"security_component/include",
"${sec_comp_root_dir}/interfaces/inner_api/security_component/include",
"//third_party/json/include",
]
sources = [
"common/src/sec_comp_tool.cpp",
"security_component/src/location_button.cpp",
"security_component/src/paste_button.cpp",
"security_component/src/save_button.cpp",
"security_component/src/sec_comp_base.cpp",
"security_component/src/sec_comp_click_event_parcel.cpp",
]
configs = [ "${sec_comp_root_dir}/config:coverage_flags" ]
public_configs = [ ":libsecurity_component_framework_config" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
]
cflags_cc = [ "-DHILOG_ENABLE" ]
}
config("libsecurity_component_enhance_adapter_config") {
include_dirs = [
"common/include",
"enhance_adapter/include",
"${sec_comp_root_dir}/interfaces/inner_api/security_component/include",
"//third_party/json/include",
]
}
ohos_shared_library("libsecurity_component_enhance_adapter") {
subsystem_name = "security"
part_name = "security_component_manager"
output_name = "libsecurity_component_enhance_adapter"
include_dirs = [
"common/include",
"enhance_adapter/include",
"${sec_comp_root_dir}/interfaces/inner_api/security_component/include",
"//third_party/json/include",
]
sources = [ "enhance_adapter/src/sec_comp_enhance_adapter.cpp" ]
configs = [ "${sec_comp_root_dir}/config:coverage_flags" ]
public_configs = [ ":libsecurity_component_enhance_adapter_config" ]
external_deps = [
"c_utils:utils",
"hilog:libhilog",
"ipc:ipc_single",
]
cflags_cc = [ "-DHILOG_ENABLE" ]
if (current_cpu == "arm64") {
defines = [ "_ARM64_" ]
}
}