mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-24 22:21:36 -04:00
1de71622dd
Co-Authored-By: Agent Signed-off-by: wangzhen <wangzhen416@huawei.com> 🤖 AI[98%] 👌 AI Adopted[98%] 🧑 Human[2%] 🤖 AI[0%] 👌 AI Adopted[0%] 🧑 Human[100%] Change-Id: I0f5ee21f0ea499d0abc9a0690249f040cb715805
132 lines
4.1 KiB
Plaintext
132 lines
4.1 KiB
Plaintext
# Copyright (c) 2024-2026 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("//foundation/ability/ability_runtime/ability_runtime.gni")
|
|
|
|
config("ability_runtime_ndk_config") {
|
|
include_dirs = [
|
|
"include",
|
|
"${ability_runtime_ndk_path}",
|
|
"${ability_runtime_ndk_path}/ability_runtime",
|
|
"${ability_runtime_innerkits_path}",
|
|
]
|
|
|
|
if (target_cpu == "arm") {
|
|
cflags = [ "-DBINDER_IPC_32BIT" ]
|
|
}
|
|
}
|
|
|
|
ohos_shared_library("ability_runtime") {
|
|
sanitize = {
|
|
integer_overflow = true
|
|
ubsan = true
|
|
boundary_sanitize = true
|
|
cfi = true
|
|
cfi_cross_dso = true
|
|
cfi_vcall_icall_only = true
|
|
cfi_policy = "adaptive"
|
|
debug = false
|
|
}
|
|
branch_protector_ret = "pac_ret"
|
|
|
|
include_dirs = [
|
|
"include",
|
|
"${ability_runtime_path}/interfaces/inner_api",
|
|
"${ability_runtime_path}/interfaces/kits/native/appkit/ability_runtime",
|
|
"${ability_runtime_path}/interfaces/kits/native/ability/native/modular_object_extension",
|
|
]
|
|
|
|
configs = [
|
|
"${ability_runtime_services_path}/common:common_config",
|
|
"${ability_runtime_services_path}/common:optimize_config",
|
|
]
|
|
public_configs = [ ":ability_runtime_ndk_config" ]
|
|
|
|
sources = [
|
|
"src/ability_business_error_utils.cpp",
|
|
"src/application_context.cpp",
|
|
"src/connect_options.cpp",
|
|
"src/context.cpp",
|
|
"src/load_ability_callback_impl.cpp",
|
|
"src/mo_dispatcher_complex_type_manager.cpp",
|
|
"src/mo_dispatcher_metadata_manager.cpp",
|
|
"src/mo_dispatcher_type.cpp",
|
|
"src/mo_dispatcher_param_codec.cpp",
|
|
"src/modular_object_dispatcher.cpp",
|
|
"src/modular_object_extension_ability.cpp",
|
|
"src/modular_object_extension_context.cpp",
|
|
"src/c_modular_object_connection_callback.cpp",
|
|
"src/modular_object_extension_manager.cpp",
|
|
"src/modular_object_connection_manager.cpp",
|
|
"src/modular_object_ability_connection.cpp",
|
|
"src/c_modular_object_utils.cpp",
|
|
"src/native_ability_wrapper.cpp",
|
|
"src/start_options.cpp",
|
|
"src/start_options_impl.cpp",
|
|
"src/want_utils.cpp",
|
|
]
|
|
|
|
deps = [
|
|
"${ability_runtime_innerkits_path}/ability_manager:ability_connect_callback_stub",
|
|
"${ability_runtime_innerkits_path}/ability_manager:ability_manager",
|
|
"${ability_runtime_innerkits_path}/ability_manager:ability_start_options",
|
|
"${ability_runtime_innerkits_path}/ability_manager:process_options",
|
|
"${ability_runtime_innerkits_path}/ability_manager:start_window_option",
|
|
"${ability_runtime_innerkits_path}/app_manager:app_manager",
|
|
"${ability_runtime_innerkits_path}/page_config_manager:page_config_manager",
|
|
"${ability_runtime_native_path}/ability:ability_context_native",
|
|
"${ability_runtime_native_path}/ability/native:modular_object_extension",
|
|
"${ability_runtime_native_path}/appkit:app_context",
|
|
]
|
|
|
|
external_deps = [
|
|
"ability_base:ability_base_want",
|
|
"ability_base:want",
|
|
"c_utils:utils",
|
|
"eventhandler:libeventhandler",
|
|
"ffrt:libffrt",
|
|
"hilog:libhilog",
|
|
"image_framework:image_native",
|
|
"image_framework:pixelmap",
|
|
"ipc:ipc_capi",
|
|
"ipc:ipc_core",
|
|
"ipc:ipc_napi",
|
|
"napi:ace_napi",
|
|
"samgr:samgr_proxy",
|
|
]
|
|
|
|
if (ability_runtime_graphics) {
|
|
external_deps += [
|
|
"image_framework:image",
|
|
"window_manager:libwm",
|
|
"window_manager:window_animation_utils",
|
|
]
|
|
defines = [
|
|
"SUPPORT_GRAPHICS",
|
|
"SUPPORT_SCREEN",
|
|
]
|
|
}
|
|
|
|
if (ability_runtime_graphics &&
|
|
ability_runtime_start_window_options_with_pixelmap) {
|
|
defines += [ "START_WINDOW_OPTIONS_WITH_PIXELMAP" ]
|
|
}
|
|
|
|
output_extension = "so"
|
|
innerapi_tags = [ "ndk" ]
|
|
install_images = [ "system" ]
|
|
subsystem_name = "ability"
|
|
part_name = "ability_runtime"
|
|
}
|