Android.mk 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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_LICENSE_PACKAGE_NAME := Android Launcher3
  45. LOCAL_NOTICE_FILE := build/soong/licenses/LICENSE
  46. include $(BUILD_PACKAGE)
  47. #
  48. # Build rule for Quickstep app.
  49. #
  50. include $(CLEAR_VARS)
  51. LOCAL_USE_AAPT2 := true
  52. LOCAL_MODULE_TAGS := optional
  53. LOCAL_STATIC_ANDROID_LIBRARIES := Launcher3QuickStepLib
  54. LOCAL_PROGUARD_ENABLED := disabled
  55. ifneq (,$(wildcard frameworks/base))
  56. LOCAL_PRIVATE_PLATFORM_APIS := true
  57. else
  58. LOCAL_SDK_VERSION := system_current
  59. LOCAL_MIN_SDK_VERSION := 26
  60. endif
  61. LOCAL_PACKAGE_NAME := Launcher3QuickStep
  62. LOCAL_PRIVILEGED_MODULE := true
  63. LOCAL_SYSTEM_EXT_MODULE := true
  64. LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3
  65. LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
  66. LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/quickstep/res
  67. LOCAL_FULL_LIBS_MANIFEST_FILES := \
  68. $(LOCAL_PATH)/quickstep/AndroidManifest-launcher.xml \
  69. $(LOCAL_PATH)/AndroidManifest-common.xml
  70. LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
  71. LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
  72. LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
  73. LOCAL_LICENSE_CONDITIONS := notice
  74. LOCAL_LICENSE_PACKAGE_NAME := Android Launcher3
  75. LOCAL_NOTICE_FILE := build/soong/licenses/LICENSE
  76. include $(BUILD_PACKAGE)
  77. #
  78. # Build rule for Launcher3 Go app with quickstep for Android Go devices.
  79. #
  80. include $(CLEAR_VARS)
  81. LOCAL_USE_AAPT2 := true
  82. LOCAL_MODULE_TAGS := optional
  83. LOCAL_STATIC_JAVA_LIBRARIES := \
  84. SystemUI-statsd \
  85. SystemUISharedLib
  86. ifneq (,$(wildcard frameworks/base))
  87. LOCAL_PRIVATE_PLATFORM_APIS := true
  88. else
  89. LOCAL_SDK_VERSION := system_current
  90. LOCAL_MIN_SDK_VERSION := 26
  91. endif
  92. LOCAL_STATIC_ANDROID_LIBRARIES := LauncherGoResLib
  93. LOCAL_SRC_FILES := \
  94. $(call all-java-files-under, src) \
  95. $(call all-java-files-under, quickstep/src) \
  96. $(call all-java-files-under, go/src) \
  97. $(call all-java-files-under, go/quickstep/src)
  98. LOCAL_RESOURCE_DIR := \
  99. $(LOCAL_PATH)/go/quickstep/res \
  100. $(LOCAL_PATH)/go/res \
  101. $(LOCAL_PATH)/quickstep/res
  102. LOCAL_PROGUARD_FLAG_FILES := proguard.flags
  103. LOCAL_PROGUARD_ENABLED := full
  104. LOCAL_PACKAGE_NAME := Launcher3QuickStepGo
  105. LOCAL_PRIVILEGED_MODULE := true
  106. LOCAL_SYSTEM_EXT_MODULE := true
  107. LOCAL_OVERRIDES_PACKAGES := Home Launcher2 Launcher3 Launcher3QuickStep
  108. LOCAL_REQUIRED_MODULES := privapp_whitelist_com.android.launcher3
  109. LOCAL_FULL_LIBS_MANIFEST_FILES := \
  110. $(LOCAL_PATH)/go/AndroidManifest.xml \
  111. $(LOCAL_PATH)/go/AndroidManifest-launcher.xml \
  112. $(LOCAL_PATH)/AndroidManifest-common.xml
  113. LOCAL_MANIFEST_FILE := quickstep/AndroidManifest.xml
  114. LOCAL_JACK_COVERAGE_INCLUDE_FILTER := com.android.launcher3.*
  115. LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
  116. LOCAL_LICENSE_CONDITIONS := notice
  117. LOCAL_LICENSE_PACKAGE_NAME := Android Launcher3
  118. LOCAL_NOTICE_FILE := build/soong/licenses/LICENSE
  119. include $(BUILD_PACKAGE)
  120. # ==================================================
  121. include $(call all-makefiles-under,$(LOCAL_PATH))