2023-12-29 08:08:14 +00:00
|
|
|
# Copyright (c) 2021-2024 Huawei Device Co., Ltd.
|
2021-06-17 03:34:15 +00:00
|
|
|
# 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("//build/ohos_var.gni")
|
2022-07-19 07:57:56 +00:00
|
|
|
import("//foundation/ability/dmsfwk/dmsfwk.gni")
|
2021-06-17 03:34:15 +00:00
|
|
|
|
2021-09-03 01:51:52 +00:00
|
|
|
group("unittest") {
|
|
|
|
testonly = true
|
|
|
|
deps = [ "test:unittest" ]
|
|
|
|
}
|
|
|
|
|
2021-06-17 03:34:15 +00:00
|
|
|
config("distributed_sched_config") {
|
2021-09-03 01:51:52 +00:00
|
|
|
visibility = [ ":*" ]
|
2023-04-12 04:01:38 +00:00
|
|
|
visibility += [ "./test/*" ]
|
2023-05-12 07:52:47 +00:00
|
|
|
include_dirs = [
|
|
|
|
"include",
|
2024-03-27 12:29:13 +00:00
|
|
|
"${dms_path}/common/include",
|
2023-09-18 07:47:17 +00:00
|
|
|
"${dms_path}/interfaces/kits/napi/include",
|
2024-01-24 02:04:30 +00:00
|
|
|
"${dms_path}/interfaces/innerkits/common/include",
|
2024-05-29 11:19:32 +00:00
|
|
|
"include/collaborate",
|
2024-02-24 04:02:38 +00:00
|
|
|
"include/continue",
|
|
|
|
"include/continue/state",
|
|
|
|
"include/continue/state/source_state",
|
|
|
|
"include/continue/state/sink_state",
|
2023-05-12 08:36:18 +00:00
|
|
|
"include/distributedWant",
|
2024-02-24 04:02:38 +00:00
|
|
|
"include/softbus_adapter/transport",
|
2023-05-12 07:52:47 +00:00
|
|
|
]
|
2022-10-18 12:38:10 +00:00
|
|
|
defines = []
|
2022-07-19 07:57:56 +00:00
|
|
|
if (dmsfwk_mission_manager) {
|
2022-10-18 12:38:10 +00:00
|
|
|
defines += [ "SUPPORT_DISTRIBUTED_MISSION_MANAGER" ]
|
2022-03-11 07:03:59 +00:00
|
|
|
}
|
2022-09-15 11:36:59 +00:00
|
|
|
if (dmsfwk_report_memmgr || dmsfwk_report_memmgr_plugins) {
|
2022-08-27 04:34:58 +00:00
|
|
|
defines += [ "SUPPORT_DISTRIBUTEDCOMPONENT_TO_MEMMGR" ]
|
|
|
|
}
|
2022-08-03 06:52:21 +00:00
|
|
|
if (dmsfwk_standard_form_share) {
|
|
|
|
defines += [ "SUPPORT_DISTRIBUTED_FORM_SHARE" ]
|
|
|
|
}
|
2022-08-24 08:57:42 +00:00
|
|
|
if (efficiency_manager_service_enable) {
|
2022-08-24 02:36:23 +00:00
|
|
|
defines += [ "EFFICIENCY_MANAGER_ENABLE" ]
|
|
|
|
}
|
2023-09-19 03:09:58 +00:00
|
|
|
if (dmsfwk_service_disable) {
|
|
|
|
defines += [ "DMS_SERVICE_DISABLE" ]
|
|
|
|
}
|
2023-09-21 12:05:43 +00:00
|
|
|
if (os_account_part) {
|
|
|
|
defines += [ "OS_ACCOUNT_PART" ]
|
|
|
|
}
|
2023-11-22 10:31:25 +00:00
|
|
|
if (dmsfwk_ces_listener) {
|
|
|
|
defines += [ "SUPPORT_COMMON_EVENT_SERVICE" ]
|
|
|
|
}
|
|
|
|
if (dmsfwk_mmi_listener) {
|
|
|
|
defines += [ "SUPPORT_MULTIMODALINPUT_SERVICE" ]
|
|
|
|
}
|
2021-09-03 01:51:52 +00:00
|
|
|
}
|
2021-06-17 03:34:15 +00:00
|
|
|
|
|
|
|
ohos_shared_library("distributedschedsvr") {
|
2023-10-17 02:16:44 +00:00
|
|
|
branch_protector_ret = "pac_ret"
|
2023-10-07 03:07:26 +00:00
|
|
|
sanitize = {
|
|
|
|
cfi = true
|
|
|
|
cfi_cross_dso = true
|
|
|
|
debug = false
|
|
|
|
}
|
|
|
|
|
2021-09-03 01:51:52 +00:00
|
|
|
install_enable = true
|
2024-04-30 11:03:41 +00:00
|
|
|
|
|
|
|
if (!dmsfwk_softbus_adapter_common) {
|
2024-06-01 03:05:03 +00:00
|
|
|
cflags = [
|
|
|
|
"-DDMSFWK_SAME_ACCOUNT",
|
|
|
|
"-DDMSFWK_INTERACTIVE_ADAPTER",
|
|
|
|
]
|
2024-04-30 11:03:41 +00:00
|
|
|
}
|
|
|
|
|
2021-09-03 01:51:52 +00:00
|
|
|
sources = [
|
2021-12-21 06:54:21 +00:00
|
|
|
"src/ability_connection_wrapper_proxy.cpp",
|
2021-09-10 02:36:40 +00:00
|
|
|
"src/ability_connection_wrapper_stub.cpp",
|
2023-02-27 12:00:38 +00:00
|
|
|
"src/adapter/dnetwork_adapter.cpp",
|
2023-04-03 12:55:31 +00:00
|
|
|
"src/app_state_observer.cpp",
|
2022-07-02 08:46:40 +00:00
|
|
|
"src/bundle/bundle_manager_callback_stub.cpp",
|
2021-09-09 02:54:37 +00:00
|
|
|
"src/bundle/bundle_manager_internal.cpp",
|
2024-05-29 11:19:32 +00:00
|
|
|
"src/collaborate/dsched_collaborate_callback_mgr.cpp",
|
2021-09-10 02:36:40 +00:00
|
|
|
"src/connect_death_recipient.cpp",
|
2024-02-24 04:02:38 +00:00
|
|
|
"src/continue/dsched_continue.cpp",
|
|
|
|
"src/continue/dsched_continue_event.cpp",
|
|
|
|
"src/continue/dsched_continue_event_handler.cpp",
|
|
|
|
"src/continue/dsched_continue_manager.cpp",
|
|
|
|
"src/continue/state/dsched_continue_state_machine.cpp",
|
|
|
|
"src/continue/state/sink_state/dsched_continue_data_state.cpp",
|
|
|
|
"src/continue/state/sink_state/dsched_continue_sink_end_state.cpp",
|
|
|
|
"src/continue/state/sink_state/dsched_continue_sink_start_state.cpp",
|
|
|
|
"src/continue/state/sink_state/dsched_continue_sink_wait_end_state.cpp",
|
|
|
|
"src/continue/state/source_state/dsched_continue_ability_state.cpp",
|
|
|
|
"src/continue/state/source_state/dsched_continue_source_end_state.cpp",
|
|
|
|
"src/continue/state/source_state/dsched_continue_source_start_state.cpp",
|
|
|
|
"src/continue/state/source_state/dsched_continue_source_wait_end_state.cpp",
|
2024-04-16 06:11:06 +00:00
|
|
|
"src/continue_scene_session_handler.cpp",
|
2024-03-30 12:57:08 +00:00
|
|
|
"src/datashare_manager.cpp",
|
2023-02-27 12:00:38 +00:00
|
|
|
"src/deviceManager/dms_device_info.cpp",
|
2024-02-22 12:00:05 +00:00
|
|
|
"src/dfx/dms_continue_time_dumper.cpp",
|
2023-02-27 12:00:38 +00:00
|
|
|
"src/dfx/dms_hisysevent_report.cpp",
|
|
|
|
"src/dfx/dms_hitrace_chain.cpp",
|
2023-04-29 08:33:44 +00:00
|
|
|
"src/distributedWant/distributed_operation.cpp",
|
|
|
|
"src/distributedWant/distributed_operation_builder.cpp",
|
|
|
|
"src/distributedWant/distributed_want.cpp",
|
|
|
|
"src/distributedWant/distributed_want_params.cpp",
|
|
|
|
"src/distributedWant/distributed_want_params_wrapper.cpp",
|
2023-02-27 12:00:38 +00:00
|
|
|
"src/distributed_device_node_listener.cpp",
|
2023-12-09 07:36:18 +00:00
|
|
|
"src/distributed_event_died_listener.cpp",
|
2024-03-07 14:20:49 +00:00
|
|
|
"src/distributed_radar.cpp",
|
2021-09-09 02:54:37 +00:00
|
|
|
"src/distributed_sched_adapter.cpp",
|
2021-09-09 10:17:48 +00:00
|
|
|
"src/distributed_sched_continuation.cpp",
|
2021-09-10 02:36:40 +00:00
|
|
|
"src/distributed_sched_dumper.cpp",
|
2021-09-10 07:03:59 +00:00
|
|
|
"src/distributed_sched_permission.cpp",
|
2021-09-03 01:51:52 +00:00
|
|
|
"src/distributed_sched_proxy.cpp",
|
|
|
|
"src/distributed_sched_service.cpp",
|
|
|
|
"src/distributed_sched_stub.cpp",
|
2022-05-26 05:59:50 +00:00
|
|
|
"src/dms_callback_task.cpp",
|
|
|
|
"src/dms_free_install_callback.cpp",
|
|
|
|
"src/dms_free_install_callback_proxy.cpp",
|
|
|
|
"src/dms_free_install_callback_stub.cpp",
|
2022-05-28 11:07:54 +00:00
|
|
|
"src/dms_token_callback.cpp",
|
2023-02-27 12:00:38 +00:00
|
|
|
"src/dms_version_manager.cpp",
|
|
|
|
"src/dtbschedmgr_device_info_storage.cpp",
|
2024-02-24 04:02:38 +00:00
|
|
|
"src/softbus_adapter/transport/dsched_data_buffer.cpp",
|
|
|
|
"src/softbus_adapter/transport/dsched_softbus_session.cpp",
|
|
|
|
"src/softbus_adapter/transport/dsched_transport_softbus_adapter.cpp",
|
2024-03-30 11:40:21 +00:00
|
|
|
"src/switch_status_dependency.cpp",
|
2021-09-03 01:51:52 +00:00
|
|
|
]
|
|
|
|
|
2023-05-31 08:02:02 +00:00
|
|
|
if (!dmsfwk_softbus_adapter_common) {
|
2023-05-12 07:52:47 +00:00
|
|
|
sources += [ "src/softbus_adapter/softbus_adapter.cpp" ]
|
|
|
|
} else {
|
|
|
|
sources += [ "src/softbus_adapter/softbus_adapter_common.cpp" ]
|
|
|
|
}
|
|
|
|
|
2022-08-22 03:18:31 +00:00
|
|
|
configs = [
|
|
|
|
":distributed_sched_config",
|
|
|
|
"//foundation/ability/dmsfwk/services/dtbschedmgr/test/resource:coverage_flags",
|
|
|
|
]
|
2021-09-03 01:51:52 +00:00
|
|
|
|
2024-03-27 12:29:13 +00:00
|
|
|
deps = [ "${dms_path}/common:distributed_sched_utils" ]
|
2023-12-29 08:08:14 +00:00
|
|
|
|
2021-09-03 01:51:52 +00:00
|
|
|
external_deps = [
|
2023-04-29 08:33:44 +00:00
|
|
|
"ability_base:base",
|
2022-02-10 00:49:03 +00:00
|
|
|
"ability_base:want",
|
2023-03-29 03:17:36 +00:00
|
|
|
"ability_base:zuri",
|
2022-01-19 08:54:04 +00:00
|
|
|
"ability_runtime:ability_manager",
|
2023-04-03 12:55:31 +00:00
|
|
|
"ability_runtime:app_manager",
|
2024-04-28 04:07:37 +00:00
|
|
|
"ability_runtime:dataobs_manager",
|
2023-08-09 14:06:21 +00:00
|
|
|
"ability_runtime:mission_info",
|
2022-02-12 14:09:01 +00:00
|
|
|
"access_token:libaccesstoken_sdk",
|
2024-07-01 06:53:47 +00:00
|
|
|
"access_token:libtokensetproc_shared",
|
2022-01-22 03:38:23 +00:00
|
|
|
"bundle_framework:appexecfwk_base",
|
|
|
|
"bundle_framework:appexecfwk_core",
|
2024-03-27 12:29:13 +00:00
|
|
|
"cJSON:cjson",
|
2022-08-10 06:22:06 +00:00
|
|
|
"c_utils:utils",
|
2024-03-30 12:57:08 +00:00
|
|
|
"data_share:datashare_consumer",
|
2022-06-16 09:14:17 +00:00
|
|
|
"device_auth:deviceauth_sdk",
|
2023-12-29 08:08:14 +00:00
|
|
|
"device_info_manager:distributed_device_profile_common",
|
|
|
|
"device_info_manager:distributed_device_profile_sdk",
|
2022-08-26 03:39:05 +00:00
|
|
|
"device_manager:devicemanagersdk",
|
2023-05-15 12:13:09 +00:00
|
|
|
"device_security_level:dslm_sdk",
|
2023-05-08 12:30:40 +00:00
|
|
|
"distributed_bundle_framework:dbms_fwk",
|
2023-06-05 09:15:45 +00:00
|
|
|
"dsoftbus:softbus_client",
|
2022-01-25 03:13:49 +00:00
|
|
|
"eventhandler:libeventhandler",
|
2023-06-19 09:26:20 +00:00
|
|
|
"hilog:libhilog",
|
|
|
|
"hisysevent:libhisysevent",
|
|
|
|
"hitrace:hitrace_meter",
|
|
|
|
"hitrace:libhitracechain",
|
2022-07-11 09:32:51 +00:00
|
|
|
"init:libbegetutil",
|
2021-09-03 01:51:52 +00:00
|
|
|
"ipc:ipc_core",
|
2022-08-13 06:53:39 +00:00
|
|
|
"kv_store:distributeddata_inner",
|
2024-07-04 13:02:14 +00:00
|
|
|
"os_account:libaccountkits",
|
2022-01-07 11:25:45 +00:00
|
|
|
"safwk:system_ability_fwk",
|
2022-07-21 13:07:18 +00:00
|
|
|
"samgr:samgr_proxy",
|
2024-05-29 08:45:46 +00:00
|
|
|
"wifi:wifi_sdk",
|
2024-04-23 11:44:34 +00:00
|
|
|
"window_manager:libwsutils",
|
2024-04-16 06:11:06 +00:00
|
|
|
"window_manager:scene_session",
|
|
|
|
"window_manager:session_manager_lite",
|
2021-09-03 01:51:52 +00:00
|
|
|
]
|
2023-09-21 12:05:43 +00:00
|
|
|
if (os_account_part) {
|
|
|
|
external_deps += [ "os_account:os_account_innerkits" ]
|
|
|
|
}
|
2021-09-03 01:51:52 +00:00
|
|
|
|
2022-08-24 08:57:42 +00:00
|
|
|
if (efficiency_manager_service_enable) {
|
2024-04-02 10:58:28 +00:00
|
|
|
external_deps += [ "resource_schedule_service:ressched_client" ]
|
2022-08-24 02:36:23 +00:00
|
|
|
}
|
|
|
|
|
2022-08-03 06:52:21 +00:00
|
|
|
if (dmsfwk_standard_form_share) {
|
2022-08-05 07:32:57 +00:00
|
|
|
external_deps += [ "form_fwk:form_manager" ]
|
|
|
|
sources += [ "src/form_mgr_death_recipient.cpp" ]
|
2022-08-03 06:52:21 +00:00
|
|
|
}
|
|
|
|
|
2022-07-19 07:57:56 +00:00
|
|
|
if (dmsfwk_mission_manager) {
|
2022-03-11 07:03:59 +00:00
|
|
|
sources += [
|
2024-04-20 04:38:27 +00:00
|
|
|
"src/mission/distributed_bm_storage.cpp",
|
|
|
|
"src/mission/distributed_bundle_info.cpp",
|
2022-03-11 07:03:59 +00:00
|
|
|
"src/mission/distributed_data_change_listener.cpp",
|
|
|
|
"src/mission/distributed_data_storage.cpp",
|
2023-05-16 03:17:35 +00:00
|
|
|
"src/mission/distributed_mission_broadcast_listener.cpp",
|
2022-03-11 07:03:59 +00:00
|
|
|
"src/mission/distributed_mission_change_listener.cpp",
|
2023-05-16 03:17:35 +00:00
|
|
|
"src/mission/distributed_mission_died_listener.cpp",
|
|
|
|
"src/mission/distributed_mission_focused_listener.cpp",
|
2022-03-11 07:03:59 +00:00
|
|
|
"src/mission/distributed_mission_info.cpp",
|
|
|
|
"src/mission/distributed_sched_mission_manager.cpp",
|
2024-01-30 02:44:17 +00:00
|
|
|
"src/mission/dms_continue_recv_manager.cpp",
|
|
|
|
"src/mission/dms_continue_send_manager.cpp",
|
2022-03-11 07:03:59 +00:00
|
|
|
"src/mission/kvstore_death_recipient.cpp",
|
|
|
|
"src/mission/mission_changed_notify.cpp",
|
|
|
|
"src/mission/mission_info_converter.cpp",
|
|
|
|
"src/mission/snapshot.cpp",
|
|
|
|
"src/mission/snapshot_converter.cpp",
|
2024-05-29 08:45:46 +00:00
|
|
|
"src/mission/wifi_state_adapter.cpp",
|
|
|
|
"src/mission/wifi_state_listener.cpp",
|
2022-03-11 07:03:59 +00:00
|
|
|
]
|
2023-07-06 07:23:25 +00:00
|
|
|
external_deps += [ "image_framework:image_native" ]
|
2022-03-11 07:03:59 +00:00
|
|
|
}
|
|
|
|
|
2022-09-15 11:36:59 +00:00
|
|
|
if (dmsfwk_report_memmgr) {
|
|
|
|
external_deps += [ "memmgr:memmgrclient" ]
|
|
|
|
}
|
|
|
|
|
|
|
|
if (dmsfwk_report_memmgr_plugins) {
|
2024-04-19 03:57:30 +00:00
|
|
|
external_deps += [ "memmgr_override:memmgrclient" ]
|
2022-08-27 04:34:58 +00:00
|
|
|
}
|
|
|
|
|
2023-11-22 10:31:25 +00:00
|
|
|
if (dmsfwk_ces_listener) {
|
|
|
|
external_deps += [ "common_event_service:cesfwk_innerkits" ]
|
|
|
|
sources += [ "src/common_event_listener.cpp" ]
|
|
|
|
}
|
|
|
|
|
|
|
|
if (dmsfwk_mmi_listener) {
|
|
|
|
external_deps += [ "input:libmmi-client" ]
|
|
|
|
sources += [ "src/adapter/mmi_adapter.cpp" ]
|
2024-01-13 08:15:37 +00:00
|
|
|
} else {
|
|
|
|
sources += [ "src/adapter/mmi_adapter_common.cpp" ]
|
2023-11-22 10:31:25 +00:00
|
|
|
}
|
|
|
|
|
2022-06-09 12:06:13 +00:00
|
|
|
install_images = [ system_base_dir ]
|
|
|
|
relative_install_dir = "platformsdk"
|
2022-07-19 07:57:56 +00:00
|
|
|
part_name = "dmsfwk"
|
|
|
|
subsystem_name = "ability"
|
2021-06-17 03:34:15 +00:00
|
|
|
}
|