Home | History | Annotate | Download | only in libhwcomposer
      1 LOCAL_PATH := $(call my-dir)
      2 include $(LOCAL_PATH)/../common.mk
      3 include $(CLEAR_VARS)
      4 
      5 LOCAL_MODULE                  := hwcomposer.$(TARGET_BOARD_PLATFORM)
      6 LOCAL_MODULE_RELATIVE_PATH    := hw
      7 LOCAL_MODULE_TAGS             := optional
      8 LOCAL_C_INCLUDES              := $(common_includes) $(kernel_includes) \
      9                                  $(TOP)/external/skia/include/core \
     10                                  $(TOP)/external/skia/include/images
     11 
     12 ifeq ($(strip $(TARGET_USES_QCOM_DISPLAY_PP)),true)
     13 LOCAL_C_INCLUDES              += $(TARGET_OUT_HEADERS)/qdcm/inc \
     14                                  $(TARGET_OUT_HEADERS)/common/inc \
     15                                  $(TARGET_OUT_HEADERS)/pp/inc
     16 endif
     17 
     18 LOCAL_SHARED_LIBRARIES        := $(common_libs) libEGL liboverlay \
     19                                  libhdmi libqdutils libhardware_legacy \
     20                                  libdl libmemalloc libqservice libsync \
     21                                  libbinder libmedia
     22 
     23 LOCAL_CFLAGS                  := $(common_flags) -DLOG_TAG=\"qdhwcomposer\" -Wno-absolute-value \
     24                                  -Wno-float-conversion
     25 
     26 LOCAL_CLANG                   := true
     27 
     28 ifeq ($(TARGET_USES_QCOM_BSP),true)
     29 LOCAL_SHARED_LIBRARIES += libskia
     30 ifeq ($(GET_FRAMEBUFFER_FORMAT_FROM_HWC),true)
     31     LOCAL_CFLAGS += -DGET_FRAMEBUFFER_FORMAT_FROM_HWC
     32 endif
     33 endif #TARGET_USES_QCOM_BSP
     34 
     35 #Enable Dynamic FPS if PHASE_OFFSET is not set
     36 ifeq ($(VSYNC_EVENT_PHASE_OFFSET_NS),)
     37     LOCAL_CFLAGS += -DDYNAMIC_FPS
     38 endif
     39 
     40 LOCAL_ADDITIONAL_DEPENDENCIES := $(common_deps)
     41 LOCAL_SRC_FILES               := hwc.cpp          \
     42                                  hwc_utils.cpp    \
     43                                  hwc_uevents.cpp  \
     44                                  hwc_vsync.cpp    \
     45                                  hwc_fbupdate.cpp \
     46                                  hwc_mdpcomp.cpp  \
     47                                  hwc_copybit.cpp  \
     48                                  hwc_qclient.cpp  \
     49                                  hwc_dump_layers.cpp \
     50                                  hwc_ad.cpp \
     51                                  hwc_virtual.cpp
     52 
     53 TARGET_MIGRATE_QDCM_LIST := msm8909
     54 TARGET_MIGRATE_QDCM := $(call is-board-platform-in-list,$(TARGET_MIGRATE_QDCM_LIST))
     55 
     56 ifeq ($(TARGET_MIGRATE_QDCM), true)
     57 ifeq ($(strip $(TARGET_USES_QCOM_DISPLAY_PP)),true)
     58 LOCAL_SRC_FILES += hwc_qdcm.cpp
     59 else
     60 LOCAL_SRC_FILES += hwc_qdcm_legacy.cpp
     61 endif
     62 else
     63 LOCAL_SRC_FILES += hwc_qdcm_legacy.cpp
     64 endif
     65 
     66 ifeq ($(TARGET_SUPPORTS_ANDROID_WEAR), true)
     67     LOCAL_CFLAGS += -DSUPPORT_BLIT_TO_FB
     68 endif
     69 
     70 include $(BUILD_SHARED_LIBRARY)
     71