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) |
| 27 | LOCAL_SRC_FILES += \ |
| 28 | iot/iotbootanimation_main.cpp \ |
| 29 | iot/BootAction.cpp |
| 30 | |
| 31 | LOCAL_SHARED_LIBRARIES += \ |
| 32 | libandroidthings \ |
| 33 | libbase \ |
| 34 | libbinder |
| 35 | |
| 36 | LOCAL_STATIC_LIBRARIES += cpufeatures |
| 37 | |
| 38 | else |
| 39 | |
| 40 | LOCAL_SRC_FILES += \ |
| 41 | bootanimation_main.cpp \ |
| 42 | audioplay.cpp \ |
| 43 | |
| 44 | endif # PRODUCT_IOT |
| 45 | |
Ed Coyne | 2c9e94a | 2017-05-31 10:08:28 -0700 | [diff] [blame] | 46 | LOCAL_MODULE:= bootanimation |
| 47 | |
| 48 | LOCAL_INIT_RC := bootanim.rc |
| 49 | |
| 50 | ifdef TARGET_32_BIT_SURFACEFLINGER |
| 51 | LOCAL_32_BIT_ONLY := true |
| 52 | endif |
| 53 | |
| 54 | include $(BUILD_EXECUTABLE) |
| 55 | |
| 56 | |
| 57 | # libbootanimation |
| 58 | # =========================================================== |
| 59 | |
| 60 | include $(CLEAR_VARS) |
| 61 | LOCAL_MODULE := libbootanimation |
| 62 | LOCAL_CFLAGS += ${bootanimation_CommonCFlags} |
| 63 | |
| 64 | LOCAL_SRC_FILES:= \ |
Andreas Gampe | cfedceb | 2014-09-30 21:48:18 -0700 | [diff] [blame] | 65 | BootAnimation.cpp |
Mathias Agopian | 627e7b5 | 2009-05-21 19:21:59 -0700 | [diff] [blame] | 66 | |
Ed Coyne | 7464ac9 | 2017-06-08 12:26:48 -0700 | [diff] [blame] | 67 | LOCAL_CFLAGS += ${bootanimation_CommonCFlags} |
| 68 | |
Geoffrey Pitsch | d6d9a1d | 2016-06-08 00:38:58 -0700 | [diff] [blame] | 69 | LOCAL_C_INCLUDES += \ |
| 70 | external/tinyalsa/include \ |
| 71 | frameworks/wilhelm/include |
Mike Lockwood | ebf9a0d | 2014-10-02 16:08:47 -0700 | [diff] [blame] | 72 | |
Mathias Agopian | 627e7b5 | 2009-05-21 19:21:59 -0700 | [diff] [blame] | 73 | LOCAL_SHARED_LIBRARIES := \ |
Andreas Gampe | cfedceb | 2014-09-30 21:48:18 -0700 | [diff] [blame] | 74 | libcutils \ |
| 75 | liblog \ |
| 76 | libandroidfw \ |
| 77 | libutils \ |
| 78 | libbinder \ |
Mathias Agopian | 627e7b5 | 2009-05-21 19:21:59 -0700 | [diff] [blame] | 79 | libui \ |
Derek Sollenberger | d938e5a | 2017-07-24 09:42:07 -0400 | [diff] [blame^] | 80 | libhwui \ |
Mathias Agopian | 627e7b5 | 2009-05-21 19:21:59 -0700 | [diff] [blame] | 81 | libEGL \ |
Mathias Agopian | 000479f | 2010-02-09 17:46:37 -0800 | [diff] [blame] | 82 | libGLESv1_CM \ |
Mike Lockwood | ebf9a0d | 2014-10-02 16:08:47 -0700 | [diff] [blame] | 83 | libgui \ |
Keun-young Park | b593842 | 2017-03-23 13:46:24 -0700 | [diff] [blame] | 84 | libtinyalsa \ |
| 85 | libbase |
Mathias Agopian | 627e7b5 | 2009-05-21 19:21:59 -0700 | [diff] [blame] | 86 | |
Colin Cross | 31d16e5 | 2014-03-19 18:09:01 -0700 | [diff] [blame] | 87 | ifdef TARGET_32_BIT_SURFACEFLINGER |
| 88 | LOCAL_32_BIT_ONLY := true |
| 89 | endif |
Mathias Agopian | 627e7b5 | 2009-05-21 19:21:59 -0700 | [diff] [blame] | 90 | |
Ed Coyne | 2c9e94a | 2017-05-31 10:08:28 -0700 | [diff] [blame] | 91 | include ${BUILD_SHARED_LIBRARY} |