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 15# only for PLATFORM_VERSION greater or equal to Q 16ifeq (true,$(ENABLE_CUTTLEFISH_RILD)) 17LOCAL_PATH:= $(call my-dir) 18include $(CLEAR_VARS) 19 20LOCAL_SRC_FILES:= \ 21 rild_cuttlefish.c 22 23LOCAL_SHARED_LIBRARIES := \ 24 libcutils \ 25 libdl \ 26 liblog \ 27 libril-cuttlefish-fork 28 29LOCAL_C_INCLUDES += \ 30 device/google/cuttlefish_common 31 32# Temporary hack for broken vendor RILs. 33LOCAL_WHOLE_STATIC_LIBRARIES := \ 34 librilutils 35 36LOCAL_CFLAGS := -DRIL_SHLIB 37LOCAL_CFLAGS += -Wall -Wextra -Werror 38 39LOCAL_MODULE_RELATIVE_PATH := hw 40LOCAL_PROPRIETARY_MODULE := true 41LOCAL_MODULE:= libcuttlefish-rild 42LOCAL_OVERRIDES_PACKAGES := rild 43PACKAGES.$(LOCAL_MODULE).OVERRIDES := rild 44LOCAL_INIT_RC := rild_cuttlefish.rc 45 46include $(BUILD_EXECUTABLE) 47endif 48