13aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel# Copyright (C) 2014 The Android Open Source Project
23aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel#
33aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel# Licensed under the Apache License, Version 2.0 (the "License");
43aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel# you may not use this file except in compliance with the License.
53aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel# You may obtain a copy of the License at
63aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel#
73aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel#      http://www.apache.org/licenses/LICENSE-2.0
83aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel#
93aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel# Unless required by applicable law or agreed to in writing, software
103aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel# distributed under the License is distributed on an "AS IS" BASIS,
113aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
123aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel# See the License for the specific language governing permissions and
133aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel# limitations under the License.
143aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel
153aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann RousselLOCAL_PATH:= $(call my-dir)
163aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel
173aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Rousselinclude $(CLEAR_VARS)
183aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel
193aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann RousselLOCAL_MODULE_TAGS := tests
203aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel
213aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann RousselLOCAL_SRC_FILES := $(call all-java-files-under, src)
223aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel
233aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann RousselLOCAL_SDK_VERSION := 9
243aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel
253aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann RousselLOCAL_PACKAGE_NAME := MultiDexLegacyTestServices
263aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel
273aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann RousselLOCAL_STATIC_JAVA_LIBRARIES := android-support-multidex
283aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel
293aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann RousselmainDexList:= \
303aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel	$(call intermediates-dir-for,APPS,$(LOCAL_PACKAGE_NAME),$(LOCAL_IS_HOST_MODULE),common)/maindex.list
313aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel
323aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann RousselLOCAL_DX_FLAGS := --multi-dex --main-dex-list=$(mainDexList) --minimal-main-dex
333aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel
3485fa4e19b260f35d55bd35c975753540211c62c0Yohann RousselLOCAL_DEX_PREOPT := false
3585fa4e19b260f35d55bd35c975753540211c62c0Yohann Roussel
363aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Rousselinclude $(BUILD_PACKAGE)
373aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel
383aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel$(mainDexList): $(full_classes_proguard_jar) | $(HOST_OUT_EXECUTABLES)/mainDexClasses
393aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel	$(HOST_OUT_EXECUTABLES)/mainDexClasses $< 1>$@
403aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel
413aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel$(built_dex_intermediate): $(mainDexList)
423aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel
43