Bob Badour | 8a6a2bc | 2021-02-12 17:07:05 -0800 | [diff] [blame] | 1 | package { |
| 2 | // See: http://go/android-license-faq |
| 3 | // A large-scale-change added 'default_applicable_licenses' to import |
| 4 | // all of the 'license_kinds' from "frameworks_base_license" |
| 5 | // to get the below license kinds: |
| 6 | // SPDX-license-identifier-Apache-2.0 |
| 7 | default_applicable_licenses: ["frameworks_base_license"], |
| 8 | } |
| 9 | |
Rahul Banerjee | 0c27488a | 2024-07-03 18:20:18 -0700 | [diff] [blame] | 10 | aconfig_declarations { |
| 11 | name: "bootanimation_flags", |
| 12 | package: "com.android.graphics.bootanimation.flags", |
| 13 | container: "system", |
| 14 | srcs: ["bootanimation_flags.aconfig"], |
| 15 | } |
| 16 | |
| 17 | cc_aconfig_library { |
| 18 | name: "libbootanimationflags", |
| 19 | aconfig_declarations: "bootanimation_flags", |
| 20 | } |
| 21 | |
Dan Willemsen | efc3e37 | 2018-11-19 23:39:03 -0800 | [diff] [blame] | 22 | cc_defaults { |
| 23 | name: "bootanimation_defaults", |
| 24 | |
| 25 | cflags: [ |
| 26 | "-DGL_GLEXT_PROTOTYPES", |
| 27 | "-DEGL_EGLEXT_PROTOTYPES", |
| 28 | |
| 29 | "-Wall", |
| 30 | "-Werror", |
| 31 | "-Wunused", |
| 32 | "-Wunreachable-code", |
| 33 | ], |
| 34 | |
| 35 | shared_libs: [ |
| 36 | "libandroidfw", |
| 37 | "libbase", |
| 38 | "libbinder", |
| 39 | "libcutils", |
| 40 | "liblog", |
| 41 | "libutils", |
| 42 | ], |
Rahul Banerjee | 0c27488a | 2024-07-03 18:20:18 -0700 | [diff] [blame] | 43 | |
| 44 | static_libs: [ |
| 45 | "libbootanimationflags", |
| 46 | ], |
Dan Willemsen | efc3e37 | 2018-11-19 23:39:03 -0800 | [diff] [blame] | 47 | } |
| 48 | |
| 49 | // bootanimation executable |
| 50 | // ========================================================= |
| 51 | |
| 52 | cc_binary { |
| 53 | name: "bootanimation", |
| 54 | defaults: ["bootanimation_defaults"], |
| 55 | |
Orion Hodson | 63f06b7 | 2020-04-03 09:42:03 +0100 | [diff] [blame] | 56 | header_libs: ["jni_headers"], |
| 57 | |
Dan Willemsen | efc3e37 | 2018-11-19 23:39:03 -0800 | [diff] [blame] | 58 | shared_libs: [ |
| 59 | "libOpenSLES", |
| 60 | "libbootanimation", |
| 61 | ], |
| 62 | |
| 63 | srcs: [ |
| 64 | "BootAnimationUtil.cpp", |
| 65 | |
| 66 | "bootanimation_main.cpp", |
| 67 | "audioplay.cpp", |
| 68 | ], |
| 69 | |
Dan Willemsen | efc3e37 | 2018-11-19 23:39:03 -0800 | [diff] [blame] | 70 | init_rc: ["bootanim.rc"], |
Glenn Kasten | 1c93527 | 2020-02-03 12:14:40 -0800 | [diff] [blame] | 71 | |
| 72 | cflags: [ |
| 73 | "-Wno-deprecated-declarations", |
| 74 | ], |
Dan Willemsen | efc3e37 | 2018-11-19 23:39:03 -0800 | [diff] [blame] | 75 | } |
| 76 | |
| 77 | // libbootanimation |
| 78 | // =========================================================== |
| 79 | |
| 80 | cc_library_shared { |
| 81 | name: "libbootanimation", |
| 82 | defaults: ["bootanimation_defaults"], |
| 83 | |
| 84 | srcs: ["BootAnimation.cpp"], |
| 85 | |
| 86 | shared_libs: [ |
| 87 | "libui", |
Derek Sollenberger | 22d0d4c7 | 2020-04-08 10:53:46 -0400 | [diff] [blame] | 88 | "libjnigraphics", |
Dan Willemsen | efc3e37 | 2018-11-19 23:39:03 -0800 | [diff] [blame] | 89 | "libEGL", |
Lucas Dupin | dd7ed60 | 2021-07-29 21:49:07 +0000 | [diff] [blame] | 90 | "libGLESv2", |
Dan Willemsen | efc3e37 | 2018-11-19 23:39:03 -0800 | [diff] [blame] | 91 | "libgui", |
Dan Willemsen | efc3e37 | 2018-11-19 23:39:03 -0800 | [diff] [blame] | 92 | ], |
Dan Willemsen | efc3e37 | 2018-11-19 23:39:03 -0800 | [diff] [blame] | 93 | } |