Skip to content

Commit

Permalink
Add Android.bp file in libva
Browse files Browse the repository at this point in the history
Tracked-On:
Signed-off-by: Chen, Tianmi <tianmi.chen@intel.com>
  • Loading branch information
TianmiChen committed Apr 18, 2022
1 parent ecb16b1 commit 90e4c3e
Showing 1 changed file with 88 additions and 0 deletions.
88 changes: 88 additions & 0 deletions va/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
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",
}

cc_library_shared {
name: "libva-android-bp",

srcs: [
"android/va_android.cpp",
"drm/va_drm_utils.c",
],

shared_libs: [
"libva_bp",
"libdrm",
"liblog",
],

local_include_dirs: [
"drm",
],

include_dirs: [
"out/target/product/caas/obj/include/libva/",
],

vendor: true,

owner: "intel",
}

0 comments on commit 90e4c3e

Please sign in to comment.