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. 13import("//build/ohos.gni") 14 15SUBSYSTEM_DIR = "//base/telephony/cellular_data" 16config("cellular_data_util_config") { 17 # header file path 18 include_dirs = [ "$SUBSYSTEM_DIR/interfaces/innerkits" ] 19 20 cflags = [] 21 if (is_double_framework) { 22 cflags = [ "-DCONFIG_DUAL_FRAMEWORK" ] 23 } 24 if (target_cpu == "arm") { 25 cflags += [ "-DBINDER_IPC_32BIT" ] 26 } 27 if (is_standard_system) { 28 cflags += [ "-DCONFIG_STANDARD_SYSTEM" ] 29 } 30 if (defined(build_public_version) && build_public_version) { 31 cflags += [ "-DBUILD_PUBLIC_VERSION" ] 32 } 33} 34 35ohos_shared_library("tel_cellular_data_api") { 36 sources = [ 37 "$SUBSYSTEM_DIR/frameworks/native/cellular_data_client.cpp", 38 "$SUBSYSTEM_DIR/frameworks/native/cellular_data_service_proxy.cpp", 39 "$SUBSYSTEM_DIR/frameworks/native/data_sim_account_call_back.cpp", 40 "$SUBSYSTEM_DIR/frameworks/native/sim_account_callback_stub.cpp", 41 ] 42 43 configs = [ "//base/telephony/core_service/utils:telephony_log_config" ] 44 45 public_configs = [ ":cellular_data_util_config" ] 46 47 deps = [ 48 "//base/telephony/core_service/interfaces/innerkits:tel_core_service_api", 49 ] 50 51 external_deps = [ 52 "c_utils:utils", 53 "hiviewdfx_hilog_native:libhilog", 54 "init:libbegetutil", 55 "ipc:ipc_core", 56 "samgr:samgr_proxy", 57 ] 58 defines = [ 59 "TELEPHONY_LOG_TAG = \"CellularDataApi\"", 60 "LOG_DOMAIN = 0xD001F03", 61 ] 62 part_name = "cellular_data" 63 subsystem_name = "telephony" 64} 65