bigbiff | 91bd7a7 | 2021-01-03 17:33:01 -0500 | [diff] [blame] | 1 | cc_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 | |
| 28 | cc_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 | |
| 47 | cc_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 | }, |
bigbiff | 91bd7a7 | 2021-01-03 17:33:01 -0500 | [diff] [blame] | 87 | }, |
| 88 | } |