1// Copyright (C) 2013 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15genrule { 16 name: "android-support-multidex-instrumentation-version", 17 // use srcs as dependencies, otherwise, this module won't be re-run 18 // during incremental build. 19 srcs: [ 20 "src/**/*.java", 21 ], 22 cmd: "echo \"git.version=`cd frameworks/multidex/instrumentation; git log --format=\"%H\" -n 1 || " + 23 "(echo git hash not available; exit 0)`\" > $(genDir)/android-support-multidex-instrumentation.version.txt", 24 out: [ 25 "android-support-multidex-instrumentation.version.txt", 26 ], 27} 28 29java_library_static { 30 name: "android-support-multidex-instrumentation", 31 sdk_version: "4", 32 srcs: [ 33 "src/**/*.java", 34 ], 35 java_resources: [ 36 ":android-support-multidex-instrumentation-version", 37 ], 38 static_libs: [ 39 "android-support-multidex", 40 ], 41 product_variables: { 42 unbundled_build: { 43 // Don't build the library in unbundled branches. 44 enabled: false, 45 }, 46 }, 47} 48