88 lines
2.1 KiB
Plaintext
88 lines
2.1 KiB
Plaintext
// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE
|
|
// CONSULT THE OWNERS AND [email protected] BEFORE
|
|
// DEPENDING ON IT IN YOUR PROJECT. ***
|
|
package {
|
|
// See: http://go/android-license-faq
|
|
// A large-scale-change added 'default_applicable_licenses' to import
|
|
// all of the 'license_kinds' from "hardware_amlogic_hwcomposer_license"
|
|
// to get the below license kinds:
|
|
// legacy_by_exception_only (by exception only)
|
|
// legacy_proprietary (by exception only)
|
|
default_applicable_licenses: ["hardware_amlogic_hwcomposer_license"],
|
|
}
|
|
|
|
soong_config_module_type {
|
|
name: "mesondisplay_composition_base_cc_defaults",
|
|
module_type: "cc_defaults",
|
|
config_namespace: "meson_hwc",
|
|
bool_variables: [
|
|
"enable_legacy_video",
|
|
"enable_gfx_hrr",
|
|
],
|
|
|
|
properties: [
|
|
"cflags",
|
|
],
|
|
}
|
|
|
|
soong_config_bool_variable {
|
|
name: "enable_legacy_video",
|
|
}
|
|
|
|
soong_config_bool_variable {
|
|
name: "enable_gfx_hrr",
|
|
}
|
|
|
|
mesondisplay_composition_base_cc_defaults {
|
|
name: "mesondisplay_composition_cc_defaults",
|
|
defaults: [
|
|
"hwcomposer_cc_defaults",
|
|
],
|
|
|
|
soong_config_variables: {
|
|
enable_legacy_video: {
|
|
cflags: ["-DENABLE_LEGACY_VIDEO"],
|
|
},
|
|
enable_gfx_hrr: {
|
|
cflags: ["-DENABLE_GFX_HRR"],
|
|
},
|
|
},
|
|
}
|
|
|
|
cc_library_static {
|
|
name: "mesondisplay.composition_static",
|
|
defaults: ["mesondisplay_composition_cc_defaults"],
|
|
vendor: true,
|
|
|
|
srcs: [
|
|
"Composition.cpp",
|
|
"CompositionStrategyBase.cpp",
|
|
"composer/DummyComposer.cpp",
|
|
"composer/ClientComposer.cpp",
|
|
"composer/V2DComposer.cpp",
|
|
],
|
|
|
|
static_libs: [
|
|
"mesondisplay.common_static",
|
|
"hwc.uvm_static",
|
|
],
|
|
|
|
export_include_dirs: [
|
|
"include",
|
|
"composer",
|
|
],
|
|
|
|
// for the header file include problem
|
|
shared_libs: [
|
|
"libui",
|
|
"libcutils",
|
|
"libutils",
|
|
"liblog",
|
|
],
|
|
cflags: [ "-ftest-coverage", "-fprofile-arcs", ],
|
|
|
|
ldflags: [ "-ftest-coverage", "-fprofile-arcs", ],
|
|
|
|
native_coverage: true,
|
|
}
|