1# Copyright (c) 2024  Huawei Device Co., Ltd.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at
5#
6#     http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
14import("//build/ohos/sa_profile/sa_profile.gni")
15import("workscheduler.gni")
16
17group("fwk_group_work_scheduler_all") {
18  if (work_scheduler_device_enable) {
19    deps = [
20      "${worksched_frameworks_path}:workschedclient",
21      "${worksched_frameworks_path}/extension:workschedextension",
22      "${worksched_interfaces_path}/kits/cj:cj_work_scheduler_ffi",
23      "${worksched_interfaces_path}/kits/js:workscheduler",
24      "${worksched_interfaces_path}/kits/js/napi/work_scheduler_extension:workschedulerextensionability_napi",
25      "${worksched_interfaces_path}/kits/js/napi/work_scheduler_extension_context:workschedulerextensioncontext_napi",
26    ]
27  }
28}
29
30group("service_group_work_scheduler_all") {
31  if (work_scheduler_device_enable) {
32    deps = [
33      "${worksched_root_path}/sa_profile:worksched_sa_profile",
34      "${worksched_service_path}:workschedservice",
35    ]
36  }
37}
38
39group("test_work_scheduler_all") {
40  testonly = true
41  if (work_scheduler_device_enable) {
42    deps = [
43      "${worksched_frameworks_path}/test/unittest:workinfotest",
44      "${worksched_interfaces_path}/test/unittest/work_scheduler_jsunittest:js_unittest",
45      "${worksched_service_path}/test:unittest",
46      "${worksched_test_path}/fuzztest:fuzztest",
47      "${worksched_test_path}/fuzztest/workscheduleservice_fuzzer:fuzztest",
48    ]
49  }
50}
51