android_hardware_qcom_display/libgenlock/Android.mk
toastcfh c8f578b1c9 libgenlock: clean up kernel includes and make USE_GENLOCK a BoardConfig option.
this fixes issues with devices not yet supporting the genlock API in in kernel space.

Change-Id: I734d8db95f7030c1492122283d76e81ca5fb8aa2
2011-12-18 19:51:58 -05:00

19 lines
464 B
Makefile

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_PRELINK_MODULE := false
LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)
LOCAL_SHARED_LIBRARIES := liblog libcutils
LOCAL_C_INCLUDES += hardware/qcom/display/libgralloc
LOCAL_SRC_FILES := genlock.cpp
LOCAL_CFLAGS:= -DLOG_TAG=\"libgenlock\"
LOCAL_MODULE_TAGS := optional
ifeq ($(BOARD_USES_GENLOCK),true)
LOCAL_CFLAGS += -DUSE_GENLOCK
endif
LOCAL_MODULE := libgenlock
include $(BUILD_SHARED_LIBRARY)