blob: db982c7e80be329febe382946d75e3f134aaecc6 [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",
nebrassyf7ec29b2023-09-18 13:23:21 +020023 defaults: ["libguitwrp_defaults", "twrp_defaults"],
bigbiff91bd7a72021-01-03 17:33:01 -050024 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",
nebrassy204e36e2021-11-14 23:27:51 +010034 "system/libziparchive/include",
bigbiff91bd7a72021-01-03 17:33:01 -050035 "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",
nebrassy204e36e2021-11-14 23:27:51 +010043 "system/libbase/include",
44 "system/core/libcutils/include",
bigbiff91bd7a72021-01-03 17:33:01 -050045 "system/core/include",
bigbiffd81833a2021-01-17 11:06:57 -050046 "external/freetype/include",
47 "external/libpng"
bigbiff91bd7a72021-01-03 17:33:01 -050048
49 ],
bigbiffd81833a2021-01-17 11:06:57 -050050 srcs: [
bigbiff91bd7a72021-01-03 17:33:01 -050051 "gui.cpp",
52 "resources.cpp",
53 "pages.cpp",
54 "text.cpp",
55 "image.cpp",
56 "action.cpp",
57 "console.cpp",
58 "fill.cpp",
59 "button.cpp",
60 "checkbox.cpp",
61 "fileselector.cpp",
62 "progressbar.cpp",
63 "animation.cpp",
64 "object.cpp",
65 "slider.cpp",
66 "slidervalue.cpp",
67 "listbox.cpp",
68 "keyboard.cpp",
69 "input.cpp",
70 "blanktimer.cpp",
71 "partitionlist.cpp",
72 "mousecursor.cpp",
73 "scrolllist.cpp",
74 "patternpassword.cpp",
75 "textbox.cpp",
76 "terminal.cpp",
77 "twmsg.cpp"
78 ],
79 shared_libs: [
80 "libminuitwrp",
81 "libc",
82 "libstdc++",
83 "libaosprecovery",
84 "libselinux",
85 "libziparchive"
86 ],
87 static_libs: [
bigbiffd81833a2021-01-17 11:06:57 -050088 "libotautil",
89 "libpng"
bigbiff91bd7a72021-01-03 17:33:01 -050090 ]
nebrassy204e36e2021-11-14 23:27:51 +010091}