Home | History | Annotate | Download | only in minui
      1 LOCAL_PATH := $(call my-dir)
      2 include $(CLEAR_VARS)
      3 
      4 LOCAL_SRC_FILES := \
      5     events.cpp \
      6     graphics.cpp \
      7     graphics_adf.cpp \
      8     graphics_drm.cpp \
      9     graphics_fbdev.cpp \
     10     resources.cpp \
     11 
     12 LOCAL_WHOLE_STATIC_LIBRARIES += libadf
     13 LOCAL_WHOLE_STATIC_LIBRARIES += libdrm
     14 LOCAL_STATIC_LIBRARIES += libpng
     15 
     16 LOCAL_MODULE := libminui
     17 
     18 LOCAL_CLANG := true
     19 
     20 # This used to compare against values in double-quotes (which are just
     21 # ordinary characters in this context).  Strip double-quotes from the
     22 # value so that either will work.
     23 
     24 ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),ABGR_8888)
     25   LOCAL_CFLAGS += -DRECOVERY_ABGR
     26 endif
     27 ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),RGBX_8888)
     28   LOCAL_CFLAGS += -DRECOVERY_RGBX
     29 endif
     30 ifeq ($(subst ",,$(TARGET_RECOVERY_PIXEL_FORMAT)),BGRA_8888)
     31   LOCAL_CFLAGS += -DRECOVERY_BGRA
     32 endif
     33 
     34 ifneq ($(TARGET_RECOVERY_OVERSCAN_PERCENT),)
     35   LOCAL_CFLAGS += -DOVERSCAN_PERCENT=$(TARGET_RECOVERY_OVERSCAN_PERCENT)
     36 else
     37   LOCAL_CFLAGS += -DOVERSCAN_PERCENT=0
     38 endif
     39 
     40 include $(BUILD_STATIC_LIBRARY)
     41 
     42 # Used by OEMs for factory test images.
     43 include $(CLEAR_VARS)
     44 LOCAL_CLANG := true
     45 LOCAL_MODULE := libminui
     46 LOCAL_WHOLE_STATIC_LIBRARIES += libminui
     47 LOCAL_SHARED_LIBRARIES := libpng
     48 include $(BUILD_SHARED_LIBRARY)
     49