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/core_service/telephony.gni") 15import("//build/ohos.gni") 16RIL_ADAPTER = "//base/telephony/ril_adapter" 17RIL_VENDOR = "//base/telephony/ril_adapter/services/vendor/src" 18 19ohos_shared_library("ril_vendor") { 20 sources = [ 21 "$RIL_VENDOR/at_call.c", 22 "$RIL_VENDOR/at_data.c", 23 "$RIL_VENDOR/at_modem.c", 24 "$RIL_VENDOR/at_network.c", 25 "$RIL_VENDOR/at_sim.c", 26 "$RIL_VENDOR/at_sms.c", 27 "$RIL_VENDOR/at_support.c", 28 "$RIL_VENDOR/vendor_adapter.c", 29 "$RIL_VENDOR/vendor_channel.c", 30 "$RIL_VENDOR/vendor_report.c", 31 "$RIL_VENDOR/vendor_util.c", 32 ] 33 include_dirs = [ "$RIL_ADAPTER/services/vendor/include" ] 34 configs = [ "$RIL_ADAPTER/utils:utils_config" ] 35 defines += [ 36 "LOG_TAG = \"RilVendor\"", 37 "LOG_DOMAIN = 0xD001F08", 38 ] 39 deps = [ "//base/telephony/ril_adapter/interfaces/innerkits:hril_innerkits" ] 40 41 external_deps = [ 42 "c_utils:utils", 43 "init:libbegetutil", 44 ] 45 46 if (is_standard_system) { 47 external_deps += [ "hiviewdfx_hilog_native:libhilog" ] 48 } else { 49 external_deps += [ "hilog:libhilog" ] 50 } 51 52 install_images = [ chipset_base_dir ] 53 part_name = "ril_adapter" 54 subsystem_name = "telephony" 55} 56