Paul Duffin | fb58c0d | 2015-11-11 14:37:37 +0000 | [diff] [blame] | 1 | # Copyright (C) 2015 The Android Open Source Project |
Paul Duffin | 7fc0b45 | 2015-11-10 17:45:15 +0000 | [diff] [blame] | 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 | |
Paul Duffin | 5b4f728 | 2015-11-20 11:11:31 +0000 | [diff] [blame^] | 17 | # build caliper host jar |
Paul Duffin | 7fc0b45 | 2015-11-10 17:45:15 +0000 | [diff] [blame] | 18 | # ============================================================ |
| 19 | |
| 20 | include $(CLEAR_VARS) |
| 21 | |
Paul Duffin | 5b4f728 | 2015-11-20 11:11:31 +0000 | [diff] [blame^] | 22 | LOCAL_MODULE := caliper-host |
Paul Duffin | 7fc0b45 | 2015-11-10 17:45:15 +0000 | [diff] [blame] | 23 | LOCAL_MODULE_TAGS := optional |
| 24 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 25 | LOCAL_SRC_FILES := $(call all-java-files-under, caliper/src/main/java/) |
| 26 | LOCAL_JAVA_RESOURCE_DIRS := caliper/src/main/resources |
| 27 | |
| 28 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
Paul Duffin | 5b4f728 | 2015-11-20 11:11:31 +0000 | [diff] [blame^] | 29 | caliper-gson-host \ |
| 30 | caliper-java-allocation-instrumenter-host \ |
| 31 | guavalib |
Paul Duffin | 7fc0b45 | 2015-11-10 17:45:15 +0000 | [diff] [blame] | 32 | |
Paul Duffin | 5b4f728 | 2015-11-20 11:11:31 +0000 | [diff] [blame^] | 33 | include $(BUILD_HOST_JAVA_LIBRARY) |
Paul Duffin | 7fc0b45 | 2015-11-10 17:45:15 +0000 | [diff] [blame] | 34 | |
Paul Duffin | fb58c0d | 2015-11-11 14:37:37 +0000 | [diff] [blame] | 35 | # build caliper tests |
| 36 | # ============================================================ |
| 37 | |
| 38 | include $(CLEAR_VARS) |
| 39 | |
| 40 | LOCAL_MODULE := caliper-tests |
| 41 | LOCAL_MODULE_TAGS := optional |
| 42 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
| 43 | LOCAL_SRC_FILES := $(call all-java-files-under, caliper/src/test/java/) |
| 44 | |
| 45 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
Paul Duffin | 5b4f728 | 2015-11-20 11:11:31 +0000 | [diff] [blame^] | 46 | caliper-host \ |
| 47 | junit |
Paul Duffin | fb58c0d | 2015-11-11 14:37:37 +0000 | [diff] [blame] | 48 | |
Paul Duffin | 5b4f728 | 2015-11-20 11:11:31 +0000 | [diff] [blame^] | 49 | include $(BUILD_HOST_JAVA_LIBRARY) |
Paul Duffin | fb58c0d | 2015-11-11 14:37:37 +0000 | [diff] [blame] | 50 | |
Paul Duffin | 7fc0b45 | 2015-11-10 17:45:15 +0000 | [diff] [blame] | 51 | # Build dependencies. |
| 52 | # ============================================================ |
| 53 | include $(CLEAR_VARS) |
| 54 | |
Paul Duffin | 5b4f728 | 2015-11-20 11:11:31 +0000 | [diff] [blame^] | 55 | LOCAL_PREBUILT_JAVA_LIBRARIES := \ |
| 56 | caliper-gson-host:lib/gson-1.7.1$(COMMON_JAVA_PACKAGE_SUFFIX) \ |
| 57 | caliper-java-allocation-instrumenter-host:lib/java-allocation-instrumenter-2.0$(COMMON_JAVA_PACKAGE_SUFFIX) |
Paul Duffin | 7fc0b45 | 2015-11-10 17:45:15 +0000 | [diff] [blame] | 58 | |
Paul Duffin | 5b4f728 | 2015-11-20 11:11:31 +0000 | [diff] [blame^] | 59 | include $(BUILD_HOST_PREBUILT) |