1# Copyright (c) 2022 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("//base/update/updateservice/updateengine.gni")
15
16startup_root_path = "$updateengine_root_path/services/startup"
17
18startup_internal_deps = []
19startup_external_deps = []
20startup_deps = []
21startup_public_deps = []
22startup_include = [
23  "$startup_root_path/access/include",
24  "$startup_root_path/manage/include",
25  "$startup_root_path/model/include",
26]
27startup_src = [
28  "$startup_root_path/access/src/access_factory.cpp",
29  "$startup_root_path/access/src/access_manager.cpp",
30  "$startup_root_path/access/src/default_access.cpp",
31  "$startup_root_path/access/src/firmware_access.cpp",
32  "$startup_root_path/manage/src/schedule_config.cpp",
33  "$startup_root_path/manage/src/schedule_manager.cpp",
34  "$startup_root_path/manage/src/startup_manager.cpp",
35  "$startup_root_path/manage/src/system_ability_operator.cpp",
36]
37
38if (ability_ability_runtime_enable) {
39  startup_src += [ "$startup_root_path/manage/src/startup_schedule.cpp" ]
40} else {
41  startup_src += [ "$startup_root_path/manage/src/startup_schedule_empty.cpp" ]
42}
43