-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathAndroid.bp
93 lines (80 loc) · 2.01 KB
/
Android.bp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
vpu_wrapper_hantro_defaults {
name: "vpu_wrapper_hantro_default",
srcs: [
"vpu_wrapper_hantro.c",
"utils.c",
],
include_dirs: [
"vendor/nxp/imx-vpu-hantro/h1_encoder/software/inc",
"vendor/nxp/imx-vpu-hantro/decoder_sw/software/source/inc",
"vendor/nxp/imx-vpu-hantro/openmax_il/source/decoder",
"vendor/nxp/imx-vpu-hantro/openmax_il/source",
"vendor/nxp/imx-vpu-hantro/openmax_il/headers",
"vendor/nxp/imx-vpu-hantro/openmax_il",
"vendor/nxp/fsl-codec/ghdr",
],
cflags: [
"-DSET_OUTPUT_CROP_RECT",
"-DUSE_EXTERNAL_BUFFER",
"-DUSE_OUTPUT_RELEASE",
"-DVSI_API",
"-DIS_G2_DECODER",
"-DENABLE_CODEC_HEVC",
"-DGET_FREE_BUFFER_NON_BLOCK",
"-DDOWN_SCALER",
"-DENABLE_CODEC_VP8",
"-DENCH1",
"-Wno-error=date-time",
"-Wno-unused-parameter",
"-Wno-implicit-fallthrough",
"-Werror",
],
ldflags: [
"-Wl,-Bsymbolic",
],
shared_libs: [
"liblog",
"libutils",
"libc",
"libm",
"libcodec",
"libhantro",
],
sanitize: {
misc_undefined: [
"signed-integer-overflow",
"unsigned-integer-overflow",
"bounds",],
diag: {
misc_undefined: [
"signed-integer-overflow",
"unsigned-integer-overflow",
"bounds",],
},
cfi: true,
},
soc_specific: true,
vendor: true
}
bootstrap_go_package {
name: "soong-vpu_wrapper",
pkgPath: "android/soong/vendor/nxp-opensource/vpu_wrapper",
deps: [
"blueprint",
"blueprint-pathtools",
"soong",
"soong-android",
"soong-cc",
"soong-genrule",
],
srcs: [
"vpu_wrapper.go",
],
pluginFor: ["soong_build"],
}
cc_library_shared {
name: "lib_vpu_wrapper",
defaults: [
"vpu_wrapper_hantro_default",
],
}