blob: c66cae4d2535463707242f8b818901898a04ce4b [file] [log] [blame]
bigbiff91bd7a72021-01-03 17:33:01 -05001bootstrap_go_package {
2 name: "soong-libguitwrp_defaults",
3 pkgPath: "bootable/recovery/gui",
4 deps: [
5 "soong",
6 "soong-android",
7 "soong-cc"
8 ],
9 srcs: [
bigbiff6e0ca7d2021-02-06 19:15:16 -050010 "libguitwrp_defaults.go",
11 "../soong/copy.go",
12 "../soong/makevars.go"
bigbiff91bd7a72021-01-03 17:33:01 -050013 ],
14 pluginFor: ["soong_build"]
15}
16
17libguitwrp_defaults {
18 name: "libguitwrp_defaults"
19}
20
21cc_library_static {
22 name: "libguitwrp",
23 defaults: ["libguitwrp_defaults"],
24 cflags: [
25 "-fno-strict-aliasing",
26 "-Wno-implicit-fallthrough",
bigbiff6e0ca7d2021-02-06 19:15:16 -050027 "-D_USE_SYSTEM_ZIPARCHIVE",
28 "-DTWRES=\"/twres/\""
bigbiff91bd7a72021-01-03 17:33:01 -050029 ],
30 include_dirs: [
31 "bootable/recovery/crypto/scrypt/lib/util",
32 "bootable/recovery/otautil/include",
33 "bootable/recovery/install/include",
34 "system/core/libziparchive/include",
35 "bootable/recovery/recovery_ui/include",
36 "bootable/recovery/fuse_sideload/include",
bigbiffd81833a2021-01-17 11:06:57 -050037 "bootable/recovery/gui/include",
bigbiff91bd7a72021-01-03 17:33:01 -050038 "bootable/recovery/twrpinstall",
39 "bootable/recovery/twrpinstall/include",
40 "bootable/recovery/libpixelflinger/include",
bigbiffd81833a2021-01-17 11:06:57 -050041 "bootable/recovery/minuitwrp/include",
bigbiff91bd7a72021-01-03 17:33:01 -050042 "bionic",
43 "system/core/base/include",
44 "system/core/include",
bigbiffd81833a2021-01-17 11:06:57 -050045 "external/freetype/include",
46 "external/libpng"
bigbiff91bd7a72021-01-03 17:33:01 -050047
48 ],
bigbiffd81833a2021-01-17 11:06:57 -050049 srcs: [
bigbiff91bd7a72021-01-03 17:33:01 -050050 "gui.cpp",
51 "resources.cpp",
52 "pages.cpp",
53 "text.cpp",
54 "image.cpp",
55 "action.cpp",
56 "console.cpp",
57 "fill.cpp",
58 "button.cpp",
59 "checkbox.cpp",
60 "fileselector.cpp",
61 "progressbar.cpp",
62 "animation.cpp",
63 "object.cpp",
64 "slider.cpp",
65 "slidervalue.cpp",
66 "listbox.cpp",
67 "keyboard.cpp",
68 "input.cpp",
69 "blanktimer.cpp",
70 "partitionlist.cpp",
71 "mousecursor.cpp",
72 "scrolllist.cpp",
73 "patternpassword.cpp",
74 "textbox.cpp",
75 "terminal.cpp",
76 "twmsg.cpp"
77 ],
78 shared_libs: [
79 "libminuitwrp",
80 "libc",
81 "libstdc++",
82 "libaosprecovery",
83 "libselinux",
84 "libziparchive"
85 ],
86 static_libs: [
bigbiffd81833a2021-01-17 11:06:57 -050087 "libotautil",
88 "libpng"
bigbiff91bd7a72021-01-03 17:33:01 -050089 ]
bigbiff673c7ae2020-12-02 19:44:56 -050090}