blob: 7a2e48ebcc364e1a4a689325640a89b4e14c1894 [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 Duffinfb58c0d2015-11-11 14:37:37 +000017# build caliper target jar
Paul Duffin7fc0b452015-11-10 17:45:15 +000018# ============================================================
19
20include $(CLEAR_VARS)
21
22LOCAL_MODULE := caliper-target
23LOCAL_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 := \
29 caliper-gson \
30 caliper-java-allocation-instrumenter \
31 guava
32
33include $(BUILD_STATIC_JAVA_LIBRARY)
34
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 := \
46 caliper-target \
47 junit-target
48
49include $(BUILD_STATIC_JAVA_LIBRARY)
50
Paul Duffin7fc0b452015-11-10 17:45:15 +000051# Build dependencies.
52# ============================================================
53include $(CLEAR_VARS)
54
55LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \
56 caliper-gson:lib/gson-1.7.1$(COMMON_JAVA_PACKAGE_SUFFIX) \
57 caliper-java-allocation-instrumenter:lib/java-allocation-instrumenter-2.0$(COMMON_JAVA_PACKAGE_SUFFIX)
58
59include $(BUILD_MULTI_PREBUILT)