1667f9a8a8155c41970a83be1414b57b5e37de336Maurice Chu# Copyright (C) 2013 The Android Open Source Project
2667f9a8a8155c41970a83be1414b57b5e37de336Maurice Chu#
3667f9a8a8155c41970a83be1414b57b5e37de336Maurice Chu# Licensed under the Apache License, Version 2.0 (the "License");
4667f9a8a8155c41970a83be1414b57b5e37de336Maurice Chu# you may not use this file except in compliance with the License.
5667f9a8a8155c41970a83be1414b57b5e37de336Maurice Chu# You may obtain a copy of the License at
6667f9a8a8155c41970a83be1414b57b5e37de336Maurice Chu#
7667f9a8a8155c41970a83be1414b57b5e37de336Maurice Chu#      http://www.apache.org/licenses/LICENSE-2.0
8667f9a8a8155c41970a83be1414b57b5e37de336Maurice Chu#
9667f9a8a8155c41970a83be1414b57b5e37de336Maurice Chu# Unless required by applicable law or agreed to in writing, software
10667f9a8a8155c41970a83be1414b57b5e37de336Maurice Chu# distributed under the License is distributed on an "AS IS" BASIS,
11667f9a8a8155c41970a83be1414b57b5e37de336Maurice Chu# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12667f9a8a8155c41970a83be1414b57b5e37de336Maurice Chu# See the License for the specific language governing permissions and
13667f9a8a8155c41970a83be1414b57b5e37de336Maurice Chu# limitations under the License.
14667f9a8a8155c41970a83be1414b57b5e37de336Maurice Chu
15667f9a8a8155c41970a83be1414b57b5e37de336Maurice ChuLOCAL_PATH := $(call my-dir)
16667f9a8a8155c41970a83be1414b57b5e37de336Maurice Chu
17667f9a8a8155c41970a83be1414b57b5e37de336Maurice Chuinclude $(CLEAR_VARS)
18667f9a8a8155c41970a83be1414b57b5e37de336Maurice ChuLOCAL_MODULE := android-support-multidex-instrumentation
191bb1ab007f6b9405227ea4ce07d2061e4dbb6fe0Yohann RousselLOCAL_JAVA_LIBRARIES := android-support-multidex
20667f9a8a8155c41970a83be1414b57b5e37de336Maurice ChuLOCAL_SDK_VERSION := 4
21667f9a8a8155c41970a83be1414b57b5e37de336Maurice ChuLOCAL_SRC_FILES := $(call all-java-files-under, src)
22abaf93c8f92de8b8d44173e78b0d7629b0324031Yohann Roussel
23abaf93c8f92de8b8d44173e78b0d7629b0324031Yohann Roussel
24abaf93c8f92de8b8d44173e78b0d7629b0324031Yohann Rousselifneq "" "$(filter eng.%,$(BUILD_NUMBER))"
25abaf93c8f92de8b8d44173e78b0d7629b0324031Yohann Roussel  ASMDI_VERSION_NAME_TAG := eng.$(USER)
26abaf93c8f92de8b8d44173e78b0d7629b0324031Yohann Rousselelse
27abaf93c8f92de8b8d44173e78b0d7629b0324031Yohann Roussel  ASMDI_VERSION_NAME_TAG := $(BUILD_NUMBER)
28abaf93c8f92de8b8d44173e78b0d7629b0324031Yohann Rousselendif
29abaf93c8f92de8b8d44173e78b0d7629b0324031Yohann Roussel
30abaf93c8f92de8b8d44173e78b0d7629b0324031Yohann RousselASMDI_GIT_VERSION_TAG := `cd $(LOCAL_PATH); git log --format="%H" -n 1`
31abaf93c8f92de8b8d44173e78b0d7629b0324031Yohann Roussel
32abaf93c8f92de8b8d44173e78b0d7629b0324031Yohann RousselASMDI_VERSION_INTERMEDIATE = $(call intermediates-dir-for,JAVA_LIBRARIES,$(LOCAL_MODULE),,COMMON)/$(LOCAL_MODULE).version.txt
33abaf93c8f92de8b8d44173e78b0d7629b0324031Yohann Roussel$(ASMDI_VERSION_INTERMEDIATE):
34abaf93c8f92de8b8d44173e78b0d7629b0324031Yohann Roussel	$(hide) mkdir -p $(dir $@)
35abaf93c8f92de8b8d44173e78b0d7629b0324031Yohann Roussel	$(hide) echo "build.version=$(ASMDI_VERSION_NAME_TAG)" > $@
36abaf93c8f92de8b8d44173e78b0d7629b0324031Yohann Roussel	$(hide) echo "build.id=$(BUILD_ID)" >> $@
37abaf93c8f92de8b8d44173e78b0d7629b0324031Yohann Roussel	$(hide) echo "git.version=$(ASMDI_GIT_VERSION_TAG)" >> $@
38abaf93c8f92de8b8d44173e78b0d7629b0324031Yohann Roussel
39abaf93c8f92de8b8d44173e78b0d7629b0324031Yohann RousselLOCAL_JAVA_RESOURCE_FILES := $(ASMDI_VERSION_INTERMEDIATE)
40abaf93c8f92de8b8d44173e78b0d7629b0324031Yohann Roussel
41abaf93c8f92de8b8d44173e78b0d7629b0324031Yohann Roussel
42667f9a8a8155c41970a83be1414b57b5e37de336Maurice Chuinclude $(BUILD_STATIC_JAVA_LIBRARY)
43