• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
13import("//build/ohos.gni")
14SUBSYSTEM_DIR = "../../../../"
15import("$SUBSYSTEM_DIR/core_service/telephony_core_service.gni")
16
17ohos_shared_library("esim") {
18  sanitize = {
19    cfi = true
20    cfi_cross_dso = true
21    debug = false
22  }
23  branch_protector_ret = "pac_ret"
24  if (core_service_support_esim) {
25    include_dirs = [
26      "include",
27      "$SUBSYSTEM_DIR/core_service/frameworks/js/napi",
28      "$SUBSYSTEM_DIR/core_service/interfaces/kits/native",
29      "$SUBSYSTEM_DIR/core_service/interfaces/innerkits/include",
30    ]
31
32    sources = [
33      "$SUBSYSTEM_DIR/core_service/frameworks/js/napi/napi_util.cpp",
34      "$SUBSYSTEM_DIR/core_service/frameworks/native/src/download_profile_config_info_parcel.cpp",
35      "$SUBSYSTEM_DIR/core_service/frameworks/native/src/download_profile_result_parcel.cpp",
36      "$SUBSYSTEM_DIR/core_service/frameworks/native/src/downloadable_profile_parcel.cpp",
37      "$SUBSYSTEM_DIR/core_service/frameworks/native/src/euicc_info_parcel.cpp",
38      "$SUBSYSTEM_DIR/core_service/frameworks/native/src/get_downloadable_profiles_result_parcel.cpp",
39      "$SUBSYSTEM_DIR/core_service/frameworks/native/src/profile_info_list_parcel.cpp",
40      "$SUBSYSTEM_DIR/core_service/frameworks/native/src/profile_metadata_result_parcel.cpp",
41      "$SUBSYSTEM_DIR/core_service/frameworks/native/src/response_esim_result.cpp",
42      "$SUBSYSTEM_DIR/core_service/frameworks/native/src/contract_request_data_parcel.cpp",
43      "src/cancel_session_callback.cpp",
44      "src/delete_profile_callback.cpp",
45      "src/download_profile_callback.cpp",
46      "src/get_default_smdp_address_callback.cpp",
47      "src/get_downloadable_profile_metadata_callback.cpp",
48      "src/get_downloadable_profiles_callback.cpp",
49      "src/get_eid_callback.cpp",
50      "src/get_euicc_info_callback.cpp",
51      "src/get_euicc_profile_info_list_callback.cpp",
52      "src/get_supported_pkids_callback.cpp",
53      "src/get_contract_info_callback.cpp",
54      "src/napi_esim.cpp",
55      "src/reset_memory_callback.cpp",
56      "src/set_default_smdp_address_callback.cpp",
57      "src/set_profile_nick_name_callback.cpp",
58      "src/start_osu_callback.cpp",
59      "src/switch_to_profile.cpp",
60    ]
61  }
62
63  configs = [ "$SUBSYSTEM_DIR/core_service/utils:telephony_log_config" ]
64
65  deps = [
66    "$SUBSYSTEM_DIR/core_service/interfaces/innerkits:tel_core_service_api",
67    "$SUBSYSTEM_DIR/core_service/utils:libtel_common",
68  ]
69
70  external_deps = [
71    "ability_runtime:abilitykit_native",
72    "c_utils:utils",
73    "hilog:libhilog",
74    "init:libbegetutil",
75    "ipc:ipc_single",
76    "napi:ace_napi",
77    "samgr:samgr_proxy",
78  ]
79
80  defines = [
81    "TELEPHONY_LOG_TAG = \"CoreServiceEsimJsApi\"",
82    "LOG_DOMAIN = 0xD001F04",
83  ]
84  subsystem_name = "telephony"
85  part_name = "core_service"
86  relative_install_dir = "module/telephony"
87}
88