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