Android.mk 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242
  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. # Prebuilt Java Libraries
  19. #
  20. include $(CLEAR_VARS)
  21. LOCAL_MODULE := libSharedSystemUI
  22. LOCAL_MODULE_TAGS := optional
  23. LOCAL_MODULE_CLASS := JAVA_LIBRARIES
  24. LOCAL_SRC_FILES := quickstep/libs/sysui_shared.jar
  25. LOCAL_UNINSTALLABLE_MODULE := true
  26. LOCAL_SDK_VERSION := current
  27. include $(BUILD_PREBUILT)
  28. #
  29. # Build rule for Launcher3 app.
  30. #
  31. include $(CLEAR_VARS)
  32. LOCAL_MODULE_TAGS := optional
  33. LOCAL_STATIC_JAVA_LIBRARIES := \
  34. android-support-annotations
  35. LOCAL_STATIC_ANDROID_LIBRARIES := \
  36. android-support-compat \
  37. android-support-media-compat \
  38. android-support-core-utils \
  39. android-support-core-ui \
  40. android-support-fragment \
  41. android-support-v7-recyclerview \
  42. android-support-dynamic-animation
  43. LOCAL_SRC_FILES := \
  44. $(call all-java-files-under, src) \
  45. $(call all-java-files-under, src_ui_overrides) \
  46. $(call all-java-files-under, src_flags) \
  47. $(call all-proto-files-under, protos) \
  48. $(call all-proto-files-under, proto_overrides)
  49. LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
  50. LOCAL_PROGUARD_FLAG_FILES := proguard.flags
  51. LOCAL_PROTOC_OPTIMIZE_TYPE := nano
  52. LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/ --proto_path=$(LOCAL_PATH)/proto_overrides/
  53. LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java
  54. LOCAL_USE_AAPT2 := true
  55. LOCAL_SDK_VERSION := current
  56. LOCAL_MIN_SDK_VERSION := 21
  57. LOCAL_PACKAGE_NAME := Launcher3
  58. LOCAL_PRIVILEGED_MODULE := true
  59. LOCAL_OVERRIDES_PACKAGES := Home Launcher2
  60. LOCAL_FULL_LIBS_MANIFEST_FILES := $(LOCAL_PATH)/AndroidManifest-common.xml
  61. LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
  62. include $(BUILD_PACKAGE)
  63. #
  64. # Build rule for Launcher3 Go app for Android Go devices.
  65. #
  66. include $(CLEAR_VARS)
  67. LOCAL_MODULE_TAGS := optional
  68. LOCAL_STATIC_JAVA_LIBRARIES := \
  69. android-support-annotations
  70. LOCAL_STATIC_ANDROID_LIBRARIES := \
  71. android-support-compat \
  72. android-support-media-compat \
  73. android-support-core-utils \
  74. android-support-core-ui \
  75. android-support-fragment \
  76. android-support-v7-recyclerview \
  77. android-support-dynamic-animation
  78. LOCAL_SRC_FILES := \
  79. $(call all-java-files-under, src) \
  80. $(call all-java-files-under, src_ui_overrides) \
  81. $(call all-java-files-under, go/src_flags) \
  82. $(call all-proto-files-under, protos) \
  83. $(call all-proto-files-under, proto_overrides)
  84. LOCAL_RESOURCE_DIR := \
  85. $(LOCAL_PATH)/go/res \
  86. $(LOCAL_PATH)/res \
  87. LOCAL_PROGUARD_FLAG_FILES := proguard.flags
  88. LOCAL_PROTOC_OPTIMIZE_TYPE := nano
  89. LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/ --proto_path=$(LOCAL_PATH)/proto_overrides/
  90. LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java
  91. LOCAL_USE_AAPT2 := true
  92. LOCAL_SDK_VERSION := current
  93. LOCAL_MIN_SDK_VERSION := 21
  94. LOCAL_PACKAGE_NAME := Launcher3Go
  95. LOCAL_PRIVILEGED_MODULE := true
  96. LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3
  97. LOCAL_FULL_LIBS_MANIFEST_FILES := \
  98. $(LOCAL_PATH)/AndroidManifest.xml \
  99. $(LOCAL_PATH)/AndroidManifest-common.xml
  100. LOCAL_MANIFEST_FILE := go/AndroidManifest.xml
  101. LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
  102. include $(BUILD_PACKAGE)
  103. #
  104. # Build rule for Quickstep app.
  105. #
  106. include $(CLEAR_VARS)
  107. LOCAL_MODULE_TAGS := optional
  108. LOCAL_STATIC_JAVA_LIBRARIES := \
  109. android-support-annotations \
  110. libSharedSystemUI
  111. LOCAL_STATIC_ANDROID_LIBRARIES := \
  112. android-support-compat \
  113. android-support-media-compat \
  114. android-support-core-utils \
  115. android-support-core-ui \
  116. android-support-fragment \
  117. android-support-v7-recyclerview \
  118. android-support-dynamic-animation
  119. LOCAL_SRC_FILES := \
  120. $(call all-java-files-under, src) \
  121. $(call all-java-files-under, quickstep/src) \
  122. $(call all-java-files-under, src_flags) \
  123. $(call all-proto-files-under, protos) \
  124. $(call all-proto-files-under, proto_overrides)
  125. LOCAL_RESOURCE_DIR := \
  126. $(LOCAL_PATH)/quickstep/res \
  127. $(LOCAL_PATH)/res \
  128. LOCAL_PROGUARD_ENABLED := disabled
  129. LOCAL_PROTOC_OPTIMIZE_TYPE := nano
  130. LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/ --proto_path=$(LOCAL_PATH)/proto_overrides/
  131. LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java
  132. LOCAL_USE_AAPT2 := true
  133. LOCAL_SDK_VERSION := system_current
  134. LOCAL_MIN_SDK_VERSION := 26
  135. LOCAL_PACKAGE_NAME := Launcher3QuickStep
  136. LOCAL_PRIVILEGED_MODULE := true
  137. LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3
  138. LOCAL_FULL_LIBS_MANIFEST_FILES := \
  139. $(LOCAL_PATH)/AndroidManifest.xml \
  140. $(LOCAL_PATH)/AndroidManifest-common.xml
  141. LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
  142. LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
  143. include $(BUILD_PACKAGE)
  144. #
  145. # Build rule for Launcher3 Go app with quickstep for Android Go devices.
  146. #
  147. include $(CLEAR_VARS)
  148. LOCAL_MODULE_TAGS := optional
  149. LOCAL_STATIC_JAVA_LIBRARIES := \
  150. android-support-v4 \
  151. android-support-v7-recyclerview \
  152. android-support-dynamic-animation \
  153. libSharedSystemUI
  154. LOCAL_SRC_FILES := \
  155. $(call all-java-files-under, src) \
  156. $(call all-java-files-under, quickstep/src) \
  157. $(call all-java-files-under, go/src_flags) \
  158. $(call all-proto-files-under, protos) \
  159. $(call all-proto-files-under, proto_overrides)
  160. LOCAL_RESOURCE_DIR := \
  161. $(LOCAL_PATH)/quickstep/res \
  162. $(LOCAL_PATH)/go/res \
  163. $(LOCAL_PATH)/res \
  164. prebuilts/sdk/current/support/v7/recyclerview/res \
  165. LOCAL_PROGUARD_ENABLED := disabled
  166. LOCAL_PROTOC_OPTIMIZE_TYPE := nano
  167. LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/protos/ --proto_path=$(LOCAL_PATH)/proto_overrides/
  168. LOCAL_PROTO_JAVA_OUTPUT_PARAMS := enum_style=java
  169. LOCAL_AAPT_FLAGS := \
  170. --auto-add-overlay \
  171. --extra-packages android.support.v7.recyclerview \
  172. LOCAL_SDK_VERSION := system_current
  173. LOCAL_MIN_SDK_VERSION := 26
  174. LOCAL_PACKAGE_NAME := Launcher3QuickStepGo
  175. LOCAL_PRIVILEGED_MODULE := true
  176. LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3
  177. LOCAL_FULL_LIBS_MANIFEST_FILES := \
  178. $(LOCAL_PATH)/go/AndroidManifest.xml \
  179. $(LOCAL_PATH)/AndroidManifest.xml \
  180. $(LOCAL_PATH)/AndroidManifest-common.xml
  181. LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
  182. LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
  183. include $(BUILD_PACKAGE)
  184. # ==================================================
  185. include $(call all-makefiles-under,$(LOCAL_PATH))