Android.mk 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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 library.
  48. #
  49. include $(CLEAR_VARS)
  50. LOCAL_USE_AAPT2 := true
  51. LOCAL_AAPT2_ONLY := true
  52. LOCAL_MODULE_TAGS := optional
  53. LOCAL_STATIC_JAVA_LIBRARIES := \
  54. SystemUI-statsd \
  55. SystemUISharedLib
  56. ifneq (,$(wildcard frameworks/base))
  57. LOCAL_PRIVATE_PLATFORM_APIS := true
  58. else
  59. LOCAL_SDK_VERSION := system_current
  60. LOCAL_MIN_SDK_VERSION := 26
  61. endif
  62. LOCAL_MODULE := Launcher3QuickStepLib
  63. LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
  64. LOCAL_LICENSE_CONDITIONS := notice
  65. LOCAL_NOTICE_FILE := $(LOCAL_PATH)/NOTICE
  66. LOCAL_PRIVILEGED_MODULE := true
  67. LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
  68. LOCAL_SRC_FILES := \
  69. $(call all-java-files-under, src) \
  70. $(call all-java-files-under, quickstep/src) \
  71. $(call all-java-files-under, src_shortcuts_overrides)
  72. LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/quickstep/res
  73. LOCAL_PROGUARD_ENABLED := disabled
  74. LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
  75. include $(BUILD_STATIC_JAVA_LIBRARY)
  76. #
  77. # Build rule for Quickstep app.
  78. #
  79. include $(CLEAR_VARS)
  80. LOCAL_USE_AAPT2 := true
  81. LOCAL_MODULE_TAGS := optional
  82. LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3QuickStepLib
  83. LOCAL_PROGUARD_ENABLED := disabled
  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_PACKAGE_NAME := Launcher3QuickStep
  91. LOCAL_PRIVILEGED_MODULE := true
  92. LOCAL_SYSTEM_EXT_MODULE := true
  93. LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3
  94. LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
  95. LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/quickstep/res
  96. LOCAL_FULL_LIBS_MANIFEST_FILES := \
  97. $(LOCAL_PATH)/quickstep/AndroidManifest-launcher.xml \
  98. $(LOCAL_PATH)/AndroidManifest-common.xml
  99. LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
  100. LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
  101. LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
  102. LOCAL_LICENSE_CONDITIONS := notice
  103. LOCAL_NOTICE_FILE := $(LOCAL_PATH)/NOTICE
  104. include $(BUILD_PACKAGE)
  105. #
  106. # Build rule for Launcher3 Go app with quickstep for Android Go devices.
  107. #
  108. include $(CLEAR_VARS)
  109. LOCAL_USE_AAPT2 := true
  110. LOCAL_MODULE_TAGS := optional
  111. LOCAL_STATIC_JAVA_LIBRARIES := \
  112. SystemUI-statsd \
  113. SystemUISharedLib
  114. ifneq (,$(wildcard frameworks/base))
  115. LOCAL_PRIVATE_PLATFORM_APIS := true
  116. else
  117. LOCAL_SDK_VERSION := system_current
  118. LOCAL_MIN_SDK_VERSION := 26
  119. endif
  120. LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3CommonDepsLib
  121. LOCAL_SRC_FILES := \
  122. $(call all-java-files-under, src) \
  123. $(call all-java-files-under, quickstep/src) \
  124. $(call all-java-files-under, go/src) \
  125. $(call all-java-files-under, go/quickstep/src)
  126. LOCAL_RESOURCE_DIR := \
  127. $(LOCAL_PATH)/go/quickstep/res \
  128. $(LOCAL_PATH)/go/res \
  129. $(LOCAL_PATH)/quickstep/res
  130. LOCAL_PROGUARD_FLAG_FILES := proguard.flags
  131. LOCAL_PROGUARD_ENABLED := full
  132. LOCAL_PACKAGE_NAME := Launcher3QuickStepGo
  133. LOCAL_PRIVILEGED_MODULE := true
  134. LOCAL_SYSTEM_EXT_MODULE := true
  135. LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep
  136. LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
  137. LOCAL_FULL_LIBS_MANIFEST_FILES := \
  138. $(LOCAL_PATH)/go/AndroidManifest.xml \
  139. $(LOCAL_PATH)/go/AndroidManifest-launcher.xml \
  140. $(LOCAL_PATH)/AndroidManifest-common.xml
  141. LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
  142. LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
  143. LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
  144. LOCAL_LICENSE_CONDITIONS := notice
  145. LOCAL_NOTICE_FILE := $(LOCAL_PATH)/NOTICE
  146. include $(BUILD_PACKAGE)
  147. # ==================================================
  148. include $(call all-makefiles-under,$(LOCAL_PATH))