Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fec2b9bc authored by Mark Yacoub's avatar Mark Yacoub
Browse files

VTS: Create libhwc_aidl_test out of HWC VTS

[Why]
VTS tests targeting HWC depend on wrapper and helpers that are very
well done and beneficial to other tests outside of VTS that are also
targeting HWC.
Instead of rewriting all these helpers in a new effort to test HWC using
Cuttlefish, a common library for HWC AIDL tests would be beneficial.

[How]
Take out all the helpers out of the VTS directory and create a new
libhwc_aidl_test directory that other tests can reference.
Also, remove any mention of VTS out of them because they're not longer
directly related to VTS.

Bug: b/384710755  , b/383783834
Test: atest VtsHalGraphicsComposer3_TargetTest
Flag: TEST_ONLY

Change-Id: Icaff0c50186d7b016e1d1822e084bf12001fe5be
parent 7df603b6
Loading
Loading
Loading
Loading
+71 −0
Original line number Diff line number Diff line
/**
 * Copyright (c) 2025, 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 {
    default_team: "trendy_team_android_core_graphics_stack",
    // 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
}

cc_library_static {
    name: "libhwc_aidl_test",
    export_include_dirs: ["include"],
    defaults: [
        "use_libaidlvintf_gtest_helper_static",
        "librenderengine_deps",
        "android.hardware.graphics.common-ndk_static",
        "android.hardware.graphics.composer3-ndk_static",
    ],
    srcs: [
        "ComposerClientWrapper.cpp",
        "GraphicsComposerCallback.cpp",
        "Readback.cpp",
        "RenderEngine.cpp",
    ],
    shared_libs: [
        "libEGL",
        "libGLESv2",
        "libbinder_ndk",
        "libbinder",
        "libfmq",
        "libbase",
        "libsync",
        "libui",
        "libgui",
    ],
    header_libs: [
        "android.hardware.graphics.composer3-command-buffer",
    ],
    static_libs: [
        "android.hardware.graphics.common@1.2",
        "android.hardware.common-V2-ndk",
        "android.hardware.common.fmq-V1-ndk",
        "libaidlcommonsupport",
        "libarect",
        "libbase",
        "libfmq",
        "libgtest",
        "librenderengine",
        "libsync",
        "libsurfaceflinger_common",
    ],
    cflags: [
        "-Wconversion",
    ],
}
Loading