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 33248ef6f9c414db26fd1bc7ec3d4ee4f3b87d54cfYohann RousselLOCAL_JACK_FLAGS := -D jack.dex.output.policy=minimal-multidex -D jack.dex.output.multidex.legacy=true 343aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel 3585fa4e19b260f35d55bd35c975753540211c62c0Yohann RousselLOCAL_DEX_PREOPT := false 3685fa4e19b260f35d55bd35c975753540211c62c0Yohann Roussel 373aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Rousselinclude $(BUILD_PACKAGE) 383aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel 39bf5ad8d9943c0e1b0b3f1b4524c277f369065d08Yohann Rousselifndef LOCAL_JACK_ENABLED 403aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel$(mainDexList): $(full_classes_proguard_jar) | $(HOST_OUT_EXECUTABLES)/mainDexClasses 41248ef6f9c414db26fd1bc7ec3d4ee4f3b87d54cfYohann Roussel $(hide) mkdir -p $(dir $@) 423aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel $(HOST_OUT_EXECUTABLES)/mainDexClasses $< 1>$@ 433aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel 443aac33e7262dc53d878b9c7d44c3cfd31619d128Yohann Roussel$(built_dex_intermediate): $(mainDexList) 45f50a51fb4c8d5ca973ce910a21bddf9f8466cb51Yohann Rousselendif 46