Android.mk 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  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 dependencies lib.
  19. #
  20. include $(CLEAR_VARS)
  21. LOCAL_USE_AAPT2 := true
  22. LOCAL_AAPT2_ONLY := true
  23. LOCAL_MODULE_TAGS := optional
  24. LOCAL_STATIC_ANDROID_LIBRARIES := \
  25. androidx.recyclerview_recyclerview \
  26. androidx.dynamicanimation_dynamicanimation \
  27. androidx.preference_preference \
  28. iconloader_base
  29. LOCAL_STATIC_JAVA_LIBRARIES := \
  30. LauncherPluginLib \
  31. launcher_log_protos_lite
  32. LOCAL_SRC_FILES := \
  33. $(call all-proto-files-under, protos) \
  34. $(call all-proto-files-under, proto_overrides) \
  35. $(call all-java-files-under, src_build_config) \
  36. LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
  37. LOCAL_PROGUARD_ENABLED := disabled
  38. LOCAL_PROTOC_OPTIMIZE_TYPE := nano
  39. LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/ --proto_path=$(LOCAL_PATH)/proto_overrides/
  40. LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java
  41. LOCAL_SDK_VERSION := current
  42. LOCAL_MIN_SDK_VERSION := 21
  43. LOCAL_MODULE := Launcher3CommonDepsLib
  44. LOCAL_PRIVILEGED_MODULE := true
  45. LOCAL_MANIFEST_FILE := AndroidManifest-common.xml
  46. include $(BUILD_STATIC_JAVA_LIBRARY)
  47. #
  48. # Build rule for Launcher3 app.
  49. #
  50. include $(CLEAR_VARS)
  51. LOCAL_USE_AAPT2 := true
  52. LOCAL_MODULE_TAGS := optional
  53. LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
  54. LOCAL_SRC_FILES := \
  55. $(call all-java-files-under, src) \
  56. $(call all-java-files-under, src_shortcuts_overrides) \
  57. $(call all-java-files-under, src_ui_overrides) \
  58. $(call all-java-files-under, ext_tests/src)
  59. LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/ext_tests/res
  60. LOCAL_PROGUARD_FLAG_FILES := proguard.flags
  61. # Proguard is disable for testing. Derivarive prjects to keep proguard enabled
  62. LOCAL_PROGUARD_ENABLED := disabled
  63. LOCAL_SDK_VERSION := current
  64. LOCAL_MIN_SDK_VERSION := 21
  65. LOCAL_PACKAGE_NAME := Launcher3
  66. LOCAL_PRIVILEGED_MODULE := true
  67. LOCAL_SYSTEM_EXT_MODULE := true
  68. LOCAL_OVERRIDES_PACKAGES := Home Launcher2
  69. LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
  70. LOCAL_FULL_LIBS_MANIFEST_FILES := $(LOCAL_PATH)/AndroidManifest-common.xml
  71. LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
  72. include $(BUILD_PACKAGE)
  73. #
  74. # Build rule for Launcher3 Go app for Android Go devices.
  75. #
  76. include $(CLEAR_VARS)
  77. LOCAL_USE_AAPT2 := true
  78. LOCAL_MODULE_TAGS := optional
  79. LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
  80. LOCAL_SRC_FILES := \
  81. $(call all-java-files-under, src) \
  82. $(call all-java-files-under, src_ui_overrides) \
  83. $(call all-java-files-under, go/src)
  84. LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/go/res
  85. LOCAL_PROGUARD_FLAG_FILES := proguard.flags
  86. LOCAL_SDK_VERSION := current
  87. LOCAL_MIN_SDK_VERSION := 21
  88. LOCAL_PACKAGE_NAME := Launcher3Go
  89. LOCAL_PRIVILEGED_MODULE := true
  90. LOCAL_SYSTEM_EXT_MODULE := true
  91. LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep
  92. LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
  93. LOCAL_FULL_LIBS_MANIFEST_FILES := \
  94. $(LOCAL_PATH)/AndroidManifest.xml \
  95. $(LOCAL_PATH)/AndroidManifest-common.xml
  96. LOCAL_MANIFEST_FILE := go/AndroidManifest.xml
  97. LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
  98. include $(BUILD_PACKAGE)
  99. #
  100. # Build rule for Quickstep library.
  101. #
  102. include $(CLEAR_VARS)
  103. LOCAL_USE_AAPT2 := true
  104. LOCAL_AAPT2_ONLY := true
  105. LOCAL_MODULE_TAGS := optional
  106. LOCAL_STATIC_JAVA_LIBRARIES := \
  107. SystemUI-statsd \
  108. SystemUISharedLib \
  109. launcherprotosnano \
  110. launcher_log_protos_lite
  111. ifneq (,$(wildcard frameworks/base))
  112. LOCAL_PRIVATE_PLATFORM_APIS := true
  113. else
  114. LOCAL_SDK_VERSION := system_current
  115. LOCAL_MIN_SDK_VERSION := 26
  116. endif
  117. LOCAL_MODULE := Launcher3QuickStepLib
  118. LOCAL_PRIVILEGED_MODULE := true
  119. LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
  120. LOCAL_SRC_FILES := \
  121. $(call all-java-files-under, src) \
  122. $(call all-java-files-under, quickstep/src) \
  123. $(call all-java-files-under, quickstep/recents_ui_overrides/src) \
  124. $(call all-java-files-under, src_shortcuts_overrides)
  125. LOCAL_RESOURCE_DIR := \
  126. $(LOCAL_PATH)/quickstep/res \
  127. $(LOCAL_PATH)/quickstep/recents_ui_overrides/res
  128. LOCAL_PROGUARD_ENABLED := disabled
  129. LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
  130. include $(BUILD_STATIC_JAVA_LIBRARY)
  131. #
  132. # Build rule for Quickstep app.
  133. #
  134. include $(CLEAR_VARS)
  135. LOCAL_USE_AAPT2 := true
  136. LOCAL_MODULE_TAGS := optional
  137. LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3QuickStepLib
  138. LOCAL_PROGUARD_ENABLED := disabled
  139. ifneq (,$(wildcard frameworks/base))
  140. LOCAL_PRIVATE_PLATFORM_APIS := true
  141. else
  142. LOCAL_SDK_VERSION := system_current
  143. LOCAL_MIN_SDK_VERSION := 26
  144. endif
  145. LOCAL_PACKAGE_NAME := Launcher3QuickStep
  146. LOCAL_PRIVILEGED_MODULE := true
  147. LOCAL_SYSTEM_EXT_MODULE := true
  148. LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3
  149. LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
  150. LOCAL_RESOURCE_DIR := \
  151. $(LOCAL_PATH)/quickstep/res \
  152. $(LOCAL_PATH)/quickstep/recents_ui_overrides/res
  153. LOCAL_FULL_LIBS_MANIFEST_FILES := \
  154. $(LOCAL_PATH)/quickstep/AndroidManifest-launcher.xml \
  155. $(LOCAL_PATH)/AndroidManifest-common.xml
  156. LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
  157. LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
  158. include $(BUILD_PACKAGE)
  159. #
  160. # Build rule for Launcher3 Go app with quickstep for Android Go devices.
  161. #
  162. include $(CLEAR_VARS)
  163. LOCAL_USE_AAPT2 := true
  164. LOCAL_MODULE_TAGS := optional
  165. LOCAL_STATIC_JAVA_LIBRARIES := \
  166. SystemUI-statsd \
  167. SystemUISharedLib \
  168. launcherprotosnano \
  169. launcher_log_protos_lite
  170. ifneq (,$(wildcard frameworks/base))
  171. LOCAL_PRIVATE_PLATFORM_APIS := true
  172. else
  173. LOCAL_SDK_VERSION := system_current
  174. LOCAL_MIN_SDK_VERSION := 26
  175. endif
  176. LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
  177. LOCAL_SRC_FILES := \
  178. $(call all-java-files-under, src) \
  179. $(call all-java-files-under, quickstep/src) \
  180. $(call all-java-files-under, quickstep/recents_ui_overrides/src) \
  181. $(call all-java-files-under, go/src)
  182. LOCAL_RESOURCE_DIR := \
  183. $(LOCAL_PATH)/quickstep/res \
  184. $(LOCAL_PATH)/quickstep/recents_ui_overrides/res \
  185. $(LOCAL_PATH)/go/res
  186. LOCAL_PROGUARD_FLAG_FILES := proguard.flags
  187. LOCAL_PROGUARD_ENABLED := full
  188. LOCAL_PACKAGE_NAME := Launcher3QuickStepGo
  189. LOCAL_PRIVILEGED_MODULE := true
  190. LOCAL_SYSTEM_EXT_MODULE := true
  191. LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep
  192. LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
  193. LOCAL_FULL_LIBS_MANIFEST_FILES := \
  194. $(LOCAL_PATH)/go/AndroidManifest.xml \
  195. $(LOCAL_PATH)/quickstep/AndroidManifest-launcher.xml \
  196. $(LOCAL_PATH)/AndroidManifest-common.xml
  197. LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
  198. LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
  199. include $(BUILD_PACKAGE)
  200. # ==================================================
  201. include $(call all-makefiles-under,$(LOCAL_PATH))