blob: 1207464bd7252cd92ee53510bbaf153d05f37043 [file] [log] [blame]
Paul Duffinfb58c0d2015-11-11 14:37:37 +00001# Copyright (C) 2015 The Android Open Source Project
Paul Duffin7fc0b452015-11-10 17:45:15 +00002#
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
15LOCAL_PATH := $(call my-dir)
16
Paul Duffin5b4f7282015-11-20 11:11:31 +000017# build caliper host jar
Paul Duffin7fc0b452015-11-10 17:45:15 +000018# ============================================================
19
20include $(CLEAR_VARS)
21
Paul Duffin5b4f7282015-11-20 11:11:31 +000022LOCAL_MODULE := caliper-host
Paul Duffin7fc0b452015-11-10 17:45:15 +000023LOCAL_MODULE_TAGS := optional
24LOCAL_MODULE_CLASS := JAVA_LIBRARIES
25LOCAL_SRC_FILES := $(call all-java-files-under, caliper/src/main/java/)
26LOCAL_JAVA_RESOURCE_DIRS := caliper/src/main/resources
27
28LOCAL_STATIC_JAVA_LIBRARIES := \
Paul Duffin5b4f7282015-11-20 11:11:31 +000029 caliper-gson-host \
30 caliper-java-allocation-instrumenter-host \
31 guavalib
Paul Duffin7fc0b452015-11-10 17:45:15 +000032
Paul Duffin5b4f7282015-11-20 11:11:31 +000033include $(BUILD_HOST_JAVA_LIBRARY)
Paul Duffin7fc0b452015-11-10 17:45:15 +000034
Paul Duffinfb58c0d2015-11-11 14:37:37 +000035# build caliper tests
36# ============================================================
37
38include $(CLEAR_VARS)
39
40LOCAL_MODULE := caliper-tests
41LOCAL_MODULE_TAGS := optional
42LOCAL_MODULE_CLASS := JAVA_LIBRARIES
43LOCAL_SRC_FILES := $(call all-java-files-under, caliper/src/test/java/)
44
45LOCAL_STATIC_JAVA_LIBRARIES := \
Paul Duffin5b4f7282015-11-20 11:11:31 +000046 caliper-host \
47 junit
Paul Duffinfb58c0d2015-11-11 14:37:37 +000048
Paul Duffin5b4f7282015-11-20 11:11:31 +000049include $(BUILD_HOST_JAVA_LIBRARY)
Paul Duffinfb58c0d2015-11-11 14:37:37 +000050
Paul Duffin7fc0b452015-11-10 17:45:15 +000051# Build dependencies.
52# ============================================================
53include $(CLEAR_VARS)
54
Paul Duffin5b4f7282015-11-20 11:11:31 +000055LOCAL_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 Duffin7fc0b452015-11-10 17:45:15 +000058
Paul Duffin5b4f7282015-11-20 11:11:31 +000059include $(BUILD_HOST_PREBUILT)