Android.mk 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  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 plugin lib (needed to write a plugin).
  19. #
  20. include $(CLEAR_VARS)
  21. LOCAL_USE_AAPT2 := true
  22. LOCAL_AAPT2_ONLY := true
  23. LOCAL_MODULE_TAGS := optional
  24. ifneq (,$(wildcard frameworks/base))
  25. LOCAL_STATIC_JAVA_LIBRARIES:= PluginCoreLib
  26. else
  27. LOCAL_STATIC_JAVA_LIBRARIES:= libPluginCore
  28. endif
  29. LOCAL_SRC_FILES := \
  30. $(call all-java-files-under, src_plugins)
  31. LOCAL_SDK_VERSION := current
  32. LOCAL_MIN_SDK_VERSION := 28
  33. LOCAL_MODULE := LauncherPluginLib
  34. include $(BUILD_STATIC_JAVA_LIBRARY)
  35. #
  36. # Build rule for Launcher3 dependencies lib.
  37. #
  38. include $(CLEAR_VARS)
  39. LOCAL_USE_AAPT2 := true
  40. LOCAL_AAPT2_ONLY := true
  41. LOCAL_MODULE_TAGS := optional
  42. LOCAL_STATIC_ANDROID_LIBRARIES := \
  43. androidx.recyclerview_recyclerview \
  44. androidx.dynamicanimation_dynamicanimation \
  45. androidx.preference_preference \
  46. iconloader_base
  47. LOCAL_STATIC_JAVA_LIBRARIES := LauncherPluginLib
  48. LOCAL_SRC_FILES := \
  49. $(call all-proto-files-under, protos) \
  50. $(call all-proto-files-under, proto_overrides) \
  51. $(call all-java-files-under, src_build_config) \
  52. LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
  53. LOCAL_PROGUARD_ENABLED := disabled
  54. LOCAL_PROTOC_OPTIMIZE_TYPE := nano
  55. LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/ --proto_path=$(LOCAL_PATH)/proto_overrides/
  56. LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java
  57. LOCAL_SDK_VERSION := current
  58. LOCAL_MIN_SDK_VERSION := 21
  59. LOCAL_MODULE := Launcher3CommonDepsLib
  60. LOCAL_PRIVILEGED_MODULE := true
  61. LOCAL_MANIFEST_FILE := AndroidManifest-common.xml
  62. include $(BUILD_STATIC_JAVA_LIBRARY)
  63. #
  64. # Build rule for Launcher3 app.
  65. #
  66. include $(CLEAR_VARS)
  67. LOCAL_USE_AAPT2 := true
  68. LOCAL_MODULE_TAGS := optional
  69. LOCAL_STATIC_ANDROID_LIBRARIES := \
  70. Launcher3CommonDepsLib \
  71. SecondaryDisplayLauncherLib
  72. LOCAL_SRC_FILES := \
  73. $(call all-java-files-under, src) \
  74. $(call all-java-files-under, src_shortcuts_overrides) \
  75. $(call all-java-files-under, src_ui_overrides) \
  76. $(call all-java-files-under, src_flags)
  77. LOCAL_PROGUARD_FLAG_FILES := proguard.flags
  78. # Proguard is disable for testing. Derivarive prjects to keep proguard enabled
  79. LOCAL_PROGUARD_ENABLED := disabled
  80. LOCAL_SDK_VERSION := current
  81. LOCAL_MIN_SDK_VERSION := 21
  82. LOCAL_PACKAGE_NAME := Launcher3
  83. LOCAL_PRIVILEGED_MODULE := true
  84. LOCAL_PRODUCT_MODULE := true
  85. LOCAL_OVERRIDES_PACKAGES := Home Launcher2
  86. LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
  87. LOCAL_FULL_LIBS_MANIFEST_FILES := $(LOCAL_PATH)/AndroidManifest-common.xml
  88. LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
  89. include $(BUILD_PACKAGE)
  90. #
  91. # Build rule for Launcher3 Go app for Android Go devices.
  92. #
  93. include $(CLEAR_VARS)
  94. LOCAL_USE_AAPT2 := true
  95. LOCAL_MODULE_TAGS := optional
  96. LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
  97. LOCAL_SRC_FILES := \
  98. $(call all-java-files-under, src) \
  99. $(call all-java-files-under, src_ui_overrides) \
  100. $(call all-java-files-under, go/src)
  101. LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/go/res
  102. LOCAL_PROGUARD_FLAG_FILES := proguard.flags
  103. LOCAL_SDK_VERSION := current
  104. LOCAL_MIN_SDK_VERSION := 21
  105. LOCAL_PACKAGE_NAME := Launcher3Go
  106. LOCAL_PRIVILEGED_MODULE := true
  107. LOCAL_PRODUCT_MODULE := true
  108. LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep
  109. LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
  110. LOCAL_FULL_LIBS_MANIFEST_FILES := \
  111. $(LOCAL_PATH)/AndroidManifest.xml \
  112. $(LOCAL_PATH)/AndroidManifest-common.xml
  113. LOCAL_MANIFEST_FILE := go/AndroidManifest.xml
  114. LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
  115. include $(BUILD_PACKAGE)
  116. #
  117. # Build rule for Quickstep library.
  118. #
  119. include $(CLEAR_VARS)
  120. LOCAL_USE_AAPT2 := true
  121. LOCAL_AAPT2_ONLY := true
  122. LOCAL_MODULE_TAGS := optional
  123. ifneq (,$(wildcard frameworks/base))
  124. LOCAL_STATIC_JAVA_LIBRARIES := SystemUISharedLib launcherprotosnano
  125. LOCAL_PRIVATE_PLATFORM_APIS := true
  126. else
  127. LOCAL_STATIC_JAVA_LIBRARIES := libSharedSystemUI libLauncherProtos
  128. LOCAL_SDK_VERSION := system_current
  129. LOCAL_MIN_SDK_VERSION := 26
  130. endif
  131. LOCAL_MODULE := Launcher3QuickStepLib
  132. LOCAL_PRIVILEGED_MODULE := true
  133. LOCAL_STATIC_ANDROID_LIBRARIES := \
  134. Launcher3CommonDepsLib \
  135. SecondaryDisplayLauncherLib
  136. LOCAL_SRC_FILES := \
  137. $(call all-java-files-under, src) \
  138. $(call all-java-files-under, quickstep/src) \
  139. $(call all-java-files-under, quickstep/recents_ui_overrides/src) \
  140. $(call all-java-files-under, src_flags) \
  141. $(call all-java-files-under, src_shortcuts_overrides)
  142. LOCAL_RESOURCE_DIR := \
  143. $(LOCAL_PATH)/quickstep/res \
  144. $(LOCAL_PATH)/quickstep/recents_ui_overrides/res
  145. LOCAL_PROGUARD_ENABLED := disabled
  146. LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
  147. include $(BUILD_STATIC_JAVA_LIBRARY)
  148. #
  149. # Build rule for Quickstep app.
  150. #
  151. include $(CLEAR_VARS)
  152. LOCAL_USE_AAPT2 := true
  153. LOCAL_MODULE_TAGS := optional
  154. LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3QuickStepLib
  155. LOCAL_PROGUARD_ENABLED := disabled
  156. ifneq (,$(wildcard frameworks/base))
  157. LOCAL_PRIVATE_PLATFORM_APIS := true
  158. else
  159. LOCAL_SDK_VERSION := system_current
  160. LOCAL_MIN_SDK_VERSION := 26
  161. endif
  162. LOCAL_PACKAGE_NAME := Launcher3QuickStep
  163. LOCAL_PRIVILEGED_MODULE := true
  164. LOCAL_PRODUCT_MODULE := true
  165. LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3
  166. LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
  167. LOCAL_RESOURCE_DIR := \
  168. $(LOCAL_PATH)/quickstep/res \
  169. $(LOCAL_PATH)/quickstep/recents_ui_overrides/res
  170. LOCAL_FULL_LIBS_MANIFEST_FILES := \
  171. $(LOCAL_PATH)/AndroidManifest.xml \
  172. $(LOCAL_PATH)/AndroidManifest-common.xml
  173. LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
  174. LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
  175. include $(BUILD_PACKAGE)
  176. #
  177. # Build rule for Launcher3 Go app with quickstep for Android Go devices.
  178. #
  179. include $(CLEAR_VARS)
  180. LOCAL_USE_AAPT2 := true
  181. LOCAL_MODULE_TAGS := optional
  182. ifneq (,$(wildcard frameworks/base))
  183. LOCAL_STATIC_JAVA_LIBRARIES := SystemUISharedLib launcherprotosnano
  184. LOCAL_PRIVATE_PLATFORM_APIS := true
  185. else
  186. LOCAL_STATIC_JAVA_LIBRARIES := libSharedSystemUI libLauncherProtos
  187. LOCAL_SDK_VERSION := system_current
  188. LOCAL_MIN_SDK_VERSION := 26
  189. endif
  190. LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
  191. LOCAL_SRC_FILES := \
  192. $(call all-java-files-under, src) \
  193. $(call all-java-files-under, quickstep/src) \
  194. $(call all-java-files-under, quickstep/recents_ui_overrides/src) \
  195. $(call all-java-files-under, go/src)
  196. LOCAL_RESOURCE_DIR := \
  197. $(LOCAL_PATH)/quickstep/res \
  198. $(LOCAL_PATH)/quickstep/recents_ui_overrides/res \
  199. $(LOCAL_PATH)/go/res
  200. LOCAL_PROGUARD_FLAG_FILES := proguard.flags
  201. LOCAL_PROGUARD_ENABLED := full
  202. LOCAL_PACKAGE_NAME := Launcher3QuickStepGo
  203. LOCAL_PRIVILEGED_MODULE := true
  204. LOCAL_PRODUCT_MODULE := true
  205. LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep Launcher3GoIconRecents
  206. LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
  207. LOCAL_FULL_LIBS_MANIFEST_FILES := \
  208. $(LOCAL_PATH)/go/AndroidManifest.xml \
  209. $(LOCAL_PATH)/AndroidManifest.xml \
  210. $(LOCAL_PATH)/AndroidManifest-common.xml
  211. LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
  212. LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
  213. include $(BUILD_PACKAGE)
  214. #
  215. # Build rule for Launcher3 Go app with quickstep and Go-specific
  216. # version of recents for Android Go devices.
  217. #
  218. include $(CLEAR_VARS)
  219. LOCAL_USE_AAPT2 := true
  220. LOCAL_MODULE_TAGS := optional
  221. ifneq (,$(wildcard frameworks/base))
  222. LOCAL_STATIC_JAVA_LIBRARIES := SystemUISharedLib launcherprotosnano
  223. LOCAL_PRIVATE_PLATFORM_APIS := true
  224. else
  225. LOCAL_STATIC_JAVA_LIBRARIES := libSharedSystemUI libLauncherProtos
  226. LOCAL_SDK_VERSION := system_current
  227. LOCAL_MIN_SDK_VERSION := 26
  228. endif
  229. LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
  230. LOCAL_SRC_FILES := \
  231. $(call all-java-files-under, src) \
  232. $(call all-java-files-under, quickstep/src) \
  233. $(call all-java-files-under, go/src) \
  234. $(call all-java-files-under, go/quickstep/src)
  235. LOCAL_RESOURCE_DIR := \
  236. $(LOCAL_PATH)/quickstep/res \
  237. $(LOCAL_PATH)/go/res \
  238. $(LOCAL_PATH)/go/quickstep/res
  239. LOCAL_PROGUARD_FLAG_FILES := proguard.flags
  240. LOCAL_PROGUARD_ENABLED := full
  241. LOCAL_PACKAGE_NAME := Launcher3GoIconRecents
  242. LOCAL_PRIVILEGED_MODULE := true
  243. LOCAL_PRODUCT_MODULE := true
  244. LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3Go Launcher3QuickStep
  245. LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
  246. LOCAL_FULL_LIBS_MANIFEST_FILES := \
  247. $(LOCAL_PATH)/go/AndroidManifest.xml \
  248. $(LOCAL_PATH)/AndroidManifest.xml \
  249. $(LOCAL_PATH)/AndroidManifest-common.xml
  250. LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
  251. LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
  252. include $(BUILD_PACKAGE)
  253. # ==================================================
  254. include $(call all-makefiles-under,$(LOCAL_PATH))