Android.mk 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. # Copyright (C) 2015 The Android Open Source Project
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. #
  15. LOCAL_PATH := $(call my-dir)
  16. #
  17. # Build rule for Tapl library.
  18. #
  19. include $(CLEAR_VARS)
  20. LOCAL_STATIC_JAVA_LIBRARIES := \
  21. androidx.annotation_annotation \
  22. androidx.test.runner \
  23. androidx.test.rules \
  24. androidx.test.uiautomator_uiautomator
  25. ifneq (,$(wildcard frameworks/base))
  26. else
  27. LOCAL_STATIC_JAVA_LIBRARIES += SystemUISharedLib
  28. LOCAL_SRC_FILES := $(call all-java-files-under, tapl) \
  29. ../src/com/android/launcher3/ResourceUtils.java \
  30. ../src/com/android/launcher3/util/SecureSettingsObserver.java \
  31. ../src/com/android/launcher3/testing/TestProtocol.java
  32. endif
  33. LOCAL_MODULE := ub-launcher-aosp-tapl
  34. LOCAL_SDK_VERSION := system_current
  35. include $(BUILD_STATIC_JAVA_LIBRARY)
  36. #
  37. # Build rule for Launcher3Tests
  38. #
  39. include $(CLEAR_VARS)
  40. LOCAL_MODULE_TAGS := tests
  41. LOCAL_STATIC_JAVA_LIBRARIES := \
  42. androidx.test.runner \
  43. androidx.test.rules \
  44. androidx.test.uiautomator_uiautomator \
  45. mockito-target-minus-junit4 \
  46. launcher_log_protos_lite
  47. ifneq (,$(wildcard frameworks/base))
  48. LOCAL_PRIVATE_PLATFORM_APIS := true
  49. LOCAL_STATIC_JAVA_LIBRARIES += launcher-aosp-tapl
  50. else
  51. LOCAL_SDK_VERSION := system_28
  52. LOCAL_MIN_SDK_VERSION := 21
  53. LOCAL_STATIC_JAVA_LIBRARIES += ub-launcher-aosp-tapl
  54. endif
  55. LOCAL_SRC_FILES := \
  56. $(call all-java-files-under, src) \
  57. $(call all-java-files-under, src_common)
  58. LOCAL_FULL_LIBS_MANIFEST_FILES := $(LOCAL_PATH)/AndroidManifest-common.xml
  59. LOCAL_PACKAGE_NAME := Launcher3Tests
  60. LOCAL_INSTRUMENTATION_FOR := Launcher3
  61. include $(BUILD_PACKAGE)
  62. include $(call all-makefiles-under,$(LOCAL_PATH))