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) 226d70d23facddf0e780cfb08a7f9af94da510bf96Yohann Roussel 236d70d23facddf0e780cfb08a7f9af94da510bf96Yohann Roussel 246d70d23facddf0e780cfb08a7f9af94da510bf96Yohann Rousselifneq "" "$(filter eng.%,$(BUILD_NUMBER))" 256d70d23facddf0e780cfb08a7f9af94da510bf96Yohann Roussel ASMDI_VERSION_NAME_TAG := eng.$(USER) 266d70d23facddf0e780cfb08a7f9af94da510bf96Yohann Rousselelse 276d70d23facddf0e780cfb08a7f9af94da510bf96Yohann Roussel ASMDI_VERSION_NAME_TAG := $(BUILD_NUMBER) 286d70d23facddf0e780cfb08a7f9af94da510bf96Yohann Rousselendif 296d70d23facddf0e780cfb08a7f9af94da510bf96Yohann Roussel 306d70d23facddf0e780cfb08a7f9af94da510bf96Yohann RousselASMDI_GIT_VERSION_TAG := `cd $(LOCAL_PATH); git log --format="%H" -n 1` 316d70d23facddf0e780cfb08a7f9af94da510bf96Yohann Roussel 326d70d23facddf0e780cfb08a7f9af94da510bf96Yohann RousselASMDI_VERSION_INTERMEDIATE = $(call intermediates-dir-for,JAVA_LIBRARIES,$(LOCAL_MODULE),,COMMON)/$(LOCAL_MODULE).version.txt 336d70d23facddf0e780cfb08a7f9af94da510bf96Yohann Roussel$(ASMDI_VERSION_INTERMEDIATE): 346d70d23facddf0e780cfb08a7f9af94da510bf96Yohann Roussel $(hide) mkdir -p $(dir $@) 356d70d23facddf0e780cfb08a7f9af94da510bf96Yohann Roussel $(hide) echo "build.version=$(ASMDI_VERSION_NAME_TAG)" > $@ 366d70d23facddf0e780cfb08a7f9af94da510bf96Yohann Roussel $(hide) echo "build.id=$(BUILD_ID)" >> $@ 376d70d23facddf0e780cfb08a7f9af94da510bf96Yohann Roussel $(hide) echo "git.version=$(ASMDI_GIT_VERSION_TAG)" >> $@ 386d70d23facddf0e780cfb08a7f9af94da510bf96Yohann Roussel 396d70d23facddf0e780cfb08a7f9af94da510bf96Yohann RousselLOCAL_JAVA_RESOURCE_FILES := $(ASMDI_VERSION_INTERMEDIATE) 406d70d23facddf0e780cfb08a7f9af94da510bf96Yohann Roussel 416d70d23facddf0e780cfb08a7f9af94da510bf96Yohann Roussel 42667f9a8a8155c41970a83be1414b57b5e37de336Maurice Chuinclude $(BUILD_STATIC_JAVA_LIBRARY) 43