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("//build/ohos.gni") 15 16RIL_ADAPTER = "../../" 17 18config("hril_config") { 19 include_dirs = [ "$RIL_ADAPTER/interfaces/innerkits/include" ] 20 21 cflags = [] 22 if (is_double_framework) { 23 cflags = [ "-DCONFIG_DUAL_FRAMEWORK" ] 24 } 25 if (target_cpu == "arm") { 26 cflags += [ "-DBINDER_IPC_32BIT" ] 27 } 28 if (is_standard_system) { 29 cflags += [ "-DCONFIG_STANDARD_SYSTEM" ] 30 } 31 if (defined(build_public_version) && build_public_version) { 32 cflags += [ "-DBUILD_PUBLIC_VERSION" ] 33 } 34} 35 36ohos_shared_library("hril_innerkits") { 37 public_configs = [ 38 ":hril_config", 39 "$RIL_ADAPTER/utils:utils_config", 40 ] 41 42 defines = [ 43 "TELEPHONY_LOG_TAG = \"HrilInnerkits\"", 44 "LOG_DOMAIN = 0xD001F08", 45 ] 46 47 external_deps = [ 48 "c_utils:utils", 49 "hilog:libhilog", 50 ] 51 52 install_images = [ chipset_base_dir ] 53 54 part_name = "ril_adapter" 55 subsystem_name = "telephony" 56} 57