Android.bp 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. cc_defaults {
  2. name: "pixelflinger_defaults",
  3. cflags: [
  4. "-fstrict-aliasing",
  5. "-fomit-frame-pointer",
  6. "-Wall",
  7. "-Werror",
  8. "-Wno-unused-function",
  9. ],
  10. export_include_dirs: ["include"],
  11. header_libs: ["libbase_headers"],
  12. shared_libs: [
  13. "libcutils",
  14. "liblog",
  15. "libutils",
  16. ],
  17. arch: {
  18. arm: {
  19. neon: {
  20. cflags: ["-D__ARM_HAVE_NEON"],
  21. },
  22. },
  23. },
  24. }
  25. cc_library_static {
  26. name: "libpixelflinger-arm",
  27. defaults: ["pixelflinger_defaults"],
  28. srcs: [
  29. "fixed.cpp",
  30. "picker.cpp",
  31. "pixelflinger.cpp",
  32. "trap.cpp",
  33. "scanline.cpp",
  34. ],
  35. arch: {
  36. arm: {
  37. instruction_set: "arm",
  38. },
  39. },
  40. }
  41. // For the tests to use
  42. cc_library_headers {
  43. name: "libpixelflinger_internal",
  44. export_include_dirs: [
  45. "include",
  46. ".",
  47. ],
  48. }
  49. cc_library {
  50. name: "libpixelflinger",
  51. defaults: ["pixelflinger_defaults"],
  52. srcs: [
  53. "codeflinger/ARMAssemblerInterface.cpp",
  54. "codeflinger/ARMAssemblerProxy.cpp",
  55. "codeflinger/CodeCache.cpp",
  56. "codeflinger/GGLAssembler.cpp",
  57. "codeflinger/load_store.cpp",
  58. "codeflinger/blending.cpp",
  59. "codeflinger/texturing.cpp",
  60. "format.cpp",
  61. "clear.cpp",
  62. "raster.cpp",
  63. "buffer.cpp",
  64. ],
  65. whole_static_libs: ["libpixelflinger-arm"],
  66. arch: {
  67. arm: {
  68. srcs: [
  69. "codeflinger/ARMAssembler.cpp",
  70. "codeflinger/disassem.c",
  71. "col32cb16blend.S",
  72. "t32cb16blend.S",
  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. }