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