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 <[email protected]>
  • Loading branch information
TianmiChen committed Apr 9, 2022
1 parent ecb16b1 commit 60852b6
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions va/Android.bp
Original file line number Diff line number Diff line change
@@ -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",
}

0 comments on commit 60852b6

Please sign in to comment.