blob: f80ccf7a56fb11b83b5e59db3943ab8316714a3d [file] [log] [blame]
Bob Badour8a6a2bc2021-02-12 17:07:05 -08001package {
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 Banerjee0c27488a2024-07-03 18:20:18 -070010aconfig_declarations {
11 name: "bootanimation_flags",
12 package: "com.android.graphics.bootanimation.flags",
13 container: "system",
14 srcs: ["bootanimation_flags.aconfig"],
15}
16
17cc_aconfig_library {
18 name: "libbootanimationflags",
19 aconfig_declarations: "bootanimation_flags",
20}
21
Dan Willemsenefc3e372018-11-19 23:39:03 -080022cc_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 Banerjee0c27488a2024-07-03 18:20:18 -070043
44 static_libs: [
45 "libbootanimationflags",
46 ],
Dan Willemsenefc3e372018-11-19 23:39:03 -080047}
48
49// bootanimation executable
50// =========================================================
51
52cc_binary {
53 name: "bootanimation",
54 defaults: ["bootanimation_defaults"],
55
Orion Hodson63f06b72020-04-03 09:42:03 +010056 header_libs: ["jni_headers"],
57
Dan Willemsenefc3e372018-11-19 23:39:03 -080058 shared_libs: [
59 "libOpenSLES",
60 "libbootanimation",
61 ],
62
63 srcs: [
64 "BootAnimationUtil.cpp",
65
66 "bootanimation_main.cpp",
67 "audioplay.cpp",
68 ],
69
Dan Willemsenefc3e372018-11-19 23:39:03 -080070 init_rc: ["bootanim.rc"],
Glenn Kasten1c935272020-02-03 12:14:40 -080071
72 cflags: [
73 "-Wno-deprecated-declarations",
74 ],
Dan Willemsenefc3e372018-11-19 23:39:03 -080075}
76
77// libbootanimation
78// ===========================================================
79
80cc_library_shared {
81 name: "libbootanimation",
82 defaults: ["bootanimation_defaults"],
83
84 srcs: ["BootAnimation.cpp"],
85
86 shared_libs: [
87 "libui",
Derek Sollenberger22d0d4c72020-04-08 10:53:46 -040088 "libjnigraphics",
Dan Willemsenefc3e372018-11-19 23:39:03 -080089 "libEGL",
Lucas Dupindd7ed602021-07-29 21:49:07 +000090 "libGLESv2",
Dan Willemsenefc3e372018-11-19 23:39:03 -080091 "libgui",
Dan Willemsenefc3e372018-11-19 23:39:03 -080092 ],
Dan Willemsenefc3e372018-11-19 23:39:03 -080093}