Skip to content

Commit fd1cfe0

Browse files
mikeNGme-cafebabe
authored andcommitted
Convert remaining Android.mk to blueprint
Change-Id: I2bc23d2111417355f95c4a2d6e42d2ec2003ead4
1 parent c337f56 commit fd1cfe0

File tree

14 files changed

+101
-175
lines changed

14 files changed

+101
-175
lines changed

Android.bp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ cc_defaults {
55
"-Wconversion",
66
"-Wall",
77
"-Werror",
8-
],
8+
"-DUSE_COLOR_METADATA",
9+
] + select(soong_config_variable("qtidisplay", "headless"), {
10+
"true": ["-DTARGET_HEADLESS"],
11+
default: [],
12+
}),
913
shared_libs: [
1014
"liblog",
1115
"libcutils",
@@ -30,9 +34,3 @@ cc_library_headers {
3034
header_libs: ["libhardware_headers", "display_intf_headers"],
3135
export_header_lib_headers: ["libhardware_headers", "display_intf_headers"],
3236
}
33-
34-
subdirs = [
35-
"gpu_tonemapper",
36-
"libqservice",
37-
"libqdutils",
38-
]

Android.mk

Lines changed: 0 additions & 21 deletions
This file was deleted.

common.mk

Lines changed: 0 additions & 38 deletions
This file was deleted.

gpu_tonemapper/EGLImageWrapper.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,7 @@ static EGLImageBuffer* L_wrap(const private_handle_t *src)
163163

164164
android::sp<android::GraphicBuffer> graphicBuffer =
165165
new android::GraphicBuffer(src->unaligned_width, src->unaligned_height, src->format,
166-
#ifndef __NOUGAT__
167166
1, // Layer count
168-
#endif
169167
flags, src->width /*src->stride*/,
170168
native_handle, false);
171169

gralloc/Android.bp

Lines changed: 62 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
//libgrallocutils
12
cc_library_shared {
23
name: "libgrallocutils",
34
defaults: ["display_defaults"],
45
vendor: true,
5-
srcs: [
6-
"gr_utils.cpp",
7-
"gr_adreno_info.cpp",
6+
7+
header_libs: [
8+
"display_headers",
9+
"qti_kernel_headers",
810
],
911
shared_libs: [
1012
"libqdMetaData",
@@ -16,8 +18,65 @@ cc_library_shared {
1618
"-Wno-sign-conversion",
1719
"-Wno-enum-enum-conversion",
1820
],
21+
srcs: [
22+
"gr_utils.cpp",
23+
"gr_adreno_info.cpp",
24+
],
25+
}
26+
27+
soong_config_module_type {
28+
name: "target_board_platform_cc_library_shared",
29+
module_type: "cc_library_shared",
30+
config_namespace: "ANDROID",
31+
value_variables: ["target_board_platform"],
32+
properties: [
33+
"name",
34+
],
35+
}
36+
37+
libion_include_dirs = ["system/memory/libion/include", "system/memory/libion/kernel-headers"]
38+
39+
//gralloc.qcom
40+
target_board_platform_cc_library_shared {
41+
name: "gralloc.qcom",
42+
soong_config_variables: {
43+
target_board_platform: {
44+
name: "gralloc.%s",
45+
conditions_default: {
46+
name: "gralloc.qcom",
47+
},
48+
},
49+
},
50+
defaults: ["display_defaults"],
51+
vendor: true,
52+
relative_install_path: "hw",
1953
header_libs: [
2054
"display_headers",
2155
"qti_kernel_headers",
2256
],
57+
include_dirs: select(soong_config_variable("qtidisplay", "target_kernel_version"), {
58+
"4.14": libion_include_dirs,
59+
"4.19": libion_include_dirs,
60+
default: [],
61+
}),
62+
shared_libs: [
63+
"libgrallocutils",
64+
"libqdMetaData",
65+
"libsync",
66+
"android.hardware.graphics.common@1.1",
67+
] + select(soong_config_variable("qtidisplay", "target_kernel_version"), {
68+
"4.14": ["libion"],
69+
"4.19": ["libion"],
70+
default: [],
71+
}),
72+
cflags: [
73+
"-DLOG_TAG=\"qdgralloc\"",
74+
"-Wno-enum-enum-conversion",
75+
],
76+
srcs: [
77+
"gr_ion_alloc.cpp",
78+
"gr_allocator.cpp",
79+
"gr_buf_mgr.cpp",
80+
"gr_device_impl.cpp",
81+
],
2382
}

gralloc/Android.mk

Lines changed: 0 additions & 46 deletions
This file was deleted.

hdmi_cec/Android.bp

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
cc_library_shared {
3+
4+
name: "hdmi_cec.qcom",
5+
vendor: true,
6+
relative_install_path: "hw",
7+
8+
header_libs: ["display_headers"],
9+
shared_libs: [
10+
"liblog",
11+
"libutils",
12+
"libcutils",
13+
],
14+
15+
cflags: [
16+
"-DLOG_TAG=\"qdhdmi_cec\"",
17+
"-Wno-sign-conversion",
18+
],
19+
srcs: [
20+
"qhdmi_cec.cpp",
21+
],
22+
}

hdmi_cec/Android.mk

Lines changed: 0 additions & 18 deletions
This file was deleted.

include/Android.mk

Lines changed: 0 additions & 4 deletions
This file was deleted.

libcopybit/Android.mk

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)