omni: Add Soong namespace for Launcher3 version
Change-Id: Ifd0f4f84092d7df7a7f07aae37d4597ed492c625
diff --git a/config/Android.bp b/config/Android.bp
index 218d2b0..58a4f3c 100644
--- a/config/Android.bp
+++ b/config/Android.bp
@@ -1,5 +1,28 @@
// Omni soong configs
soong_config_module_type {
+ name: "omni_launcher3",
+ module_type: "java_defaults",
+ config_namespace: "omniGlobalVars",
+ bool_variables: [
+ "launcher3Gapps",
+ "launcher3Mock",
+ ],
+ properties: ["static_libs"],
+}
+
+omni_launcher3 {
+ name: "omni_launcher3_defaults",
+ soong_config_variables: {
+ launcher3Gapps: {
+ static_libs: ["Launcher3QuickStepLibGoogle"],
+ },
+ launcher3Mock: {
+ static_libs: ["Launcher3QuickStepLibMock"],
+ },
+ },
+}
+
+soong_config_module_type {
name: "aapt_version_code",
module_type: "java_defaults",
config_namespace: "omniGlobalVars",
diff --git a/config/BoardConfigSoong.mk b/config/BoardConfigSoong.mk
index d02c29d..4a27aa6 100644
--- a/config/BoardConfigSoong.mk
+++ b/config/BoardConfigSoong.mk
@@ -33,6 +33,8 @@
gralloc_handle_has_reserved_size \
healthd_use_battery_info \
healthd_enable_op_fastchg \
+ launcher3Gapps \
+ launcher3Mock \
targetNeedsHWCOnFirstRef \
uses_metadata_as_fde_key \
target_use_sdclang \
@@ -72,7 +74,16 @@
TARGET_SURFACEFLINGER_UDFPS_LIB ?= surfaceflinger_udfps_lib
TARGET_GRALLOC_HANDLE_HAS_RESERVED_SIZE ?= false
+SOONG_CONFIG_omniGlobalVars_launcher3Gapps ?= false
+SOONG_CONFIG_omniGlobalVars_launcher3Mock ?= false
+
# Soong value variables
SOONG_CONFIG_omniGlobalVars_additional_gralloc_10_usage_bits := $(TARGET_ADDITIONAL_GRALLOC_10_USAGE_BITS)
SOONG_CONFIG_omniGlobalVars_target_init_vendor_lib := $(TARGET_INIT_VENDOR_LIB)
SOONG_CONFIG_omniGlobalVars_target_surfaceflinger_udfps_lib := $(TARGET_SURFACEFLINGER_UDFPS_LIB)
+
+ifeq ($(ROM_BUILDTYPE),GAPPS)
+ SOONG_CONFIG_omniGlobalVars_launcher3Gapps := true
+else
+ SOONG_CONFIG_omniGlobalVars_launcher3Mock := true
+endif