diff options
Diffstat (limited to 'graphics/common/1.0/Android.bp')
-rw-r--r-- | graphics/common/1.0/Android.bp | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/graphics/common/1.0/Android.bp b/graphics/common/1.0/Android.bp index 86438c1a35..4ea9c1a27d 100644 --- a/graphics/common/1.0/Android.bp +++ b/graphics/common/1.0/Android.bp @@ -58,3 +58,51 @@ cc_library { "libutils", ], } + +genrule { + name: "android.hardware.graphics.common-V1.0-java_gen_java", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Ljava -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.graphics.common@1.0", + srcs: [ + ":android.hardware.graphics.common@1.0_hal", + ], + out: [ + "android/hardware/graphics/common/V1_0/BufferUsage.java", + "android/hardware/graphics/common/V1_0/ColorMode.java", + "android/hardware/graphics/common/V1_0/ColorTransform.java", + "android/hardware/graphics/common/V1_0/Dataspace.java", + "android/hardware/graphics/common/V1_0/Hdr.java", + "android/hardware/graphics/common/V1_0/PixelFormat.java", + "android/hardware/graphics/common/V1_0/Transform.java", + ], +} + +java_library { + name: "android.hardware.graphics.common-V1.0-java", + no_framework_libs: true, + defaults: ["hidl-java-module-defaults"], + srcs: [":android.hardware.graphics.common-V1.0-java_gen_java"], + libs: [ + "hwbinder", + ] +} + +genrule { + name: "android.hardware.graphics.common-V1.0-java-constants_gen_java", + tools: ["hidl-gen"], + cmd: "$(location hidl-gen) -o $(genDir) -Ljava-constants -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.graphics.common@1.0", + srcs: [ + ":android.hardware.graphics.common@1.0_hal", + ], + out: [ + "android/hardware/graphics/common/V1_0/Constants.java", + ], +} + +java_library { + name: "android.hardware.graphics.common-V1.0-java-constants", + no_framework_libs: true, + defaults: ["hidl-java-module-defaults"], + srcs: [":android.hardware.graphics.common-V1.0-java-constants_gen_java"], +} +// This package has no interfaces. Not creating versioning adapter. |