1// Copyright (C) 2006 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 // See: http://go/android-license-faq 17 default_applicable_licenses: [ 18 "hardware_ril_rild_license", 19 ], 20} 21 22license { 23 name: "hardware_ril_rild_license", 24 visibility: [":__subpackages__"], 25 license_kinds: [ 26 "SPDX-license-identifier-Apache-2.0", 27 ], 28 license_text: [ 29 "NOTICE", 30 ], 31} 32 33cc_binary { 34 name: "rild", 35 srcs: ["rild.c"], 36 37 shared_libs: [ 38 "libcutils", 39 "libdl", 40 "liblog", 41 "libril", 42 ], 43 44 // Temporary hack for broken vendor RILs. 45 whole_static_libs: ["librilutils"], 46 cflags: [ 47 "-DRIL_SHLIB", 48 "-Wall", 49 "-Wextra", 50 "-Werror", 51 "-DPRODUCT_COMPATIBLE_PROPERTY", 52 ] + select(soong_config_variable("ril", "sim_count"), { 53 "2": [ 54 "-DANDROID_MULTI_SIM", 55 "-DANDROID_SIM_COUNT_2", 56 ], 57 default: [], 58 }), 59 relative_install_path: "hw", 60 proprietary: true, 61 init_rc: ["rild.rc"], 62 enabled: select(soong_config_variable("ril", "use_aosp_rild"), { 63 true: true, 64 default: false, 65 }), 66} 67