diff options
author | Dan Willemsen <dwillemsen@google.com> | 2016-09-28 16:12:24 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2016-09-30 10:31:54 -0700 |
commit | 242b34edd546e63495466083c80f794cd9180ab2 (patch) | |
tree | f83cf3292d3f816345213d2e3db11f1e26b75c0d /benchmarks | |
parent | fe2b0983553f88370ce6a317ef7bb4b2baec42b3 (diff) | |
download | platform_hardware_interfaces-242b34edd546e63495466083c80f794cd9180ab2.tar.gz platform_hardware_interfaces-242b34edd546e63495466083c80f794cd9180ab2.tar.bz2 platform_hardware_interfaces-242b34edd546e63495466083c80f794cd9180ab2.zip |
Convert to Android.bp
See build/soong/README.md for more information.
Bug: 31742855
Test: mma -j
Change-Id: Icb93f3b1b2caeb5e9c00f88ca35841b927ad075d
Diffstat (limited to 'benchmarks')
-rw-r--r-- | benchmarks/msgq/1.0/Android.bp | 42 | ||||
-rw-r--r-- | benchmarks/msgq/1.0/Android.mk | 39 |
2 files changed, 42 insertions, 39 deletions
diff --git a/benchmarks/msgq/1.0/Android.bp b/benchmarks/msgq/1.0/Android.bp new file mode 100644 index 0000000000..51841c243f --- /dev/null +++ b/benchmarks/msgq/1.0/Android.bp @@ -0,0 +1,42 @@ +// This file is autogenerated by hidl-gen. Do not edit manually. + +genrule { + name: "android.hardware.benchmarks.msgq@1.0_genc++", + tool: "hidl-gen", + cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.benchmarks.msgq@1.0", + srcs: [ + "IBenchmarkMsgQ.hal", + ], + out: [ + "android/hardware/benchmarks/msgq/1.0/BenchmarkMsgQAll.cpp", + ], +} + +genrule { + name: "android.hardware.benchmarks.msgq@1.0_genc++_headers", + tool: "hidl-gen", + cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.benchmarks.msgq@1.0", + srcs: [ + "IBenchmarkMsgQ.hal", + ], + out: [ + "android/hardware/benchmarks/msgq/1.0/IBenchmarkMsgQ.h", + "android/hardware/benchmarks/msgq/1.0/IHwBenchmarkMsgQ.h", + "android/hardware/benchmarks/msgq/1.0/BnBenchmarkMsgQ.h", + "android/hardware/benchmarks/msgq/1.0/BpBenchmarkMsgQ.h", + "android/hardware/benchmarks/msgq/1.0/BsBenchmarkMsgQ.h", + ], +} + +cc_library_shared { + name: "android.hardware.benchmarks.msgq@1.0", + generated_sources: ["android.hardware.benchmarks.msgq@1.0_genc++"], + generated_headers: ["android.hardware.benchmarks.msgq@1.0_genc++_headers"], + export_generated_headers: ["android.hardware.benchmarks.msgq@1.0_genc++_headers"], + shared_libs: [ + "libhidl", + "libhwbinder", + "libutils", + "libcutils", + ], +} diff --git a/benchmarks/msgq/1.0/Android.mk b/benchmarks/msgq/1.0/Android.mk deleted file mode 100644 index dec2a92176..0000000000 --- a/benchmarks/msgq/1.0/Android.mk +++ /dev/null @@ -1,39 +0,0 @@ -LOCAL_PATH := $(call my-dir) -include $(CLEAR_VARS) - -LOCAL_MODULE := android.hardware.benchmarks.msgq@1.0 -LOCAL_MODULE_CLASS := SHARED_LIBRARIES - -intermediates := $(local-generated-sources-dir) - -HIDL := $(HOST_OUT_EXECUTABLES)/hidl-gen$(HOST_EXECUTABLE_SUFFIX) - -# -# Build IBenchmarkMsgQ.hal -# -GEN := $(intermediates)/android/hardware/benchmarks/msgq/1.0/BenchmarkMsgQAll.cpp -$(GEN): $(HIDL) -$(GEN): PRIVATE_HIDL := $(HIDL) -$(GEN): PRIVATE_DEPS := $(LOCAL_PATH)/IBenchmarkMsgQ.hal -$(GEN): PRIVATE_OUTPUT_DIR := $(intermediates) -$(GEN): PRIVATE_CUSTOM_TOOL = \ - $(PRIVATE_HIDL) -o $(PRIVATE_OUTPUT_DIR) \ - -Lc++ -randroid.hardware:hardware/interfaces \ - android.hardware.benchmarks.msgq@1.0::IBenchmarkMsgQ - -$(GEN): $(LOCAL_PATH)/IBenchmarkMsgQ.hal - $(transform-generated-source) -LOCAL_GENERATED_SOURCES += $(GEN) - -LOCAL_EXPORT_C_INCLUDE_DIRS := $(intermediates) -LOCAL_SHARED_LIBRARIES := \ - libhidl \ - libhwbinder \ - libutils \ - libcutils \ - -LOCAL_MULTILIB := both -include $(BUILD_SHARED_LIBRARY) - - -include $(call all-makefiles-under,$(LOCAL_PATH)) |