forked from davidgfnet/linux-rga
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAndroid.bp
executable file
·85 lines (77 loc) · 1.75 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
bootstrap_go_package {
name: "soong-librga",
pkgPath: "android/soong/librga",
deps: [
"blueprint",
"blueprint-pathtools",
"soong",
"soong-android",
"soong-cc",
"soong-genrule",
],
srcs: [
"Android.go",
],
pluginFor: ["soong_build"],
}
genrule {
name: "gen_rga_api_version",
srcs: [
"version.h.template",
".git/"
],
out: ["version.h"],
cmd: "rm -f $(location version.h) && " + "bash $(location genversion.sh) Android.bp < $(in) > $(out)",
tool_files: ["genversion.sh"],
}
cc_librga {
name: "cc_librga_defaults"
}
cc_library_shared {
name: "librga",
defaults: [
"cc_librga_defaults"
],
vendor_available: true,
/*
generated_headers: [
"gen_rga_api_version",
],
*/
header_libs: [
"gl_headers",
"libgui_headers",
"libhardware_headers",
"libbinder_headers",
"liblog_headers",
],
srcs: [
"core/RockchipRga.cpp",
"core/GrallocOps.cpp",
"core/NormalRga.cpp",
"core/NormalRgaApi.cpp",
"core/RgaApi.cpp",
"core/RgaUtils.cpp",
"im2d_api/im2d.cpp"
],
export_include_dirs: [
"include",
"core"
],
include_dirs: [
"external/libdrm",
"external/libdrm/include/drm",
"frameworks/native/libs/nativewindow/include",
"system/core/libsync",
"system/core/libsync/include",
],
shared_libs: [
"liblog",
"libui",
"libutils",
"libcutils",
"libhardware",
"libsync",
],
cflags: ["-Wno-error"] +["-DLOG_TAG=\"librga\""] + ["-DRK_DRM_GRALLOC=1"] + ["-DANDROID_8"] + ["-DANDROID_7_DRM"] + ["-DUSE_AHARDWAREBUFFER=1"] + ["-DANDROID"],
}