• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2016 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-version",
17    tools: [
18        "soong_zip",
19    ],
20    // use srcs as dependencies, otherwise, this module won't be re-run
21    // during incremental build.
22    srcs: [
23        "src/**/*.java",
24    ],
25    cmd: "echo \"git.version=`cd frameworks/multidex/library; git log --format=\"%H\" -n 1 || " +
26         "(echo git hash not available; exit 0)`\" > $(genDir)/android-support-multidex.version.txt",
27    out: [
28        "android-support-multidex.version.txt",
29    ],
30}
31
32java_library_static {
33    name: "android-support-multidex",
34    sdk_version: "15",
35    min_sdk_version: "4",
36    srcs: [
37        "src/**/*.java",
38    ],
39    java_resources: [
40        ":android-support-multidex-version",
41    ],
42    product_variables: {
43        unbundled_build: {
44            // Don't build the library in unbundled branches.
45            enabled: false,
46        },
47    },
48}
49