extra: Move GApps definitions to partner_gms

cm-14.1
Nolen Johnson 6 years ago
parent f555fcd19b
commit 5c914855be
  1. 128
      gapps.mk
  2. 10
      product.mk

@ -1,128 +0,0 @@
LOCAL_PATH := $(call my-dir)
STOCK_GAPPS_DEVICES += \
%berkeley \
%ether \
%nash \
%klte
MICRO_GAPPS_DEVICES += \
%shieldtablet
NANO_GAPPS_DEVICES += \
%bacon \
%hlte \
%hltetmo \
%molly
PICO_GAPPS_DEVICES += \
%jfltevzw \
%jfltexx \
%yellowstone
MOST_GAPPS_DEVICES += \
%shamu
FLASH_GAPPS_DEVICES += \
%flo
EXCLUDE_GOOGLE_SYSUI_DEVICES += \
%hammerhead \
%foster \
%fugu \
%tv_molly
GAPPS_DEVICES += \
$(STOCK_GAPPS_DEVICES) \
$(MOST_GAPPS_DEVICES) \
$(MICRO_GAPPS_DEVICES) \
$(NANO_GAPPS_DEVICES) \
$(PICO_GAPPS_DEVICES) \
$(PIXEL_CODENAMES)
ifneq ($(filter $(PIXEL_CODENAMES),$(TARGET_PRODUCT)),)
GAPPS_VARIANT := stock
GAPPS_FORCE_PACKAGE_OVERRIDES := true
GAPPS_FORCE_PIXEL_LAUNCHER := true
endif # Pixel GApps
ifneq ($(filter $(STOCK_GAPPS_DEVICES),$(TARGET_PRODUCT)),)
GAPPS_VARIANT := stock
GAPPS_FORCE_PACKAGE_OVERRIDES := true
GAPPS_FORCE_PIXEL_LAUNCHER := true
GAPPS_EXCLUDED_PACKAGES += \
GoogleCamera \
Turbo \
MarkupGoogle
endif # Stock GApps
ifneq ($(filter $(MICRO_GAPPS_DEVICES),$(TARGET_PRODUCT)),)
GAPPS_VARIANT := micro
GAPPS_FORCE_PACKAGE_OVERRIDES := true
GAPPS_FORCE_PIXEL_LAUNCHER := true
GAPPS_EXCLUDED_PACKAGES += \
GoogleCamera \
Turbo \
MarkupGoogle
endif # Stock GApps
ifneq ($(filter $(MOST_GAPPS_DEVICES),$(TARGET_PRODUCT)),)
GAPPS_VARIANT := stock
GAPPS_FORCE_PACKAGE_OVERRIDES := true
GAPPS_FORCE_PIXEL_LAUNCHER := true
GAPPS_EXCLUDED_PACKAGES := GoogleCamera
GAPPS_EXCLUDED_PACKAGES += \
Maps \
Hangouts \
EditorSheets \
YouTube \
PlusOne \
EditorDocs \
Drive \
FitnessPrebuilt \
PrebuiltKeep \
Books \
PlayGames \
Videos \
EditorSlides \
Turbo \
MarkupGoogle
endif # Most GApps
ifneq ($(filter $(NANO_GAPPS_DEVICES),$(TARGET_PRODUCT)),)
GAPPS_VARIANT := nano
GAPPS_FORCE_PACKAGE_OVERRIDES := true
GAPPS_FORCE_PIXEL_LAUNCHER := true
GAPPS_EXCLUDED_PACKAGES += \
MarkupGoogle \
Turbo
endif # Nano GApps
ifneq ($(filter $(PICO_GAPPS_DEVICES),$(TARGET_PRODUCT)),)
GAPPS_VARIANT := pico
GAPPS_FORCE_PACKAGE_OVERRIDES := true
GAPPS_FORCE_PIXEL_LAUNCHER := true
GAPPS_EXCLUDED_PACKAGES += \
CalSync \
DialerFramework \
BatteryUsage \
FaceDetect \
FaceUnlock \
MarkupGoogle \
Speech \
Wellbeing \
PixelLauncherIcons \
GoogleTTS \
Wallpapers \
Turbo \
GoogleCalendarSyncAdapter \
GoogleContactsSyncAdapter \
CompanionDeviceManager \
GoogleFeedback \
MarkupGoogle
endif # Pico GApps
ifneq ($(filter $(GAPPS_DEVICES),$(TARGET_PRODUCT)),)
WITH_GMS := true
endif # GApps Inclusion

@ -49,11 +49,17 @@ PRODUCT_PACKAGES += \
MotCamera2
endif
ifneq ($(filter %fugu,$(TARGET_PRODUCT)),)
EXCLUDE_GOOGLE_SERVICES_DEVICES += \
%hammerhead \
%jfltexx \
%foster \
%fugu \
%tv_molly
ifneq ($(filter $(EXCLUDE_GOOGLE_SERVICES_DEVICES),$(TARGET_PRODUCT)),)
DISABLE_GAPPS := true
endif
ifneq ($(DISABLE_GAPPS),true)
-include vendor/google_pixel/product.mk
-include vendor/extra/gapps.mk
endif # Disable GApps

Loading…
Cancel
Save