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 /tests/expression | |
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 'tests/expression')
-rw-r--r-- | tests/expression/1.0/Android.bp | 50 | ||||
-rw-r--r-- | tests/expression/1.0/Android.mk | 56 |
2 files changed, 52 insertions, 54 deletions
diff --git a/tests/expression/1.0/Android.bp b/tests/expression/1.0/Android.bp new file mode 100644 index 0000000000..32d468281b --- /dev/null +++ b/tests/expression/1.0/Android.bp @@ -0,0 +1,50 @@ +// This file is autogenerated by hidl-gen. Do not edit manually. + +genrule { + name: "android.hardware.tests.expression@1.0_genc++", + tool: "hidl-gen", + cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.expression@1.0", + srcs: [ + "IExpression.hal", + "IExpressionExt.hal", + ], + out: [ + "android/hardware/tests/expression/1.0/ExpressionAll.cpp", + "android/hardware/tests/expression/1.0/ExpressionExtAll.cpp", + ], +} + +genrule { + name: "android.hardware.tests.expression@1.0_genc++_headers", + tool: "hidl-gen", + cmd: "$tool -o $genDir -Lc++ -randroid.hardware:hardware/interfaces android.hardware.tests.expression@1.0", + srcs: [ + "IExpression.hal", + "IExpressionExt.hal", + ], + out: [ + "android/hardware/tests/expression/1.0/IExpression.h", + "android/hardware/tests/expression/1.0/IHwExpression.h", + "android/hardware/tests/expression/1.0/BnExpression.h", + "android/hardware/tests/expression/1.0/BpExpression.h", + "android/hardware/tests/expression/1.0/BsExpression.h", + "android/hardware/tests/expression/1.0/IExpressionExt.h", + "android/hardware/tests/expression/1.0/IHwExpressionExt.h", + "android/hardware/tests/expression/1.0/BnExpressionExt.h", + "android/hardware/tests/expression/1.0/BpExpressionExt.h", + "android/hardware/tests/expression/1.0/BsExpressionExt.h", + ], +} + +cc_library_shared { + name: "android.hardware.tests.expression@1.0", + generated_sources: ["android.hardware.tests.expression@1.0_genc++"], + generated_headers: ["android.hardware.tests.expression@1.0_genc++_headers"], + export_generated_headers: ["android.hardware.tests.expression@1.0_genc++_headers"], + shared_libs: [ + "libhidl", + "libhwbinder", + "libutils", + "libcutils", + ], +} diff --git a/tests/expression/1.0/Android.mk b/tests/expression/1.0/Android.mk index 804af71649..dbb97dc5d2 100644 --- a/tests/expression/1.0/Android.mk +++ b/tests/expression/1.0/Android.mk @@ -1,58 +1,6 @@ -LOCAL_PATH := $(call my-dir) -include $(CLEAR_VARS) - -LOCAL_MODULE := android.hardware.tests.expression@1.0 -LOCAL_MODULE_CLASS := SHARED_LIBRARIES +# This file is autogenerated by hidl-gen. Do not edit manually. -intermediates := $(local-generated-sources-dir) - -HIDL := $(HOST_OUT_EXECUTABLES)/hidl-gen$(HOST_EXECUTABLE_SUFFIX) - -# -# Build IExpression.hal -# -GEN := $(intermediates)/android/hardware/tests/expression/1.0/ExpressionAll.cpp -$(GEN): $(HIDL) -$(GEN): PRIVATE_HIDL := $(HIDL) -$(GEN): PRIVATE_DEPS := $(LOCAL_PATH)/IExpression.hal -$(GEN): PRIVATE_OUTPUT_DIR := $(intermediates) -$(GEN): PRIVATE_CUSTOM_TOOL = \ - $(PRIVATE_HIDL) -o $(PRIVATE_OUTPUT_DIR) \ - -Lc++ -randroid.hardware:hardware/interfaces \ - android.hardware.tests.expression@1.0::IExpression - -$(GEN): $(LOCAL_PATH)/IExpression.hal - $(transform-generated-source) -LOCAL_GENERATED_SOURCES += $(GEN) - -# -# Build IExpressionExt.hal -# -GEN := $(intermediates)/android/hardware/tests/expression/1.0/ExpressionExtAll.cpp -$(GEN): $(HIDL) -$(GEN): PRIVATE_HIDL := $(HIDL) -$(GEN): PRIVATE_DEPS := $(LOCAL_PATH)/IExpressionExt.hal -$(GEN): PRIVATE_DEPS += $(LOCAL_PATH)/IExpression.hal -$(GEN): $(LOCAL_PATH)/IExpression.hal -$(GEN): PRIVATE_OUTPUT_DIR := $(intermediates) -$(GEN): PRIVATE_CUSTOM_TOOL = \ - $(PRIVATE_HIDL) -o $(PRIVATE_OUTPUT_DIR) \ - -Lc++ -randroid.hardware:hardware/interfaces \ - android.hardware.tests.expression@1.0::IExpressionExt - -$(GEN): $(LOCAL_PATH)/IExpressionExt.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) +LOCAL_PATH := $(call my-dir) ################################################################################ |