//
// Copyright (C) 2017 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 "hardware_interfaces_license"
    // to get the below license kinds:
    //   SPDX-license-identifier-Apache-2.0
    default_applicable_licenses: ["hardware_interfaces_license"],
}

cc_library {
    name: "android.hardware.tests.msgq@1.0-impl",
    defaults: ["hidl_defaults"],
    relative_install_path: "hw",
    srcs: [
        "TestMsgQ.cpp",
        "BenchmarkMsgQ.cpp",
    ],
    shared_libs: [
        "libbase",
        "libcutils",
        "libfmq",
        "libhidlbase",
        "liblog",
        "libutils",
    ],

    // These are static libs only for testing purposes and portability. Shared
    // libs should be used on device.
    static_libs: [
        "android.hardware.tests.msgq@1.0",
    ],
}

cc_test {
    name: "android.hardware.tests.msgq@1.0-service-benchmark",
    defaults: ["hidl_defaults"],
    srcs: ["mq_benchmark_service.cpp"],
    gtest: false,

    shared_libs: [
        "libbase",
        "libcutils",
        "libhidlbase",
        "liblog",
        "libutils",
        "android.hardware.tests.msgq@1.0",
    ],
    test_suites: ["general-tests"],
}

cc_test {
    name: "android.hardware.tests.msgq@1.0-service-test",
    defaults: ["hidl_defaults"],
    srcs: ["mq_test_service.cpp"],
    gtest: false,

    shared_libs: [
        "libbase",
        "libcutils",
        "libfmq",
        "libhidlbase",
        "liblog",
        "libutils",
        "libbinder_ndk",
    ],

    compile_multilib: "both",
    multilib: {
        lib32: {
            suffix: "32",
        },
        lib64: {
            suffix: "64",
        },
    },
    test_suites: [
        "general-tests",
        "vts",
    ],
    auto_gen_config: false,

    // Allow dlsym'ing self for statically linked passthrough implementations
    ldflags: ["-rdynamic"],

    // These are static libs only for testing purposes and portability. Shared
    // libs should be used on device.
    static_libs: [
        "android.hardware.common-V2-ndk",
        "android.hardware.common.fmq-V1-ndk",
        "android.hardware.tests.msgq@1.0",
        "android.fmq.test-ndk",
    ],
    whole_static_libs: [
        "android.hardware.tests.msgq@1.0-impl",
        "android.fmq.test-impl",
    ],
}
