• 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("//base/telephony/data_storage/data_storage_ability_runtime.gni")
15import("//build/ohos.gni")
16SOURCE_DIR = "//base/telephony/data_storage"
17
18ohos_hap("Telephony_Data_Storage") {
19  hap_profile = "./config/config.json"
20  shared_libraries = [ ":tel_data_storage" ]
21  certificate_profile = "./signature/datastorage.p7b"
22  hap_name = "Telephony_Data_Storage"
23  module_install_dir = "app/com.ohos.telephonydataability"
24  part_name = "data_storage"
25  subsystem_name = "telephony"
26}
27
28ohos_shared_library("tel_data_storage") {
29  sources = [
30    "$SOURCE_DIR/common/src/data_storage_log_wrapper.cpp",
31    "$SOURCE_DIR/common/src/parser_util.cpp",
32    "$SOURCE_DIR/common/src/preferences_util.cpp",
33    "$SOURCE_DIR/common/src/rdb_base_callback.cpp",
34    "$SOURCE_DIR/common/src/rdb_base_helper.cpp",
35    "$SOURCE_DIR/opkey/src/opkey_ability.cpp",
36    "$SOURCE_DIR/opkey/src/rdb_opkey_callback.cpp",
37    "$SOURCE_DIR/opkey/src/rdb_opkey_helper.cpp",
38    "$SOURCE_DIR/pdp_profile/src/pdp_profile_ability.cpp",
39    "$SOURCE_DIR/pdp_profile/src/rdb_pdp_profile_callback.cpp",
40    "$SOURCE_DIR/pdp_profile/src/rdb_pdp_profile_helper.cpp",
41    "$SOURCE_DIR/sim/src/rdb_sim_callback.cpp",
42    "$SOURCE_DIR/sim/src/rdb_sim_helper.cpp",
43    "$SOURCE_DIR/sim/src/sim_ability.cpp",
44    "$SOURCE_DIR/sms_mms/src/rdb_sms_mms_callback.cpp",
45    "$SOURCE_DIR/sms_mms/src/rdb_sms_mms_helper.cpp",
46    "$SOURCE_DIR/sms_mms/src/sms_mms_ability.cpp",
47  ]
48
49  include_dirs = [
50    "$SOURCE_DIR/sim/include",
51    "$SOURCE_DIR/sms_mms/include",
52    "$SOURCE_DIR/pdp_profile/include",
53    "$SOURCE_DIR/opkey/include",
54    "$SOURCE_DIR/common/include",
55  ]
56
57  deps = [
58    "${ability_runtime_inner_api_path}/ability_manager:ability_manager",
59    "${ability_runtime_path}/frameworks/native/ability/native:abilitykit_native",
60    "//third_party/jsoncpp:jsoncpp",
61  ]
62
63  external_deps = [
64    "ability_base:want",
65    "ability_base:zuri",
66    "c_utils:utils",
67    "config_policy:configpolicy_util",
68    "core_service:libtel_common",
69    "hiviewdfx_hilog_native:libhilog",
70    "preferences:native_preferences",
71    "relational_store:native_dataability",
72    "relational_store:native_rdb",
73  ]
74  defines = [
75    "TELEPHONY_LOG_TAG = \"DataStorage\"",
76    "LOG_DOMAIN = 0xD001F05",
77  ]
78  part_name = "data_storage"
79  subsystem_name = "telephony"
80}
81