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