vendor/lineage: Add support for java source overlays
*) Set JAVA_SOURCE_OVERLAYS in a device makefile as follows: # Java sourcefile overlays (for Android.bp built modules only) # Format is a whitespace separated set of rules, each of which # structured as follows: # modulename|overlay directory|glob pattern within overlay dir JAVA_SOURCE_OVERLAYS := \ org.lineageos.hardware|$(LOCAL_PATH)/lineagehw|**/*.java *) As of this commit, java sources overlays are only allowed for module org.lineageos.hardware. Change-Id: I6be1c12567081357f5231a84df98ac002c0563b4
This commit is contained in:
@@ -2,6 +2,7 @@ bootstrap_go_package {
|
|||||||
name: "soong-lineage",
|
name: "soong-lineage",
|
||||||
pkgPath: "lineage/soong/android",
|
pkgPath: "lineage/soong/android",
|
||||||
srcs: [
|
srcs: [
|
||||||
|
"android/config.go",
|
||||||
"android/variable.go",
|
"android/variable.go",
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
13
build/soong/android/config.go
Normal file
13
build/soong/android/config.go
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
package android
|
||||||
|
|
||||||
|
// Global config used by Lineage soong additions
|
||||||
|
var LineageConfig = struct {
|
||||||
|
// List of packages that are permitted
|
||||||
|
// for java source overlays.
|
||||||
|
JavaSourceOverlayModuleWhitelist []string
|
||||||
|
}{
|
||||||
|
// JavaSourceOverlayModuleWhitelist
|
||||||
|
[]string{
|
||||||
|
"org.lineageos.hardware",
|
||||||
|
},
|
||||||
|
}
|
@@ -30,6 +30,7 @@ type Product_variables struct {
|
|||||||
type ProductVariables struct {
|
type ProductVariables struct {
|
||||||
Additional_gralloc_10_usage_bits *string `json:",omitempty"`
|
Additional_gralloc_10_usage_bits *string `json:",omitempty"`
|
||||||
Has_legacy_camera_hal1 *bool `json:",omitempty"`
|
Has_legacy_camera_hal1 *bool `json:",omitempty"`
|
||||||
|
Java_Source_Overlays *string `json:",omitempty"`
|
||||||
Needs_text_relocations *bool `json:",omitempty"`
|
Needs_text_relocations *bool `json:",omitempty"`
|
||||||
Specific_camera_parameter_library *string `json:",omitempty"`
|
Specific_camera_parameter_library *string `json:",omitempty"`
|
||||||
Target_shim_libs *string `json:",omitempty"`
|
Target_shim_libs *string `json:",omitempty"`
|
||||||
|
@@ -5,6 +5,7 @@ _contents := $(_contents) "Lineage":{$(newline)
|
|||||||
# See build/core/soong_config.mk for the add_json_* functions you can use here.
|
# See build/core/soong_config.mk for the add_json_* functions you can use here.
|
||||||
$(call add_json_str_omitempty, Additional_gralloc_10_usage_bits, $(TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS))
|
$(call add_json_str_omitempty, Additional_gralloc_10_usage_bits, $(TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS))
|
||||||
$(call add_json_bool, Has_legacy_camera_hal1, $(filter true,$(TARGET_HAS_LEGACY_CAMERA_HAL1)))
|
$(call add_json_bool, Has_legacy_camera_hal1, $(filter true,$(TARGET_HAS_LEGACY_CAMERA_HAL1)))
|
||||||
|
$(call add_json_str, Java_Source_Overlays, $(JAVA_SOURCE_OVERLAYS))
|
||||||
$(call add_json_bool, Needs_text_relocations, $(filter true,$(TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS)))
|
$(call add_json_bool, Needs_text_relocations, $(filter true,$(TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS)))
|
||||||
$(call add_json_str, Specific_camera_parameter_library, $(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY))
|
$(call add_json_str, Specific_camera_parameter_library, $(TARGET_SPECIFIC_CAMERA_PARAMETER_LIBRARY))
|
||||||
$(call add_json_str, Target_shim_libs, $(TARGET_LD_SHIM_LIBS))
|
$(call add_json_str, Target_shim_libs, $(TARGET_LD_SHIM_LIBS))
|
||||||
|
Reference in New Issue
Block a user