Android.mk 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. #
  2. # Copyright (C) 2013 The Android Open Source Project
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16. LOCAL_PATH := $(call my-dir)
  17. #
  18. # Build rule for Launcher3 Go app for Android Go devices.
  19. #
  20. include $(CLEAR_VARS)
  21. LOCAL_USE_AAPT2 := true
  22. LOCAL_MODULE_TAGS := optional
  23. LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
  24. LOCAL_SRC_FILES := \
  25. $(call all-java-files-under, src) \
  26. $(call all-java-files-under, src_ui_overrides) \
  27. $(call all-java-files-under, go/src)
  28. LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/go/res
  29. LOCAL_PROGUARD_FLAG_FILES := proguard.flags
  30. LOCAL_SDK_VERSION := current
  31. LOCAL_MIN_SDK_VERSION := 26
  32. LOCAL_PACKAGE_NAME := Launcher3Go
  33. LOCAL_PRIVILEGED_MODULE := true
  34. LOCAL_SYSTEM_EXT_MODULE := true
  35. LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep
  36. LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
  37. LOCAL_FULL_LIBS_MANIFEST_FILES := \
  38. $(LOCAL_PATH)/AndroidManifest.xml \
  39. $(LOCAL_PATH)/AndroidManifest-common.xml
  40. LOCAL_MANIFEST_FILE := go/AndroidManifest.xml
  41. LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
  42. LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
  43. LOCAL_LICENSE_CONDITIONS := notice
  44. LOCAL_NOTICE_FILE := $(LOCAL_PATH)/NOTICE
  45. include $(BUILD_PACKAGE)
  46. #
  47. # Build rule for Quickstep app.
  48. #
  49. include $(CLEAR_VARS)
  50. LOCAL_USE_AAPT2 := true
  51. LOCAL_MODULE_TAGS := optional
  52. LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3QuickStepLib
  53. LOCAL_PROGUARD_ENABLED := disabled
  54. ifneq (,$(wildcard frameworks/base))
  55. LOCAL_PRIVATE_PLATFORM_APIS := true
  56. else
  57. LOCAL_SDK_VERSION := system_current
  58. LOCAL_MIN_SDK_VERSION := 26
  59. endif
  60. LOCAL_PACKAGE_NAME := Launcher3QuickStep
  61. LOCAL_PRIVILEGED_MODULE := true
  62. LOCAL_SYSTEM_EXT_MODULE := true
  63. LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3
  64. LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
  65. LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/quickstep/res
  66. LOCAL_FULL_LIBS_MANIFEST_FILES := \
  67. $(LOCAL_PATH)/quickstep/AndroidManifest-launcher.xml \
  68. $(LOCAL_PATH)/AndroidManifest-common.xml
  69. LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
  70. LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
  71. LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
  72. LOCAL_LICENSE_CONDITIONS := notice
  73. LOCAL_NOTICE_FILE := $(LOCAL_PATH)/NOTICE
  74. include $(BUILD_PACKAGE)
  75. #
  76. # Build rule for Launcher3 Go app with quickstep for Android Go devices.
  77. #
  78. include $(CLEAR_VARS)
  79. LOCAL_USE_AAPT2 := true
  80. LOCAL_MODULE_TAGS := optional
  81. LOCAL_STATIC_JAVA_LIBRARIES := \
  82. SystemUI-statsd \
  83. SystemUISharedLib
  84. ifneq (,$(wildcard frameworks/base))
  85. LOCAL_PRIVATE_PLATFORM_APIS := true
  86. else
  87. LOCAL_SDK_VERSION := system_current
  88. LOCAL_MIN_SDK_VERSION := 26
  89. endif
  90. LOCAL_STATIC_ANDROID_LIBRARIES := LauncherGoResLib
  91. LOCAL_SRC_FILES := \
  92. $(call all-java-files-under, src) \
  93. $(call all-java-files-under, quickstep/src) \
  94. $(call all-java-files-under, go/src) \
  95. $(call all-java-files-under, go/quickstep/src)
  96. LOCAL_RESOURCE_DIR := \
  97. $(LOCAL_PATH)/go/quickstep/res \
  98. $(LOCAL_PATH)/go/res \
  99. $(LOCAL_PATH)/quickstep/res
  100. LOCAL_PROGUARD_FLAG_FILES := proguard.flags
  101. LOCAL_PROGUARD_ENABLED := full
  102. LOCAL_PACKAGE_NAME := Launcher3QuickStepGo
  103. LOCAL_PRIVILEGED_MODULE := true
  104. LOCAL_SYSTEM_EXT_MODULE := true
  105. LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep
  106. LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
  107. LOCAL_FULL_LIBS_MANIFEST_FILES := \
  108. $(LOCAL_PATH)/go/AndroidManifest.xml \
  109. $(LOCAL_PATH)/go/AndroidManifest-launcher.xml \
  110. $(LOCAL_PATH)/AndroidManifest-common.xml
  111. LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
  112. LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
  113. LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
  114. LOCAL_LICENSE_CONDITIONS := notice
  115. LOCAL_NOTICE_FILE := $(LOCAL_PATH)/NOTICE
  116. include $(BUILD_PACKAGE)
  117. # ==================================================
  118. include $(call all-makefiles-under,$(LOCAL_PATH))