blob: 8a4489c39459c351ed657cc3618a64d98786da88 [file] [log] [blame]
bigbiff91bd7a72021-01-03 17:33:01 -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: "libpixelflingertwrp-arm",
48 defaults: ["libpixelflingertwrp_defaults"],
49
50 srcs: [
51 "fixed.cpp",
52 "picker.cpp",
53 "pixelflinger.cpp",
54 "trap.cpp",
55 "scanline.cpp",
56 ],
57
58 arch: {
59 arm: {
60 instruction_set: "arm",
61 },
62 },
63}
64
65cc_library_static {
66 name: "libpixelflinger_twrp",
67 defaults: ["libpixelflingertwrp_defaults"],
68
69 srcs: [
70 "codeflinger/ARMAssemblerInterface.cpp",
71 "codeflinger/ARMAssemblerProxy.cpp",
72 "codeflinger/CodeCache.cpp",
73 "codeflinger/GGLAssembler.cpp",
74 "codeflinger/load_store.cpp",
75 "codeflinger/blending.cpp",
76 "codeflinger/texturing.cpp",
77 "format.cpp",
78 "clear.cpp",
79 "raster.cpp",
80 "buffer.cpp",
81 ],
82 whole_static_libs: ["libpixelflingertwrp-arm"],
83
84 arch: {
85 arm: {
86 srcs: [
87 "codeflinger/ARMAssembler.cpp",
88 "codeflinger/disassem.c",
89 "col32cb16blend.S",
90 "t32cb16blend.S",
91 ],
92
93 neon: {
94 srcs: ["col32cb16blend_neon.S"],
95 },
96 },
97 arm64: {
98 srcs: [
99 "codeflinger/Arm64Assembler.cpp",
100 "codeflinger/Arm64Disassembler.cpp",
101 "arch-arm64/col32cb16blend.S",
102 "arch-arm64/t32cb16blend.S",
103 ],
104 },
105 mips: {
106 mips32r6: {
107 srcs: [
108 "codeflinger/MIPSAssembler.cpp",
109 "codeflinger/mips_disassem.c",
110 "arch-mips/t32cb16blend.S",
111 ],
112 },
113 },
114 mips64: {
115 srcs: [
116 "codeflinger/MIPSAssembler.cpp",
117 "codeflinger/MIPS64Assembler.cpp",
118 "codeflinger/mips64_disassem.c",
119 "arch-mips64/col32cb16blend.S",
120 "arch-mips64/t32cb16blend.S",
121 ],
122 },
123 },
124}