blob: 31bd612cc2c73a48c5b25d1d5f6b62f2316f0780 [file] [log] [blame]
Dan Willemsenefc3e372018-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 "libandroidthings_protos",
48 "libchrome",
49 "libprotobuf-cpp-lite",
50 ],
51 static_libs: ["libjsoncpp"],
52 srcs: [
53 "iot/iotbootanimation_main.cpp",
54 "iot/BootAction.cpp",
55 "iot/BootParameters.cpp",
56 ],
57 exclude_srcs: [
58 "bootanimation_main.cpp",
59 "audioplay.cpp",
60 ],
61 },
62 },
63
64 init_rc: ["bootanim.rc"],
65}
66
67// libbootanimation
68// ===========================================================
69
70cc_library_shared {
71 name: "libbootanimation",
72 defaults: ["bootanimation_defaults"],
73
74 srcs: ["BootAnimation.cpp"],
75
76 shared_libs: [
77 "libui",
78 "libhwui",
79 "libEGL",
80 "libGLESv1_CM",
81 "libgui",
82 "libtinyalsa",
83 ],
84
85 product_variables: {
86 product_is_iot: {
87 init_rc: ["iot/bootanim_iot.rc"],
88 },
89 },
90}