Android.bp 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. cc_library_static {
  2. srcs: [
  3. "JMediaPlayer2Utils.cpp",
  4. "JWakeLock.cpp",
  5. "GenericSource2.cpp",
  6. "HTTPLiveSource2.cpp",
  7. "NuPlayer2.cpp",
  8. "NuPlayer2CCDecoder.cpp",
  9. "NuPlayer2Decoder.cpp",
  10. "NuPlayer2DecoderBase.cpp",
  11. "NuPlayer2DecoderPassThrough.cpp",
  12. "NuPlayer2Driver.cpp",
  13. "NuPlayer2Drm.cpp",
  14. "NuPlayer2Renderer.cpp",
  15. "RTSPSource2.cpp",
  16. ],
  17. header_libs: [
  18. "libbase_headers",
  19. "libmediaplayer2_headers",
  20. "media_plugin_headers",
  21. ],
  22. include_dirs: [
  23. "frameworks/av/media/libstagefright",
  24. "frameworks/av/media/libstagefright/httplive",
  25. "frameworks/av/media/libstagefright/include",
  26. "frameworks/av/media/libstagefright/mpeg2ts",
  27. "frameworks/av/media/libstagefright/rtsp",
  28. "frameworks/av/media/libstagefright/timedtext",
  29. "frameworks/av/media/ndk",
  30. "frameworks/base/core/jni",
  31. ],
  32. cflags: [
  33. "-Werror",
  34. "-Wall",
  35. ],
  36. product_variables: {
  37. debuggable: {
  38. cflags: [
  39. "-DENABLE_STAGEFRIGHT_EXPERIMENTS",
  40. ],
  41. }
  42. },
  43. shared_libs: [
  44. "libbinder",
  45. "libui",
  46. "libgui",
  47. "libmedia",
  48. "libmediametrics",
  49. "libmediandk",
  50. "libmediandk_utils",
  51. "libpowermanager",
  52. ],
  53. static_libs: [
  54. "libmedia_helper",
  55. "libmediaplayer2-protos",
  56. "libmedia2_jni_core",
  57. ],
  58. name: "libstagefright_nuplayer2",
  59. sanitize: {
  60. cfi: true,
  61. },
  62. }