154 lines
3.3 KiB
Plaintext
154 lines
3.3 KiB
Plaintext
bootstrap_go_package {
|
|
name:"soong-surfaceflinger-mediatek",
|
|
pkgPath:"android/soong/surfaceflinger/mediatek",
|
|
deps:[
|
|
"soong-android",
|
|
"soong-cc",
|
|
],
|
|
srcs:[
|
|
"mtksurfaceflinger.go",
|
|
],
|
|
pluginFor:["soong_build"],
|
|
}
|
|
|
|
mtk_surfaceflinger_config_defaults {
|
|
name: "mtk_surfaceflinger_config",
|
|
}
|
|
|
|
cc_defaults {
|
|
name: "mtk_surfaceflinger_defaults",
|
|
defaults: ["mtk_surfaceflinger_config"],
|
|
cflags: [
|
|
"-DMTK_AOSP_DISPLAY_BUGFIX",
|
|
"-DMTK_SF_CPU_POLICY",
|
|
"-DMTK_SF_DEBUG_SUPPORT",
|
|
"-DMTK_SF_GUI_DEBUG_SUPPORT",
|
|
"-DMTK_SF_WATCHDOG_SUPPORT",
|
|
"-DMTK_VSYNC_HINT_SUPPORT",
|
|
"-DMTK_SF_HWC_VDS_SUPPORT",
|
|
"-DMTK_DISABLE_COLOR_TRANSFORM_FOR_SECONDARY_DISPLAYS",
|
|
"-DMTK_DISPLAY_DECOMPRESSION",
|
|
"-DMTK_MIRROR_SUPPORT",
|
|
"-DMTK_DISPLAY_DEJITTER",
|
|
"-DMTK_SF_OVL_ONLY_FOR_WIFI_DISPLAY",
|
|
"-DMTK_IN_DISPLAY_FINGERPRINT",
|
|
"-DMTK_COMPOSER_EXT",
|
|
"-DMTK_VDS_HDCP",
|
|
"-DMTK_ATRACE_PRESENT_FENCE",
|
|
"-DMTK_SF_HINT_DISPLAY_INFO",
|
|
"-DMTK_SF_EXTEND_BACKPRESSURE",
|
|
"-DMTK_SF_PERF_API",
|
|
"-DMTK_SF_NOTIFY_EXPECTED_PRESENT_TIME",
|
|
"-DMTK_SF_PQ_MANAGEMENT",
|
|
],
|
|
cppflags: [
|
|
],
|
|
srcs: [
|
|
],
|
|
static_libs: [
|
|
],
|
|
shared_libs: [
|
|
"libcomposer_ext",
|
|
],
|
|
arch: {
|
|
arm: {
|
|
cflags: [
|
|
"-DMTK_HDR_DISPLAY_SUPPORT",
|
|
"-DMTK_GPUD_SUPPORT",
|
|
],
|
|
shared_libs: [
|
|
"libgpud_sys",
|
|
],
|
|
},
|
|
arm64: {
|
|
cflags: [
|
|
"-DMTK_HDR_DISPLAY_SUPPORT",
|
|
"-DMTK_GPUD_SUPPORT",
|
|
],
|
|
shared_libs: [
|
|
"libgpud_sys",
|
|
],
|
|
},
|
|
},
|
|
header_libs: [
|
|
"libgem_headers",
|
|
"libgralloc_metadata_sys_headers",
|
|
],
|
|
}
|
|
|
|
cc_defaults {
|
|
name: "mtk_libsurfaceflinger_defaults",
|
|
cflags: [
|
|
],
|
|
cppflags: [
|
|
],
|
|
srcs: [
|
|
],
|
|
static_libs: [
|
|
],
|
|
shared_libs: [
|
|
],
|
|
arch: {
|
|
arm: {
|
|
shared_libs: [
|
|
"libgralloc_extra_sys",
|
|
"libsf_cpupolicy",
|
|
],
|
|
},
|
|
arm64: {
|
|
shared_libs: [
|
|
"libgralloc_extra_sys",
|
|
"libsf_cpupolicy",
|
|
],
|
|
},
|
|
},
|
|
header_libs: [
|
|
],
|
|
}
|
|
|
|
filegroup {
|
|
name: "mtk_libsurfaceflinger_sources",
|
|
srcs: [
|
|
"SurfaceFlinger.cpp",
|
|
"SFWatchDogAPILoader.cpp",
|
|
"Scheduler/VSyncHinter.cpp",
|
|
"BufferDumpAPILoader.cpp",
|
|
"BufferQueueDebug.cpp",
|
|
"BufferLayer.cpp",
|
|
"DispDeJitterHelper.cpp",
|
|
"CoreDump.cpp",
|
|
"MtkDebugAPI.cpp",
|
|
"SFDebugAPILoader.cpp",
|
|
":mtk_libsfcpupolicy_sources",
|
|
"DisplayHardware/PowerAdvisor.cpp",
|
|
"DisplayHardware/PowerHalWrapper.cpp",
|
|
"SFPerfAPILoader.cpp",
|
|
],
|
|
}
|
|
|
|
filegroup {
|
|
name: "mtk_libsfcpupolicy_sources",
|
|
srcs: [
|
|
"SfCpuPolicyAdapter/SfCpuPolicyAdapter.cpp",
|
|
],
|
|
}
|
|
|
|
|
|
cc_library {
|
|
name: "libsf_mtk_property",
|
|
cflags: [
|
|
"-DMTK_SF_DEBUG_SUPPORT",
|
|
],
|
|
srcs: [
|
|
"SFProperty.cpp",
|
|
],
|
|
export_include_dirs: ["."],
|
|
shared_libs: [
|
|
"liblog",
|
|
"libutils",
|
|
"libcutils",
|
|
],
|
|
header_libs: [
|
|
],
|
|
}
|