Ed Coyne | 2c9e94a | 2017-05-31 10:08:28 -0700 | [diff] [blame] | 1 | bootanimation_CommonCFlags = -DGL_GLEXT_PROTOTYPES -DEGL_EGLEXT_PROTOTYPES |
| 2 | bootanimation_CommonCFlags += -Wall -Werror -Wunused -Wunreachable-code |
| 3 | |
| 4 | |
| 5 | # bootanimation executable |
| 6 | # ========================================================= |
| 7 | |
Mathias Agopian | 627e7b5 | 2009-05-21 19:21:59 -0700 | [diff] [blame] | 8 | LOCAL_PATH:= $(call my-dir) |
| 9 | include $(CLEAR_VARS) |
| 10 | |
Ed Coyne | 2c9e94a | 2017-05-31 10:08:28 -0700 | [diff] [blame] | 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 | |
Ed Coyne | 7464ac9 | 2017-06-08 12:26:48 -0700 | [diff] [blame] | 23 | LOCAL_SRC_FILES:= \ |
| 24 | BootAnimationUtil.cpp \ |
| 25 | |
| 26 | ifeq ($(PRODUCT_IOT),true) |
Braden Kell | 6dd64f3 | 2017-09-25 17:30:28 -0700 | [diff] [blame] | 27 | |
David Pursell | 1ecfdbd | 2017-09-27 14:15:21 -0700 | [diff] [blame] | 28 | LOCAL_SHARED_LIBRARIES += \ |
| 29 | libandroidthings \ |
| 30 | libchrome \ |
Braden Kell | 6dd64f3 | 2017-09-25 17:30:28 -0700 | [diff] [blame] | 31 | |
Ed Coyne | 7464ac9 | 2017-06-08 12:26:48 -0700 | [diff] [blame] | 32 | LOCAL_SRC_FILES += \ |
| 33 | iot/iotbootanimation_main.cpp \ |
David Pursell | 54a8fe4 | 2017-09-29 16:05:26 -0700 | [diff] [blame] | 34 | iot/BootAction.cpp \ |
| 35 | iot/BootParameters.cpp \ |
Ed Coyne | 7464ac9 | 2017-06-08 12:26:48 -0700 | [diff] [blame] | 36 | |
Ed Coyne | 7464ac9 | 2017-06-08 12:26:48 -0700 | [diff] [blame] | 37 | else |
| 38 | |
| 39 | LOCAL_SRC_FILES += \ |
| 40 | bootanimation_main.cpp \ |
| 41 | audioplay.cpp \ |
| 42 | |
| 43 | endif # PRODUCT_IOT |
| 44 | |
Ed Coyne | 2c9e94a | 2017-05-31 10:08:28 -0700 | [diff] [blame] | 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:= \ |
Andreas Gampe | cfedceb | 2014-09-30 21:48:18 -0700 | [diff] [blame] | 64 | BootAnimation.cpp |
Mathias Agopian | 627e7b5 | 2009-05-21 19:21:59 -0700 | [diff] [blame] | 65 | |
Ed Coyne | 7464ac9 | 2017-06-08 12:26:48 -0700 | [diff] [blame] | 66 | LOCAL_CFLAGS += ${bootanimation_CommonCFlags} |
| 67 | |
Geoffrey Pitsch | d6d9a1d | 2016-06-08 00:38:58 -0700 | [diff] [blame] | 68 | LOCAL_C_INCLUDES += \ |
| 69 | external/tinyalsa/include \ |
| 70 | frameworks/wilhelm/include |
Mike Lockwood | ebf9a0d | 2014-10-02 16:08:47 -0700 | [diff] [blame] | 71 | |
Mathias Agopian | 627e7b5 | 2009-05-21 19:21:59 -0700 | [diff] [blame] | 72 | LOCAL_SHARED_LIBRARIES := \ |
Andreas Gampe | cfedceb | 2014-09-30 21:48:18 -0700 | [diff] [blame] | 73 | libcutils \ |
| 74 | liblog \ |
| 75 | libandroidfw \ |
| 76 | libutils \ |
| 77 | libbinder \ |
Mathias Agopian | 627e7b5 | 2009-05-21 19:21:59 -0700 | [diff] [blame] | 78 | libui \ |
Derek Sollenberger | d938e5a | 2017-07-24 09:42:07 -0400 | [diff] [blame] | 79 | libhwui \ |
Mathias Agopian | 627e7b5 | 2009-05-21 19:21:59 -0700 | [diff] [blame] | 80 | libEGL \ |
Mathias Agopian | 000479f | 2010-02-09 17:46:37 -0800 | [diff] [blame] | 81 | libGLESv1_CM \ |
Mike Lockwood | ebf9a0d | 2014-10-02 16:08:47 -0700 | [diff] [blame] | 82 | libgui \ |
Keun-young Park | b593842 | 2017-03-23 13:46:24 -0700 | [diff] [blame] | 83 | libtinyalsa \ |
| 84 | libbase |
Mathias Agopian | 627e7b5 | 2009-05-21 19:21:59 -0700 | [diff] [blame] | 85 | |
Braden Kell | 6dd64f3 | 2017-09-25 17:30:28 -0700 | [diff] [blame] | 86 | ifeq ($(PRODUCT_IOT),true) |
| 87 | |
| 88 | LOCAL_INIT_RC := iot/bootanim_iot.rc |
| 89 | |
| 90 | endif # PRODUCT_IOT |
| 91 | |
Colin Cross | 31d16e5 | 2014-03-19 18:09:01 -0700 | [diff] [blame] | 92 | ifdef TARGET_32_BIT_SURFACEFLINGER |
| 93 | LOCAL_32_BIT_ONLY := true |
| 94 | endif |
Mathias Agopian | 627e7b5 | 2009-05-21 19:21:59 -0700 | [diff] [blame] | 95 | |
Ed Coyne | 2c9e94a | 2017-05-31 10:08:28 -0700 | [diff] [blame] | 96 | include ${BUILD_SHARED_LIBRARY} |