1 # Copyright (C) 2013 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 # 16 17 LOCAL_PATH := $(call my-dir) 18 19 # Builds the Mockito source code, but does not include any run-time 20 # dependencies. Most projects should use mockito-target instead, which includes 21 # everything needed to run Mockito tests. 22 include $(CLEAR_VARS) 23 LOCAL_SRC_FILES := $(call all-java-files-under, src) 24 LOCAL_JAVA_LIBRARIES := junit4-target objenesis-target 25 LOCAL_MODULE := mockito-api 26 LOCAL_SDK_VERSION := 10 27 LOCAL_MODULE_TAGS := optional 28 include $(BUILD_STATIC_JAVA_LIBRARY) 29 30 # Main target for dependent projects. Bundles all the run-time dependencies 31 # needed to run Mockito tests on the device. 32 include $(CLEAR_VARS) 33 LOCAL_MODULE := mockito-target 34 LOCAL_STATIC_JAVA_LIBRARIES := mockito-api dexmaker dexmaker-mockmaker \ 35 objenesis-target junit4-target 36 LOCAL_SDK_VERSION := 10 37 LOCAL_MODULE_TAGS := optional 38 include $(BUILD_STATIC_JAVA_LIBRARY) 39