• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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.gni")
15import("//foundation/appexecfwk/standard/appexecfwk.gni")
16
17config("formmgr_config") {
18  include_dirs = [
19    "include",
20    "//third_party/json/include",
21    "//utils/system/safwk/native/include",
22
23    #    "//base/miscservices/time/interfaces/innerkits/include",
24  ]
25}
26
27group("fms_target") {
28  deps = [ ":libfms" ]
29}
30
31ohos_shared_library("libfms") {
32  include_dirs = [
33    "//foundation/appexecfwk/standard/interfaces/innerkits/libeventhandler/include",
34    "//foundation/aafwk/standard/interfaces/innerkits/ability_manager/include",
35    "//base/security/permission/interfaces/innerkits/permission_standard/permissionsdk/main/cpp/include",
36    "//foundation/appexecfwk/standard/interfaces/innerkits/appexecfwk_core/include/bundlemgr",
37
38    #  "//third_party/libuuid",
39  ]
40  sources = [
41    "src/form_ability_connection.cpp",
42    "src/form_acquire_connection.cpp",
43    "src/form_ams_helper.cpp",
44    "src/form_batch_delete_connection.cpp",
45    "src/form_bms_helper.cpp",
46    "src/form_cache_mgr.cpp",
47    "src/form_cast_temp_connection.cpp",
48    "src/form_data_mgr.cpp",
49    "src/form_db_cache.cpp",
50    "src/form_db_info.cpp",
51    "src/form_delete_connection.cpp",
52    "src/form_dump_mgr.cpp",
53    "src/form_event_notify_connection.cpp",
54    "src/form_host_callback.cpp",
55    "src/form_host_record.cpp",
56    "src/form_item_info.cpp",
57    "src/form_mgr_adapter.cpp",
58    "src/form_mgr_service.cpp",
59    "src/form_msg_event_connection.cpp",
60    "src/form_provider_mgr.cpp",
61    "src/form_refresh_connection.cpp",
62    "src/form_refresh_limiter.cpp",
63    "src/form_storage_mgr.cpp",
64    "src/form_supply_callback.cpp",
65    "src/form_sys_event_receiver.cpp",
66    "src/form_task_mgr.cpp",
67    "src/form_timer_mgr.cpp",
68    "src/form_util.cpp",
69  ]
70
71  defines = [
72    "APP_LOG_TAG = \"FormMgrService\"",
73    "LOG_DOMAIN = 0xD001120",
74  ]
75
76  configs = [
77    ":formmgr_config",
78    "//base/miscservices/time/services:time_service_config",
79    "${appexecfwk_path}/interfaces/innerkits/appexecfwk_core:formmgr_sdk_config",
80  ]
81  cflags = []
82  if (target_cpu == "arm") {
83    cflags += [ "-DBINDER_IPC_32BIT" ]
84  }
85  deps = [
86    "${appexecfwk_path}/common:libappexecfwk_common",
87    "${libs_path}/libeventhandler:libeventhandler_target",
88    "//base/miscservices/time/services:time_service",
89    "//base/notification/ans_standard/frameworks/wantagent:wantagent_innerkits",
90    "//foundation/distributedschedule/dmsfwk/services/dtbschedmgr:distributedschedsvr",
91    "//utils/native/base:utils",
92
93    #  "//third_party/libuuid:libuuid_static",
94  ]
95
96  external_deps = [
97    "aafwk_standard:base",
98    "aafwk_standard:want",
99    "appexecfwk_standard:appexecfwk_base",
100    "appexecfwk_standard:appexecfwk_core",
101    "ces_standard:cesfwk_core",
102    "ces_standard:cesfwk_innerkits",
103    "dmsfwk_standard:zuri",
104    "hiviewdfx_hilog_native:libhilog",
105    "ipc:ipc_core",
106    "os_account_standard:libaccountkits",
107    "os_account_standard:libaccountkits",
108    "permission_standard:libpermissionsdk_standard",
109    "power_manager_native:powermgr_client",
110    "safwk:system_ability_fwk",
111    "samgr_L2:samgr_proxy",
112  ]
113
114  subsystem_name = "appexecfwk"
115  part_name = "appexecfwk_standard"
116}
117