blob: c7477648b3c960342c9a482f6d6be37f7de62526 [file] [log] [blame]
Paul Duffin7fc0b452015-11-10 17:45:15 +00001# Copyright (C) 2014 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
15LOCAL_PATH := $(call my-dir)
16
17# build caliper jar
18# ============================================================
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
35# Build dependencies.
36# ============================================================
37include $(CLEAR_VARS)
38
39LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES := \
40 caliper-gson:lib/gson-1.7.1$(COMMON_JAVA_PACKAGE_SUFFIX) \
41 caliper-java-allocation-instrumenter:lib/java-allocation-instrumenter-2.0$(COMMON_JAVA_PACKAGE_SUFFIX)
42
43include $(BUILD_MULTI_PREBUILT)