Home | History | Annotate | Download | only in bootanimation
      1 bootanimation_CommonCFlags = -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
      2 bootanimation_CommonCFlags += -Wall -Werror -Wunused -Wunreachable-code
      3 
      4 
      5 # bootanimation executable
      6 # =========================================================
      7 
      8 LOCAL_PATH:= $(call my-dir)
      9 include $(CLEAR_VARS)
     10 
     11 LOCAL_CFLAGS += ${bootanimation_CommonCFlags}
     12 
     13 LOCAL_SHARED_LIBRARIES := \
     14     libOpenSLES \
     15     libandroidfw \
     16     libbase \
     17     libbinder \
     18     libbootanimation \
     19     libcutils \
     20     liblog \
     21     libutils \
     22 
     23 LOCAL_SRC_FILES:= \
     24     BootAnimationUtil.cpp \
     25 
     26 ifeq ($(PRODUCT_IOT),true)
     27 
     28 LOCAL_SHARED_LIBRARIES += \
     29     libandroidthings \
     30     libchrome \
     31 
     32 LOCAL_SRC_FILES += \
     33     iot/iotbootanimation_main.cpp \
     34     iot/BootAction.cpp \
     35     iot/BootParameters.cpp \
     36 
     37 else
     38 
     39 LOCAL_SRC_FILES += \
     40     bootanimation_main.cpp \
     41     audioplay.cpp \
     42 
     43 endif  # PRODUCT_IOT
     44 
     45 LOCAL_MODULE:= bootanimation
     46 
     47 LOCAL_INIT_RC := bootanim.rc
     48 
     49 ifdef TARGET_32_BIT_SURFACEFLINGER
     50 LOCAL_32_BIT_ONLY := true
     51 endif
     52 
     53 include $(BUILD_EXECUTABLE)
     54 
     55 
     56 # libbootanimation
     57 # ===========================================================
     58 
     59 include $(CLEAR_VARS)
     60 LOCAL_MODULE := libbootanimation
     61 LOCAL_CFLAGS += ${bootanimation_CommonCFlags}
     62 
     63 LOCAL_SRC_FILES:= \
     64     BootAnimation.cpp
     65 
     66 LOCAL_CFLAGS += ${bootanimation_CommonCFlags}
     67 
     68 LOCAL_C_INCLUDES += \
     69     external/tinyalsa/include \
     70     frameworks/wilhelm/include
     71 
     72 LOCAL_SHARED_LIBRARIES := \
     73     libcutils \
     74     liblog \
     75     libandroidfw \
     76     libutils \
     77     libbinder \
     78     libui \
     79     libhwui \
     80     libEGL \
     81     libGLESv1_CM \
     82     libgui \
     83     libtinyalsa \
     84     libbase
     85 
     86 ifeq ($(PRODUCT_IOT),true)
     87 
     88 LOCAL_INIT_RC := iot/bootanim_iot.rc
     89 
     90 endif # PRODUCT_IOT
     91 
     92 ifdef TARGET_32_BIT_SURFACEFLINGER
     93 LOCAL_32_BIT_ONLY := true
     94 endif
     95 
     96 include ${BUILD_SHARED_LIBRARY}
     97