blob: 453fb727bab8be6615a668b626e41e07bbb32c92 [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
Mickey Keeleydfaa9c52018-04-26 15:05:25 -070032LOCAL_STATIC_LIBRARIES += \
33 libjsoncpp
34
Ed Coyne7464ac92017-06-08 12:26:48 -070035LOCAL_SRC_FILES += \
36 iot/iotbootanimation_main.cpp \
David Pursell54a8fe42017-09-29 16:05:26 -070037 iot/BootAction.cpp \
38 iot/BootParameters.cpp \
Ed Coyne7464ac92017-06-08 12:26:48 -070039
Ed Coyne7464ac92017-06-08 12:26:48 -070040else
41
42LOCAL_SRC_FILES += \
43 bootanimation_main.cpp \
44 audioplay.cpp \
45
46endif # PRODUCT_IOT
47
Ed Coyne2c9e94a2017-05-31 10:08:28 -070048LOCAL_MODULE:= bootanimation
49
50LOCAL_INIT_RC := bootanim.rc
51
52ifdef TARGET_32_BIT_SURFACEFLINGER
53LOCAL_32_BIT_ONLY := true
54endif
55
56include $(BUILD_EXECUTABLE)
57
58
59# libbootanimation
60# ===========================================================
61
62include $(CLEAR_VARS)
63LOCAL_MODULE := libbootanimation
64LOCAL_CFLAGS += ${bootanimation_CommonCFlags}
65
66LOCAL_SRC_FILES:= \
Andreas Gampecfedceb2014-09-30 21:48:18 -070067 BootAnimation.cpp
Mathias Agopian627e7b52009-05-21 19:21:59 -070068
Ed Coyne7464ac92017-06-08 12:26:48 -070069LOCAL_CFLAGS += ${bootanimation_CommonCFlags}
70
Geoffrey Pitschd6d9a1d2016-06-08 00:38:58 -070071LOCAL_C_INCLUDES += \
72 external/tinyalsa/include \
73 frameworks/wilhelm/include
Mike Lockwoodebf9a0d2014-10-02 16:08:47 -070074
Mathias Agopian627e7b52009-05-21 19:21:59 -070075LOCAL_SHARED_LIBRARIES := \
Andreas Gampecfedceb2014-09-30 21:48:18 -070076 libcutils \
77 liblog \
78 libandroidfw \
79 libutils \
80 libbinder \
Mathias Agopian627e7b52009-05-21 19:21:59 -070081 libui \
Derek Sollenbergerd938e5a2017-07-24 09:42:07 -040082 libhwui \
Mathias Agopian627e7b52009-05-21 19:21:59 -070083 libEGL \
Mathias Agopian000479f2010-02-09 17:46:37 -080084 libGLESv1_CM \
Mike Lockwoodebf9a0d2014-10-02 16:08:47 -070085 libgui \
Keun-young Parkb5938422017-03-23 13:46:24 -070086 libtinyalsa \
87 libbase
Mathias Agopian627e7b52009-05-21 19:21:59 -070088
Braden Kell6dd64f32017-09-25 17:30:28 -070089ifeq ($(PRODUCT_IOT),true)
90
91LOCAL_INIT_RC := iot/bootanim_iot.rc
92
93endif # PRODUCT_IOT
94
Colin Cross31d16e52014-03-19 18:09:01 -070095ifdef TARGET_32_BIT_SURFACEFLINGER
96LOCAL_32_BIT_ONLY := true
97endif
Mathias Agopian627e7b52009-05-21 19:21:59 -070098
Ed Coyne2c9e94a2017-05-31 10:08:28 -070099include ${BUILD_SHARED_LIBRARY}
Mickey Keeley953f1092018-04-26 11:06:06 -0700100
101include $(call all-makefiles-under,$(LOCAL_PATH))