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
19e99daea7a3aec5ffac13b4283685e8d2a5994ad9Yohann RousselLOCAL_SDK_VERSION := 4
20667f9a8a8155c41970a83be1414b57b5e37de336Maurice ChuLOCAL_SRC_FILES := $(call all-java-files-under, src)
216d70d23facddf0e780cfb08a7f9af94da510bf96Yohann Roussel
2207bca8fb7f8d97223a1c27dd5f18008f56e406afYohann RousselASMD_GIT_VERSION_TAG := `cd $(LOCAL_PATH); git log --format="%H" -n 1 || (echo git hash not available; exit 0)`
236d70d23facddf0e780cfb08a7f9af94da510bf96Yohann Roussel
246d70d23facddf0e780cfb08a7f9af94da510bf96Yohann RousselASMD_VERSION_INTERMEDIATE = $(call intermediates-dir-for,JAVA_LIBRARIES,$(LOCAL_MODULE),,COMMON)/$(LOCAL_MODULE).version.txt
256d70d23facddf0e780cfb08a7f9af94da510bf96Yohann Roussel$(ASMD_VERSION_INTERMEDIATE):
266d70d23facddf0e780cfb08a7f9af94da510bf96Yohann Roussel	$(hide) mkdir -p $(dir $@)
2707bca8fb7f8d97223a1c27dd5f18008f56e406afYohann Roussel	$(hide) echo "git.version=$(ASMD_GIT_VERSION_TAG)" > $@
286d70d23facddf0e780cfb08a7f9af94da510bf96Yohann Roussel
296d70d23facddf0e780cfb08a7f9af94da510bf96Yohann RousselLOCAL_JAVA_RESOURCE_FILES := $(ASMD_VERSION_INTERMEDIATE)
306d70d23facddf0e780cfb08a7f9af94da510bf96Yohann Roussel
31805db15e4d7baa57062ad08fb03eeac8691475c8Yohann RousselLOCAL_JACK_FLAGS:=--import-meta $(LOCAL_PATH)/jack-meta
32f50beca07827921e005ce6825bbc874a843f91e1Yohann Roussel
33a2e21e78613b5b5ceaadadc2989c592cec6a661cYohann RousselLOCAL_ADDITIONAL_DEPENDENCIES := $(wildcard $(LOCAL_PATH)/jack-meta/*)
34a2e21e78613b5b5ceaadadc2989c592cec6a661cYohann Roussel
35667f9a8a8155c41970a83be1414b57b5e37de336Maurice Chuinclude $(BUILD_STATIC_JAVA_LIBRARY)
36