1# Copyright (c) 2023 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") 15 16group("i18n_service_ability") { 17 deps = [ 18 ":hmos_cust_libphonenumber_mount", 19 ":hmos_cust_timezone_mount", 20 ":i18n_sa", 21 ":i18n_sa_client", 22 "./etc:i18n_sa_etc", 23 "./etc:prefabrication_libphonenumber", 24 "./etc:prefabrication_timezone", 25 "./etc:version_txt", 26 ] 27} 28 29ohos_shared_library("i18n_sa_client") { 30 sanitize = { 31 cfi = true 32 cfi_cross_dso = true 33 debug = false 34 } 35 branch_protector_ret = "pac_ret" 36 37 sources = [ 38 "./src/i18n_service_ability_client.cpp", 39 "./src/i18n_service_ability_load_callback.cpp", 40 "./src/i18n_service_ability_load_manager.cpp", 41 "./src/i18n_service_ability_proxy.cpp", 42 ] 43 include_dirs = [ 44 "./include", 45 "../frameworks/intl/include", 46 ] 47 deps = [] 48 external_deps = [ 49 "c_utils:utils", 50 "hilog:libhilog", 51 "ipc:ipc_core", 52 "samgr:samgr_proxy", 53 ] 54 innerapi_tags = [ "platformsdk" ] 55 part_name = "i18n" 56 subsystem_name = "global" 57} 58 59ohos_shared_library("i18n_sa") { 60 sanitize = { 61 cfi = true 62 cfi_cross_dso = true 63 debug = false 64 } 65 branch_protector_ret = "pac_ret" 66 67 sources = [ 68 "./src/i18n_service_ability.cpp", 69 "./src/i18n_service_ability_stub.cpp", 70 ] 71 include_dirs = [ 72 "./include", 73 "../frameworks/intl/include", 74 "../interfaces/native/inner_api/preferred_language/include", 75 ] 76 deps = [ 77 ":i18n_sa_client", 78 "../frameworks/intl:intl_util", 79 "../frameworks/intl:preferred_language", 80 ] 81 external_deps = [ 82 "ability_runtime:ability_manager", 83 "access_token:libaccesstoken_sdk", 84 "access_token:libtokenid_sdk", 85 "c_utils:utils", 86 "eventhandler:libeventhandler", 87 "hilog:libhilog", 88 "ipc:ipc_core", 89 "memmgr:memmgrclient", 90 "openssl:libcrypto_shared", 91 "openssl:libssl_shared", 92 "preferences:native_preferences", 93 "safwk:system_ability_fwk", 94 "samgr:samgr_proxy", 95 ] 96 part_name = "i18n" 97 subsystem_name = "global" 98} 99 100ohos_executable("hmos_cust_timezone_mount") { 101 sources = [ "src/hmos_timezone_mount.cpp" ] 102 103 include_dirs = [ "../frameworks/intl/include" ] 104 deps = [ "../frameworks/intl:intl_util" ] 105 external_deps = [ 106 "hilog:libhilog", 107 "init:libbegetutil", 108 "openssl:libcrypto_shared", 109 "openssl:libssl_shared", 110 ] 111 install_images = [ "system" ] 112 part_name = "i18n" 113 subsystem_name = "global" 114} 115 116ohos_executable("hmos_cust_libphonenumber_mount") { 117 sources = [ "src/hmos_libphonenumber_mount.cpp" ] 118 119 include_dirs = [ "../frameworks/intl/include" ] 120 deps = [ "../frameworks/intl:intl_util" ] 121 external_deps = [ 122 "hilog:libhilog", 123 "openssl:libcrypto_shared", 124 "openssl:libssl_shared", 125 ] 126 install_images = [ "system" ] 127 part_name = "i18n" 128 subsystem_name = "global" 129} 130