Android.mk 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #
  2. # Copyright (C) 2018 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. # For unbundled build we'll use the prebuilt jar from prebuilts/sdk.
  18. ifeq (,$(TARGET_BUILD_APPS)$(filter true,$(TARGET_BUILD_PDK)))
  19. # Build the android.test.legacy library
  20. # =====================================
  21. # Built against the SDK so that it can be statically included in APKs
  22. # without breaking link type checks.
  23. #
  24. include $(CLEAR_VARS)
  25. LOCAL_MODULE := android.test.legacy
  26. LOCAL_SDK_VERSION := current
  27. LOCAL_JAVA_LIBRARIES := junit android.test.mock.stubs
  28. LOCAL_STATIC_JAVA_LIBRARIES := \
  29. android.test.base-minus-junit \
  30. android.test.runner-minus-junit \
  31. include $(BUILD_STATIC_JAVA_LIBRARY)
  32. # Archive a copy of the classes.jar in SDK build.
  33. $(call dist-for-goals,sdk win_sdk,$(full_classes_jar):android.test.legacy.jar)
  34. endif # not TARGET_BUILD_APPS not TARGET_BUILD_PDK=true