• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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("//build/ohos.gni")
15import("//foundation/ability/ability_runtime/ability_runtime.gni")
16
17ohos_prebuilt_etc("quick_fix.cfg") {
18  relative_install_dir = "init"
19  source = "quick_fix.cfg"
20  part_name = "ability_runtime"
21  subsystem_name = "ability"
22}
23
24config("quickfixms_config") {
25  visibility = [ ":*" ]
26  include_dirs = [ "include" ]
27  cflags = []
28  if (target_cpu == "arm") {
29    cflags += [ "-DBINDER_IPC_32BIT" ]
30  }
31}
32
33quickfixms_sources = [
34  "src/quick_fix_manager_apply_task.cpp",
35  "src/quick_fix_manager_service.cpp",
36  "src/quick_fix_manager_service_ability.cpp",
37]
38
39ohos_shared_library("quickfixms") {
40  shlib_type = "sa"
41  configs = [ "${ability_runtime_services_path}/common:common_config" ]
42  public_configs = [ ":quickfixms_config" ]
43
44  sources = quickfixms_sources
45
46  defines = [ "AMS_LOG_TAG = \"QuickFixService\"" ]
47
48  deps = [
49    "${ability_runtime_innerkits_path}/app_manager:app_manager",
50    "${ability_runtime_innerkits_path}/quick_fix:quickfix_manager",
51    "${ability_runtime_services_path}/common:perm_verification",
52  ]
53
54  external_deps = [
55    "ability_base:want",
56    "bundle_framework:appexecfwk_base",
57    "bundle_framework:appexecfwk_core",
58    "c_utils:utils",
59    "common_event_service:cesfwk_innerkits",
60    "eventhandler:libeventhandler",
61    "hilog:libhilog",
62    "hitrace:hitrace_meter",
63    "ipc:ipc_single",
64    "safwk:system_ability_fwk",
65    "samgr:samgr_proxy",
66  ]
67
68  subsystem_name = "ability"
69  part_name = "ability_runtime"
70}
71
72# Note: Just for test
73ohos_static_library("quickfixms_static") {
74  configs = [ "${ability_runtime_services_path}/common:common_config" ]
75  public_configs = [ ":quickfixms_config" ]
76
77  sources = quickfixms_sources
78
79  defines = [ "AMS_LOG_TAG = \"QuickFixService\"" ]
80
81  deps = [ "${ability_runtime_services_path}/common:perm_verification" ]
82
83  external_deps = [
84    "ability_base:want",
85    "ability_runtime:app_manager",
86    "ability_runtime:quickfix_manager",
87    "bundle_framework:appexecfwk_base",
88    "bundle_framework:appexecfwk_core",
89    "c_utils:utils",
90    "common_event_service:cesfwk_innerkits",
91    "eventhandler:libeventhandler",
92    "hilog:libhilog",
93    "hitrace:hitrace_meter",
94    "ipc:ipc_single",
95    "safwk:system_ability_fwk",
96    "samgr:samgr_proxy",
97  ]
98
99  subsystem_name = "ability"
100  part_name = "ability_runtime"
101}
102