Android.mk 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 += libSharedSystemUI
  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 := 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. ifneq (,$(wildcard frameworks/base))
  47. LOCAL_PRIVATE_PLATFORM_APIS := true
  48. LOCAL_STATIC_JAVA_LIBRARIES += launcher-aosp-tapl
  49. else
  50. LOCAL_SDK_VERSION := 28
  51. LOCAL_MIN_SDK_VERSION := 21
  52. LOCAL_STATIC_JAVA_LIBRARIES += ub-launcher-aosp-tapl
  53. endif
  54. LOCAL_SRC_FILES := $(call all-java-files-under, src)
  55. LOCAL_FULL_LIBS_MANIFEST_FILES := $(LOCAL_PATH)/AndroidManifest-common.xml
  56. LOCAL_PACKAGE_NAME := Launcher3Tests
  57. LOCAL_INSTRUMENTATION_FOR := Launcher3
  58. include $(BUILD_PACKAGE)
  59. include $(call all-makefiles-under,$(LOCAL_PATH))