blob: e5d35b3b8a0e31213ad1d2978a5c3e249b917428 [file] [log] [blame]
Ed Coyne2c9e94a2017-05-31 10:08:28 -07001bootanimation_CommonCFlags = -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES
2bootanimation_CommonCFlags += -Wall -Werror -Wunused -Wunreachable-code
3
4
5# bootanimation executable
6# =========================================================
7
Mathias Agopian627e7b52009-05-21 19:21:59 -07008LOCAL_PATH:= $(call my-dir)
9include $(CLEAR_VARS)
10
Ed Coyne2c9e94a2017-05-31 10:08:28 -070011LOCAL_CFLAGS += ${bootanimation_CommonCFlags}
12
13LOCAL_SHARED_LIBRARIES := \
14 libOpenSLES \
15 libandroidfw \
16 libbase \
17 libbinder \
18 libbootanimation \
19 libcutils \
20 liblog \
21 libutils \
22
Ed Coyne7464ac92017-06-08 12:26:48 -070023LOCAL_SRC_FILES:= \
24 BootAnimationUtil.cpp \
25
26ifeq ($(PRODUCT_IOT),true)
Braden Kell6dd64f32017-09-25 17:30:28 -070027
David Pursell1ecfdbd2017-09-27 14:15:21 -070028LOCAL_SHARED_LIBRARIES += \
29 libandroidthings \
30 libchrome \
Braden Kell6dd64f32017-09-25 17:30:28 -070031
Ed Coyne7464ac92017-06-08 12:26:48 -070032LOCAL_SRC_FILES += \
33 iot/iotbootanimation_main.cpp \
David Pursell54a8fe42017-09-29 16:05:26 -070034 iot/BootAction.cpp \
35 iot/BootParameters.cpp \
Ed Coyne7464ac92017-06-08 12:26:48 -070036
Ed Coyne7464ac92017-06-08 12:26:48 -070037else
38
39LOCAL_SRC_FILES += \
40 bootanimation_main.cpp \
41 audioplay.cpp \
42
43endif # PRODUCT_IOT
44
Ed Coyne2c9e94a2017-05-31 10:08:28 -070045LOCAL_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:= \
Andreas Gampecfedceb2014-09-30 21:48:18 -070064 BootAnimation.cpp
Mathias Agopian627e7b52009-05-21 19:21:59 -070065
Ed Coyne7464ac92017-06-08 12:26:48 -070066LOCAL_CFLAGS += ${bootanimation_CommonCFlags}
67
Geoffrey Pitschd6d9a1d2016-06-08 00:38:58 -070068LOCAL_C_INCLUDES += \
69 external/tinyalsa/include \
70 frameworks/wilhelm/include
Mike Lockwoodebf9a0d2014-10-02 16:08:47 -070071
Mathias Agopian627e7b52009-05-21 19:21:59 -070072LOCAL_SHARED_LIBRARIES := \
Andreas Gampecfedceb2014-09-30 21:48:18 -070073 libcutils \
74 liblog \
75 libandroidfw \
76 libutils \
77 libbinder \
Mathias Agopian627e7b52009-05-21 19:21:59 -070078 libui \
Derek Sollenbergerd938e5a2017-07-24 09:42:07 -040079 libhwui \
Mathias Agopian627e7b52009-05-21 19:21:59 -070080 libEGL \
Mathias Agopian000479f2010-02-09 17:46:37 -080081 libGLESv1_CM \
Mike Lockwoodebf9a0d2014-10-02 16:08:47 -070082 libgui \
Keun-young Parkb5938422017-03-23 13:46:24 -070083 libtinyalsa \
84 libbase
Mathias Agopian627e7b52009-05-21 19:21:59 -070085
Braden Kell6dd64f32017-09-25 17:30:28 -070086ifeq ($(PRODUCT_IOT),true)
87
88LOCAL_INIT_RC := iot/bootanim_iot.rc
89
90endif # PRODUCT_IOT
91
Colin Cross31d16e52014-03-19 18:09:01 -070092ifdef TARGET_32_BIT_SURFACEFLINGER
93LOCAL_32_BIT_ONLY := true
94endif
Mathias Agopian627e7b52009-05-21 19:21:59 -070095
Ed Coyne2c9e94a2017-05-31 10:08:28 -070096include ${BUILD_SHARED_LIBRARY}