blob: 60a1cfbe9dd797029ddf0cd170f5dd96306d6cb3 [file] [log] [blame]
Dan Willemsenc15cf1d2018-11-19 23:39:03 -08001cc_defaults {
2 name: "bootanimation_defaults",
3
4 cflags: [
5 "-DGL_GLEXT_PROTOTYPES",
6 "-DEGL_EGLEXT_PROTOTYPES",
7
8 "-Wall",
9 "-Werror",
10 "-Wunused",
11 "-Wunreachable-code",
12 ],
13
14 shared_libs: [
15 "libandroidfw",
16 "libbase",
17 "libbinder",
18 "libcutils",
19 "liblog",
20 "libutils",
21 ],
22}
23
24// bootanimation executable
25// =========================================================
26
27cc_binary {
28 name: "bootanimation",
29 defaults: ["bootanimation_defaults"],
30
31 shared_libs: [
32 "libOpenSLES",
33 "libbootanimation",
34 ],
35
36 srcs: [
37 "BootAnimationUtil.cpp",
38
39 "bootanimation_main.cpp",
40 "audioplay.cpp",
41 ],
42
43 product_variables: {
44 product_is_iot: {
45 shared_libs: [
46 "libandroidthings",
47 "libchrome",
48 ],
49 srcs: [
50 "iot/iotbootanimation_main.cpp",
51 "iot/BootAction.cpp",
52 "iot/BootParameters.cpp",
53 ],
54 exclude_srcs: [
55 "bootanimation_main.cpp",
56 "audioplay.cpp",
57 ],
58 },
59 },
60
61 init_rc: ["bootanim.rc"],
62}
63
64// libbootanimation
65// ===========================================================
66
67cc_library_shared {
68 name: "libbootanimation",
69 defaults: ["bootanimation_defaults"],
70
71 srcs: ["BootAnimation.cpp"],
72
73 shared_libs: [
74 "libui",
75 "libhwui",
76 "libEGL",
77 "libGLESv1_CM",
78 "libgui",
79 "libtinyalsa",
80 ],
81
82 product_variables: {
83 product_is_iot: {
84 init_rc: ["iot/bootanim_iot.rc"],
85 },
86 },
87}