blob: e3c231007a6995305a036539fff8311cf3c09aa1 [file] [log] [blame]
Venkateshwarlu Domakondaa25a7782014-07-14 19:06:00 +05301ifeq ($(BOARD_HAVE_QCOM_FM),true)
Venkateshwarlu Domakondaaa253632013-03-25 16:53:03 +05302LOCAL_PATH := $(call my-dir)
3include $(CLEAR_VARS)
4
5LOCAL_SRC_FILES:= \
Venkateshwarlu Domakonda1c2c4352014-05-26 14:35:12 +05306android_hardware_fm.cpp \
7ConfFileParser.cpp \
8ConfigFmThs.cpp \
9FmIoctlsInterface.cpp \
10FmPerformanceParams.cpp
Venkateshwarlu Domakondaaa253632013-03-25 16:53:03 +053011
Satish kumar sugasi644b4882016-05-04 20:15:31 -070012LOCAL_LDLIBS += -ldl
Venkateshwarlu Domakondaaa253632013-03-25 16:53:03 +053013LOCAL_SHARED_LIBRARIES := \
Satish kumar sugasi644b4882016-05-04 20:15:31 -070014 libandroid_runtime \
Venkateshwarlu Domakondaaa253632013-03-25 16:53:03 +053015 libnativehelper \
Satish kumar sugasi35a19e82017-04-08 18:39:25 -070016 liblog \
Nicholas Limcd7d9562019-10-06 10:51:12 +080017 libcutils
Venkateshwarlu Domakondaaa253632013-03-25 16:53:03 +053018
Venkateshwarlu Domakondaaa253632013-03-25 16:53:03 +053019LOCAL_MODULE := libqcomfm_jni
20LOCAL_MODULE_TAGS := optional
21
Konsta4ded22e2015-10-20 17:55:00 +030022ifeq ($(TARGET_FM_LEGACY_PATCHLOADER),true)
23 LOCAL_CFLAGS += -DFM_LEGACY_PATCHLOADER
24endif
25
Ricardo Cerqueira0c3b4db2014-11-04 15:14:08 +000026ifeq ($(TARGET_QCOM_NO_FM_FIRMWARE),true)
27 LOCAL_CFLAGS += -DQCOM_NO_FM_FIRMWARE
28endif
29
Venkateshwarlu Domakondaaa253632013-03-25 16:53:03 +053030include $(BUILD_SHARED_LIBRARY)
Kamal Negifff2fb32017-08-08 13:56:19 +053031
Venkateshwarlu Domakondaa25a7782014-07-14 19:06:00 +053032endif # BOARD_HAVE_QCOM_FM