blob: 57213941c8f9cb0e47b001e1353844adb9a6accd [file] [log] [blame]
bigbiff673c7ae2020-12-02 19:44:56 -05001//bootstrap_go_package {
2// name: "soong-libpixelflingertwrp_defaults",
3// pkgPath: "bootable/recovery/libpixelflinger",
4// deps: [
5// "soong",
6// "soong-android",
7// "soong-cc"
8// ],
9// srcs: [
10// "libpixelflingertwrp_defaults.go"
11// ],
12// pluginFor: ["soong_build"]
13//}
14
15//libpixelflingertwrp_defaults {
16// name: "libpixelflingertwrp_defaults"
17//}
18
19cc_defaults {
20 name: "libpixelflingertwrp_defaults",
21
22 cflags: [
23 "-fstrict-aliasing",
24 "-fomit-frame-pointer",
25 "-Wall",
26 "-Werror",
27 "-Wno-unused-function",
28 ],
29 export_include_dirs: ["include"],
30 header_libs: ["libbase_headers"],
31 shared_libs: [
32 "libcutils",
33 "liblog",
34 "libutils",
35 ],
36
37 arch: {
38 arm: {
39 neon: {
40 cflags: ["-D__ARM_HAVE_NEON"],
41 },
42 },
43 },
44}
45
46cc_library_static {
47 name: "libpixelflinger_twrp",
48 defaults: ["libpixelflingertwrp_defaults"],
49
50 srcs: [
51 "codeflinger/ARMAssemblerInterface.cpp",
52 "codeflinger/ARMAssemblerProxy.cpp",
53 "codeflinger/CodeCache.cpp",
54 "codeflinger/GGLAssembler.cpp",
55 "codeflinger/load_store.cpp",
56 "codeflinger/blending.cpp",
57 "codeflinger/texturing.cpp",
58 "format.cpp",
59 "clear.cpp",
60 "raster.cpp",
61 "buffer.cpp",
62 ],
63 whole_static_libs: ["libpixelflinger-arm"],
64
65 arch: {
66 arm: {
67 srcs: [
68 "codeflinger/ARMAssembler.cpp",
69 "codeflinger/disassem.c",
70 "col32cb16blend.S",
71 "t32cb16blend.S",
72 ],
73
74 neon: {
75 srcs: ["col32cb16blend_neon.S"],
76 },
77 },
78 arm64: {
79 srcs: [
80 "codeflinger/Arm64Assembler.cpp",
81 "codeflinger/Arm64Disassembler.cpp",
82 "arch-arm64/col32cb16blend.S",
83 "arch-arm64/t32cb16blend.S",
84 ],
85 },
86 mips: {
87 mips32r6: {
88 srcs: [
89 "codeflinger/MIPSAssembler.cpp",
90 "codeflinger/mips_disassem.c",
91 "arch-mips/t32cb16blend.S",
92 ],
93 },
94 },
95 mips64: {
96 srcs: [
97 "codeflinger/MIPSAssembler.cpp",
98 "codeflinger/MIPS64Assembler.cpp",
99 "codeflinger/mips64_disassem.c",
100 "arch-mips64/col32cb16blend.S",
101 "arch-mips64/t32cb16blend.S",
102 ],
103 },
104 },
105}