1# Copyright (C) 2016 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 17LOCAL_PATH := $(call my-dir) 18 19# build for the host JVM 20#----------------------- 21include $(CLEAR_VARS) 22LOCAL_SRC_FILES := $(call all-java-files-under, src/main/java) 23LOCAL_MODULE := junit-params-host 24LOCAL_NO_STANDARD_LIBRARIES := true 25LOCAL_MODULE_TAGS := optional 26LOCAL_STATIC_JAVA_LIBRARIES := \ 27 junit-host 28include $(BUILD_HOST_JAVA_LIBRARY) 29 30# build for the host dalvik 31# ------------------------- 32include $(CLEAR_VARS) 33LOCAL_SRC_FILES := $(call all-java-files-under, src/main/java) 34LOCAL_MODULE := junit-params-hostdex 35LOCAL_NO_STANDARD_LIBRARIES := true 36LOCAL_MODULE_TAGS := optional 37LOCAL_JAVA_LIBRARIES := core-oj-hostdex core-libart-hostdex 38LOCAL_STATIC_JAVA_LIBRARIES := \ 39 junit-hostdex 40include $(BUILD_HOST_DALVIK_STATIC_JAVA_LIBRARY) 41 42#------------------------------- 43# build a target jar 44 45include $(CLEAR_VARS) 46 47LOCAL_SRC_FILES := $(call all-java-files-under, src/main/java) 48LOCAL_MODULE := junit-params 49LOCAL_NO_STANDARD_LIBRARIES := true 50LOCAL_MODULE_TAGS := optional 51LOCAL_JAVA_LIBRARIES := core-oj core-libart 52LOCAL_STATIC_JAVA_LIBRARIES := \ 53 junit 54include $(BUILD_STATIC_JAVA_LIBRARY) 55 56#------------------------------- 57# build a host test jar 58# 59 60include $(CLEAR_VARS) 61 62LOCAL_SRC_FILES := $(call all-java-files-under, src/test/java) 63LOCAL_JAVA_RESOURCE_DIRS := src/test/resources 64LOCAL_MODULE := junit-params-test-host 65LOCAL_NO_STANDARD_LIBRARIES := true 66LOCAL_MODULE_TAGS := optional 67LOCAL_STATIC_JAVA_LIBRARIES := \ 68 junit-params-host \ 69 junit-params-assertj-core-host 70include $(BUILD_HOST_JAVA_LIBRARY) 71 72#------------------------------- 73# build a target test jar 74# 75# Run the test jar as follows: 76# vogar --classpath \ 77 ${ANDROID_PRODUCT_OUT}/obj/JAVA_LIBRARIES/junit-params-test_intermediates/classes.jack \ 78 junitparams 79 80include $(CLEAR_VARS) 81 82LOCAL_SRC_FILES := $(call all-java-files-under, src/test/java) 83LOCAL_JAVA_RESOURCE_DIRS := src/test/resources 84LOCAL_MODULE := junit-params-test 85LOCAL_NO_STANDARD_LIBRARIES := true 86LOCAL_MODULE_TAGS := optional 87LOCAL_JAVA_LIBRARIES := core-oj core-libart junit 88LOCAL_STATIC_JAVA_LIBRARIES := \ 89 junit-params \ 90 junit-params-assertj-core 91include $(BUILD_STATIC_JAVA_LIBRARY) 92 93#------------------------------- 94# prebuilt dependencies 95 96include $(CLEAR_VARS) 97 98LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \ 99 junit-params-assertj-core:lib/assertj-core-1.7.1.jar 100 101include $(BUILD_MULTI_PREBUILT) 102 103#------------------------------- 104# prebuilt dependencies 105 106include $(CLEAR_VARS) 107 108LOCAL_IS_HOST_MODULE := true 109LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \ 110 junit-params-assertj-core-host:lib/assertj-core-1.7.1.jar 111 112include $(BUILD_MULTI_PREBUILT) 113