diff --git a/va/Android.bp b/va/Android.bp new file mode 100644 index 00000000..02c45a94 --- /dev/null +++ b/va/Android.bp @@ -0,0 +1,61 @@ +cc_library_headers { + name: "libva_headers", + + export_include_dirs: ["."], + + vendor: true, + + owner: "intel", +} + +cc_library_shared { + name: "libva_bp", + + include_dirs: [ + "out/target/product/caas/obj/include/libva/", + ], + + header_libs: [ + "libva_headers", + ], + + srcs: [ + "va.c", + "va_trace.c", + "va_fool.c", + "va_str.c", + ], + + cflags: [ + "-Wno-sign-compare", + "-Wno-unused-parameter", + "-Wno-missing-field-initializers", + "-DLIBVA_DRIVERS_PATH_32=/vendor/lib", + "-DLIBVA_DRIVERS_PATH_64=/vendor/lib64", + ], + + arch: { + x86: { + cflags: [ + "-DVA_DRIVERS_PATH=\"/vendor/lib\"", + ], + }, + + x86_64: { + cflags: [ + "-DVA_DRIVERS_PATH=\"/vendor/lib64\"", + ], + } + }, + + shared_libs: [ + "libdl", + "libdrm", + "libcutils", + "liblog", + ], + + vendor: true, + + owner: "intel", +}