blob: 73ec63f396b443b6489587ef330764c2fee13a6b [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)
27LOCAL_SRC_FILES += \
28 iot/iotbootanimation_main.cpp \
29 iot/BootAction.cpp
30
31LOCAL_SHARED_LIBRARIES += \
32 libandroidthings \
33 libbase \
34 libbinder
35
36LOCAL_STATIC_LIBRARIES += cpufeatures
37
38else
39
40LOCAL_SRC_FILES += \
41 bootanimation_main.cpp \
42 audioplay.cpp \
43
44endif # PRODUCT_IOT
45
Ed Coyne2c9e94a2017-05-31 10:08:28 -070046LOCAL_MODULE:= bootanimation
47
48LOCAL_INIT_RC := bootanim.rc
49
50ifdef TARGET_32_BIT_SURFACEFLINGER
51LOCAL_32_BIT_ONLY := true
52endif
53
54include $(BUILD_EXECUTABLE)
55
56
57# libbootanimation
58# ===========================================================
59
60include $(CLEAR_VARS)
61LOCAL_MODULE := libbootanimation
62LOCAL_CFLAGS += ${bootanimation_CommonCFlags}
63
64LOCAL_SRC_FILES:= \
Andreas Gampecfedceb2014-09-30 21:48:18 -070065 BootAnimation.cpp
Mathias Agopian627e7b52009-05-21 19:21:59 -070066
Ed Coyne7464ac92017-06-08 12:26:48 -070067LOCAL_CFLAGS += ${bootanimation_CommonCFlags}
68
Geoffrey Pitschd6d9a1d2016-06-08 00:38:58 -070069LOCAL_C_INCLUDES += \
70 external/tinyalsa/include \
71 frameworks/wilhelm/include
Mike Lockwoodebf9a0d2014-10-02 16:08:47 -070072
Mathias Agopian627e7b52009-05-21 19:21:59 -070073LOCAL_SHARED_LIBRARIES := \
Andreas Gampecfedceb2014-09-30 21:48:18 -070074 libcutils \
75 liblog \
76 libandroidfw \
77 libutils \
78 libbinder \
Mathias Agopian627e7b52009-05-21 19:21:59 -070079 libui \
Andreas Gampecfedceb2014-09-30 21:48:18 -070080 libskia \
Mathias Agopian627e7b52009-05-21 19:21:59 -070081 libEGL \
Mathias Agopian000479f2010-02-09 17:46:37 -080082 libGLESv1_CM \
Mike Lockwoodebf9a0d2014-10-02 16:08:47 -070083 libgui \
Keun-young Parkb5938422017-03-23 13:46:24 -070084 libtinyalsa \
85 libbase
Mathias Agopian627e7b52009-05-21 19:21:59 -070086
Colin Cross31d16e52014-03-19 18:09:01 -070087ifdef TARGET_32_BIT_SURFACEFLINGER
88LOCAL_32_BIT_ONLY := true
89endif
Mathias Agopian627e7b52009-05-21 19:21:59 -070090
Ed Coyne2c9e94a2017-05-31 10:08:28 -070091include ${BUILD_SHARED_LIBRARY}