summaryrefslogtreecommitdiffstats
path: root/configstore/1.0
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2017-11-13 09:20:49 -0800
committerSteven Moreland <smoreland@google.com>2017-11-13 11:39:07 -0800
commitc2f829a1d2673f91add6bcd536c7d4fe753d0447 (patch)
treea586e3a4ea66f147f229a6b14a33291fa5182977 /configstore/1.0
parent7c2d2454de95db7429b30a7701581041889bb873 (diff)
downloadplatform_hardware_interfaces-c2f829a1d2673f91add6bcd536c7d4fe753d0447.tar.gz
platform_hardware_interfaces-c2f829a1d2673f91add6bcd536c7d4fe753d0447.tar.bz2
platform_hardware_interfaces-c2f829a1d2673f91add6bcd536c7d4fe753d0447.zip
Updating makefiles for hidl_interface.
Bug: 64487114 Test: manual Merged-In: Ie13d9e014cf2b81c18c67f551b4644fb9f0ba812 Change-Id: Ie13d9e014cf2b81c18c67f551b4644fb9f0ba812
Diffstat (limited to 'configstore/1.0')
-rw-r--r--configstore/1.0/Android.bp176
1 files changed, 15 insertions, 161 deletions
diff --git a/configstore/1.0/Android.bp b/configstore/1.0/Android.bp
index da0331b717..5e98e5c4e4 100644
--- a/configstore/1.0/Android.bp
+++ b/configstore/1.0/Android.bp
@@ -1,172 +1,26 @@
-// This file is autogenerated by hidl-gen. Do not edit manually.
+// This file is autogenerated by hidl-gen -Landroidbp.
-filegroup {
- name: "android.hardware.configstore@1.0_hal",
- srcs: [
- "types.hal",
- "ISurfaceFlingerConfigs.hal",
- ],
-}
-
-genrule {
- name: "android.hardware.configstore@1.0_genc++",
- tools: ["hidl-gen"],
- cmd: "$(location hidl-gen) -o $(genDir) -Lc++-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.configstore@1.0",
- srcs: [
- ":android.hardware.configstore@1.0_hal",
- ],
- out: [
- "android/hardware/configstore/1.0/types.cpp",
- "android/hardware/configstore/1.0/SurfaceFlingerConfigsAll.cpp",
- ],
-}
-
-genrule {
- name: "android.hardware.configstore@1.0_genc++_headers",
- tools: ["hidl-gen"],
- cmd: "$(location hidl-gen) -o $(genDir) -Lc++-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.configstore@1.0",
- srcs: [
- ":android.hardware.configstore@1.0_hal",
- ],
- out: [
- "android/hardware/configstore/1.0/types.h",
- "android/hardware/configstore/1.0/hwtypes.h",
- "android/hardware/configstore/1.0/ISurfaceFlingerConfigs.h",
- "android/hardware/configstore/1.0/IHwSurfaceFlingerConfigs.h",
- "android/hardware/configstore/1.0/BnHwSurfaceFlingerConfigs.h",
- "android/hardware/configstore/1.0/BpHwSurfaceFlingerConfigs.h",
- "android/hardware/configstore/1.0/BsSurfaceFlingerConfigs.h",
- ],
-}
-
-cc_library {
+hidl_interface {
name: "android.hardware.configstore@1.0",
- defaults: ["hidl-module-defaults"],
- generated_sources: ["android.hardware.configstore@1.0_genc++"],
- generated_headers: ["android.hardware.configstore@1.0_genc++_headers"],
- export_generated_headers: ["android.hardware.configstore@1.0_genc++_headers"],
- vendor_available: true,
+ root: "android.hardware",
vndk: {
enabled: true,
},
- shared_libs: [
- "libhidlbase",
- "libhidltransport",
- "libhwbinder",
- "liblog",
- "libutils",
- "libcutils",
- ],
- export_shared_lib_headers: [
- "libhidlbase",
- "libhidltransport",
- "libhwbinder",
- "libutils",
- ],
-}
-
-genrule {
- name: "android.hardware.configstore-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.configstore@1.0",
srcs: [
- ":android.hardware.configstore@1.0_hal",
- ],
- out: [
- "android/hardware/configstore/V1_0/OptionalBool.java",
- "android/hardware/configstore/V1_0/OptionalInt32.java",
- "android/hardware/configstore/V1_0/OptionalInt64.java",
- "android/hardware/configstore/V1_0/OptionalString.java",
- "android/hardware/configstore/V1_0/OptionalUInt32.java",
- "android/hardware/configstore/V1_0/OptionalUInt64.java",
- "android/hardware/configstore/V1_0/ISurfaceFlingerConfigs.java",
- ],
-}
-
-java_library {
- name: "android.hardware.configstore-V1.0-java",
- no_framework_libs: true,
- defaults: ["hidl-java-module-defaults"],
- srcs: [":android.hardware.configstore-V1.0-java_gen_java"],
- libs: [
- "hwbinder",
- "android.hidl.base-V1.0-java",
- ]
-}
-
-// This package does not export any types. Not creating java constants export.
-
-
-genrule {
- name: "android.hardware.configstore@1.0-adapter-helper_genc++",
- tools: ["hidl-gen"],
- cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.configstore@1.0",
- srcs: [
- ":android.hardware.configstore@1.0_hal",
- ],
- out: [
- "android/hardware/configstore/1.0/ASurfaceFlingerConfigs.cpp",
- ],
-}
-
-genrule {
- name: "android.hardware.configstore@1.0-adapter-helper_genc++_headers",
- tools: ["hidl-gen"],
- cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.configstore@1.0",
- srcs: [
- ":android.hardware.configstore@1.0_hal",
- ],
- out: [
- "android/hardware/configstore/1.0/ASurfaceFlingerConfigs.h",
+ "types.hal",
+ "ISurfaceFlingerConfigs.hal",
],
-}
-
-cc_library {
- name: "android.hardware.configstore@1.0-adapter-helper",
- defaults: ["hidl-module-defaults"],
- generated_sources: ["android.hardware.configstore@1.0-adapter-helper_genc++"],
- generated_headers: ["android.hardware.configstore@1.0-adapter-helper_genc++_headers"],
- export_generated_headers: ["android.hardware.configstore@1.0-adapter-helper_genc++_headers"],
- vendor_available: true,
- shared_libs: [
- "libhidlbase",
- "libhidltransport",
- "libhwbinder",
- "liblog",
- "libutils",
- "libcutils",
- "libhidladapter",
- "android.hardware.configstore@1.0",
- "android.hidl.base@1.0-adapter-helper",
+ interfaces: [
+ "android.hidl.base@1.0",
],
- export_shared_lib_headers: [
- "libhidlbase",
- "libhidltransport",
- "libhwbinder",
- "libutils",
- "libhidladapter",
- "android.hardware.configstore@1.0",
- "android.hidl.base@1.0-adapter-helper",
+ types: [
+ "OptionalBool",
+ "OptionalInt32",
+ "OptionalInt64",
+ "OptionalString",
+ "OptionalUInt32",
+ "OptionalUInt64",
],
+ gen_java: true,
}
-genrule {
- name: "android.hardware.configstore@1.0-adapter_genc++",
- tools: ["hidl-gen"],
- cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.configstore@1.0",
- out: ["main.cpp"]
-}
-
-cc_test {
- name: "android.hardware.configstore@1.0-adapter",
- defaults: ["hidl-module-defaults"],
- shared_libs: [
- "libhidladapter",
- "libhidlbase",
- "libhidltransport",
- "libutils",
- "android.hardware.configstore@1.0",
- "android.hardware.configstore@1.0-adapter-helper",
- ],
- generated_sources: ["android.hardware.configstore@1.0-adapter_genc++"],
-}