弹性部署整改

Signed-off-by: moooon <muhe1@huawei.com>
This commit is contained in:
moooon 2024-04-25 10:50:32 +08:00
parent 18fe2ba80f
commit 02eac4bcb2
3 changed files with 72 additions and 32 deletions

66
BUILD.gn Normal file
View File

@ -0,0 +1,66 @@
# 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/sa_profile/sa_profile.gni")
import("bgtaskmgr.gni")
group("fwk_group_background_task_mgr_all") {
if (background_task_mgr_device_enable) {
deps = [ "${bgtaskmgr_interfaces_path}:bgtaskmgr_interfaces" ]
}
}
group("service_group_background_task_mgr_all") {
if (background_task_mgr_device_enable) {
deps = [
"${bgtaskmgr_root_path}/resources:bgtaskmgr_resources",
"${bgtaskmgr_root_path}/sa_profile:bgtaskmgr_sa_profile",
"${bgtaskmgr_root_path}/sa_profile:bgtaskmgr_service_init",
"${bgtaskmgr_root_path}/services:bgtaskmgr_service",
]
}
}
group("test_background_task_mgr_all") {
testonly = true
if (background_task_mgr_device_enable) {
deps = [
"${bgtaskmgr_root_path}/frameworks/test/unittest:unittest",
"${bgtaskmgr_root_path}/interfaces/test/unittest/bgtask_manager_client_test:bgtask_client_unit_test",
"${bgtaskmgr_root_path}/interfaces/test/unittest/continuous_task_jsunittest:js_unittest",
"${bgtaskmgr_root_path}/interfaces/test/unittest/efficiency_resources_jsunittest:js_unittest",
"${bgtaskmgr_root_path}/interfaces/test/unittest/transient_task_jsunittest:js_unittest",
"${bgtaskmgr_root_path}/services/test/unittest:unittest",
"${bgtaskmgr_root_path}/test/fuzztest/bgtaskapplyefficiencyresources_fuzzer:fuzztest",
"${bgtaskmgr_root_path}/test/fuzztest/bgtaskbackgroundrunningforinner_fuzzer:fuzztest",
"${bgtaskmgr_root_path}/test/fuzztest/bgtaskcancelsuspenddelay_fuzzer:fuzztest",
"${bgtaskmgr_root_path}/test/fuzztest/bgtaskgetcontinuoustaskapps_fuzzer:fuzztest",
"${bgtaskmgr_root_path}/test/fuzztest/bgtaskgetefficiencyresourcesinfos_fuzzer:fuzztest",
"${bgtaskmgr_root_path}/test/fuzztest/bgtaskgetremainingdelaytime_fuzzer:fuzztest",
"${bgtaskmgr_root_path}/test/fuzztest/bgtaskgettransienttaskapps_fuzzer:fuzztest",
"${bgtaskmgr_root_path}/test/fuzztest/bgtaskonremoterequest_fuzzer:fuzztest",
"${bgtaskmgr_root_path}/test/fuzztest/bgtaskrequestsuspenddelay_fuzzer:fuzztest",
"${bgtaskmgr_root_path}/test/fuzztest/bgtaskresetallefficiencyresources_fuzzer:fuzztest",
"${bgtaskmgr_root_path}/test/fuzztest/bgtaskstartbackgroundrunning_fuzzer:fuzztest",
"${bgtaskmgr_root_path}/test/fuzztest/bgtaskstopbackgroundrunning_fuzzer:fuzztest",
"${bgtaskmgr_root_path}/test/fuzztest/bgtaskstopcontinuoustask_fuzzer:fuzztest",
"${bgtaskmgr_root_path}/test/fuzztest/bgtasksubscribebackgroundtask_fuzzer:fuzztest",
"${bgtaskmgr_root_path}/test/fuzztest/bgtasksubscriber_fuzzer:fuzztest",
"${bgtaskmgr_root_path}/test/fuzztest/bgtasksubscriberstubonremote_fuzzer:fuzztest",
"${bgtaskmgr_root_path}/test/fuzztest/bgtasksystemeventobserver_fuzzer:fuzztest",
"${bgtaskmgr_root_path}/test/fuzztest/bgtaskunsubscribebackgroundtask_fuzzer:fuzztest",
"${bgtaskmgr_root_path}/test/fuzztest/bgtaskupdatebackgroundrunning_fuzzer:fuzztest",
"${bgtaskmgr_root_path}/test/systemtest:systemtest",
]
}
}

View File

@ -26,6 +26,7 @@ bgtaskmgr_test_path = "${bgtaskmgr_root_path}/test"
declare_args() {
background_task_mgr_graphics = true
background_task_mgr_jsstack = true
background_task_mgr_device_enable = true
}
if (!defined(global_parts_info) ||

View File

@ -19,7 +19,8 @@
],
"features": [
"background_task_mgr_graphics",
"background_task_mgr_jsstack"
"background_task_mgr_jsstack",
"background_task_mgr_device_enable"
],
"adapted_system_type": [
"standard"
@ -61,13 +62,10 @@
"group_type": {
"base_group": [],
"fwk_group": [
"//foundation/resourceschedule/background_task_mgr/interfaces:bgtaskmgr_interfaces"
"//foundation/resourceschedule/background_task_mgr:fwk_group_background_task_mgr_all"
],
"service_group": [
"//foundation/resourceschedule/background_task_mgr/sa_profile:bgtaskmgr_sa_profile",
"//foundation/resourceschedule/background_task_mgr/sa_profile:bgtaskmgr_service_init",
"//foundation/resourceschedule/background_task_mgr/services:bgtaskmgr_service",
"//foundation/resourceschedule/background_task_mgr/resources:bgtaskmgr_resources"
"//foundation/resourceschedule/background_task_mgr:service_group_background_task_mgr_all"
]
},
"inner_kits": [
@ -92,32 +90,7 @@
}
],
"test": [
"//foundation/resourceschedule/background_task_mgr/frameworks/test/unittest:unittest",
"//foundation/resourceschedule/background_task_mgr/interfaces/test/unittest/bgtask_manager_client_test:bgtask_client_unit_test",
"//foundation/resourceschedule/background_task_mgr/interfaces/test/unittest/continuous_task_jsunittest:js_unittest",
"//foundation/resourceschedule/background_task_mgr/interfaces/test/unittest/efficiency_resources_jsunittest:js_unittest",
"//foundation/resourceschedule/background_task_mgr/interfaces/test/unittest/transient_task_jsunittest:js_unittest",
"//foundation/resourceschedule/background_task_mgr/services/test/unittest:unittest",
"//foundation/resourceschedule/background_task_mgr/test/systemtest:systemtest",
"//foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskapplyefficiencyresources_fuzzer:fuzztest",
"//foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskbackgroundrunningforinner_fuzzer:fuzztest",
"//foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskcancelsuspenddelay_fuzzer:fuzztest",
"//foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskgetcontinuoustaskapps_fuzzer:fuzztest",
"//foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskgetefficiencyresourcesinfos_fuzzer:fuzztest",
"//foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskgetremainingdelaytime_fuzzer:fuzztest",
"//foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskgettransienttaskapps_fuzzer:fuzztest",
"//foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskonremoterequest_fuzzer:fuzztest",
"//foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskrequestsuspenddelay_fuzzer:fuzztest",
"//foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskresetallefficiencyresources_fuzzer:fuzztest",
"//foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskstartbackgroundrunning_fuzzer:fuzztest",
"//foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskstopbackgroundrunning_fuzzer:fuzztest",
"//foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskstopcontinuoustask_fuzzer:fuzztest",
"//foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtasksubscribebackgroundtask_fuzzer:fuzztest",
"//foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtasksubscriber_fuzzer:fuzztest",
"//foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskunsubscribebackgroundtask_fuzzer:fuzztest",
"//foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtaskupdatebackgroundrunning_fuzzer:fuzztest",
"//foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtasksystemeventobserver_fuzzer:fuzztest",
"//foundation/resourceschedule/background_task_mgr/test/fuzztest/bgtasksubscriberstubonremote_fuzzer:fuzztest"
"//foundation/resourceschedule/background_task_mgr:test_background_task_mgr_all"
]
}
}