// Copyright (C) 2015 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package {
    // See: http://go/android-license-faq
    // A large-scale-change added 'default_applicable_licenses' to import
    // all of the 'license_kinds' from "art_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["art_license"],
}

art_cc_binary {
    name: "dexlist",
    defaults: ["art_defaults"],
    host_supported: true,
    srcs: ["dexlist.cc"],
    shared_libs: [
        "libdexfile",
        "libartbase",
        "libbase",
    ],
    apex_available: [
        "com.android.art",
        "com.android.art.debug",
        "test_broken_com.android.art",
    ],
}

art_cc_binary {
    name: "dexlists",
    defaults: [
        "art_defaults",
        "libartbase_static_defaults",
        "libdexfile_static_defaults",
    ],
    host_supported: true,
    srcs: ["dexlist.cc"],
    device_supported: false,
    target: {
        darwin: {
            enabled: false,
        },
        windows: {
            enabled: true,
        },
    },
}

art_cc_defaults {
    name: "art_dexlist_tests_defaults",
    srcs: ["dexlist_test.cc"],
    target: {
        host: {
            required: ["dexlist"],
        },
    },
}

// Version of ART gtest `art_dexlist_tests` bundled with the ART APEX on target.
// TODO(b/192274705): Remove this module when the migration to standalone ART gtests is complete.
art_cc_test {
    name: "art_dexlist_tests",
    defaults: [
        "art_gtest_defaults",
        "art_dexlist_tests_defaults",
    ],
}

// Standalone version of ART gtest `art_dexlist_tests`, not bundled with the ART APEX on target.
art_cc_test {
    name: "art_standalone_dexlist_tests",
    defaults: [
        "art_standalone_gtest_defaults",
        "art_dexlist_tests_defaults",
    ],
    data: [":generate-boot-image"],
    test_config_template: ":art-gtests-target-standalone-with-boot-image-template",
}
