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 = "../../" 17RIL_FRAMEWORKS = "../../frameworks/src" 18 19config("hril_config") { 20 include_dirs = [ "$RIL_ADAPTER/interfaces/innerkits/include" ] 21 22 cflags = [] 23 if (is_double_framework) { 24 cflags = [ "-DCONFIG_DUAL_FRAMEWORK" ] 25 } 26 if (target_cpu == "arm") { 27 cflags += [ "-DBINDER_IPC_32BIT" ] 28 } 29 if (is_standard_system) { 30 cflags += [ "-DCONFIG_STANDARD_SYSTEM" ] 31 } 32 if (defined(build_public_version) && build_public_version) { 33 cflags += [ "-DBUILD_PUBLIC_VERSION" ] 34 } 35} 36 37ohos_shared_library("hril_innerkits") { 38 all_dependent_configs = [ 39 ":hril_config", 40 "$RIL_ADAPTER/utils:utils_config", 41 ] 42 43 sources = [ "$RIL_FRAMEWORKS/hril_base_parcel.cpp" ] 44 45 public_configs = [ 46 ":hril_config", 47 "$RIL_ADAPTER/utils:utils_config", 48 ] 49 50 defines = [ 51 "TELEPHONY_LOG_TAG = \"HrilInnerkits\"", 52 "LOG_DOMAIN = 0xD001F08", 53 ] 54 55 external_deps = [ 56 "c_utils:utils", 57 "hilog:libhilog", 58 ] 59 60 relative_install_dir = "chipset-pub-sdk" 61 62 part_name = "ril_adapter" 63 subsystem_name = "telephony" 64} 65