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

Commit ded98525 authored by Colin Cross's avatar Colin Cross
Browse files

Stop using genrule to copy headers

There is no need to use a genrule to copy headers, just move them into
an appropriate directory in the source tree and export them directly.

Bug: 31948427
Test: mmma -j frameworks/native/libs/ui
Change-Id: I9c5f385e29c78d47479c77a546cfc737e4dd40f8
parent f0e1092e
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
genrule {
    name: "android.hardware.graphics.mapper@2.0_genc++_headers",
    cmd: "cp $in $genDir/android/hardware/graphics/mapper/2.0",
    srcs: ["IMapper.h", "types.h"],
    out: [
        "android/hardware/graphics/mapper/2.0/IMapper.h",
        "android/hardware/graphics/mapper/2.0/types.h",
    ],
}

cc_library_static {
    name: "android.hardware.graphics.mapper@2.0",
    generated_headers: ["android.hardware.graphics.mapper@2.0_genc++_headers"],
    export_generated_headers: ["android.hardware.graphics.mapper@2.0_genc++_headers"],
    export_include_dirs: ["include"],
}