Android.bp 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. // Copyright (C) 2008 The Android Open Source Project
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. sourceFiles = [
  15. "acquired_buffer.cpp",
  16. "epoll_event_dispatcher.cpp",
  17. "display_manager_service.cpp",
  18. "display_service.cpp",
  19. "display_surface.cpp",
  20. "hardware_composer.cpp",
  21. "vr_flinger.cpp",
  22. ]
  23. includeFiles = [ "include" ]
  24. staticLibraries = [
  25. "libdisplay",
  26. "libdvrcommon",
  27. "libperformance",
  28. "libvrsensor",
  29. "libbroadcastring",
  30. "libvr_manager",
  31. "libbroadcastring",
  32. ]
  33. sharedLibraries = [
  34. "[email protected]",
  35. "[email protected]",
  36. "[email protected]",
  37. "[email protected]",
  38. "[email protected]",
  39. "libbinder",
  40. "libbase",
  41. "libbufferhubqueue",
  42. "libcutils",
  43. "liblog",
  44. "libhardware",
  45. "libnativewindow",
  46. "libprocessgroup",
  47. "libutils",
  48. "libEGL",
  49. "libGLESv1_CM",
  50. "libGLESv2",
  51. "libvulkan",
  52. "libui",
  53. "libgui",
  54. "libsync",
  55. "libhidlbase",
  56. "libhidltransport",
  57. "libfmq",
  58. "libpdx_default_transport",
  59. ]
  60. headerLibraries = [
  61. "[email protected]",
  62. "[email protected]",
  63. "[email protected]",
  64. "libdvr_headers",
  65. "libsurfaceflinger_headers",
  66. ]
  67. cc_library_static {
  68. srcs: sourceFiles,
  69. export_include_dirs: includeFiles,
  70. clang: true,
  71. cflags: [
  72. "-DLOG_TAG=\"vr_flinger\"",
  73. "-DTRACE=0",
  74. "-DATRACE_TAG=ATRACE_TAG_GRAPHICS",
  75. "-DGL_GLEXT_PROTOTYPES",
  76. "-DEGL_EGLEXT_PROTOTYPES",
  77. "-Wall",
  78. "-Werror",
  79. "-Wno-error=sign-compare", // to fix later
  80. "-Wno-unused-variable",
  81. ],
  82. shared_libs: sharedLibraries,
  83. whole_static_libs: staticLibraries,
  84. header_libs: headerLibraries,
  85. name: "libvrflinger",
  86. }
  87. subdirs = [
  88. "tests",
  89. ]