diff options
author | Steven Moreland <smoreland@google.com> | 2017-08-10 15:15:18 -0700 |
---|---|---|
committer | Steven Moreland <smoreland@google.com> | 2017-08-11 22:58:47 +0000 |
commit | ff308ea6bab512a5e970cf35b943621732d711af (patch) | |
tree | c470743c29e2595c1636141d72e751292157fd08 /vibrator | |
parent | 2a8d879c40170d4a7da4db48bf53625d98846494 (diff) | |
download | platform_hardware_interfaces-ff308ea6bab512a5e970cf35b943621732d711af.tar.gz platform_hardware_interfaces-ff308ea6bab512a5e970cf35b943621732d711af.tar.bz2 platform_hardware_interfaces-ff308ea6bab512a5e970cf35b943621732d711af.zip |
Updating all makefiles.
Bug: 64487114
Test: none
Merged-In: I8608c8f636c35f21e4246a805a9eff6d14124e0a
Merged-In: I2fa89b6661c39859ec4fb62c4bb0a05a35e645f0
Change-Id: Ifdc3c17cb2b85c18b37dac2d03bb5c8935c23180
Diffstat (limited to 'vibrator')
-rw-r--r-- | vibrator/1.0/Android.bp | 5 | ||||
-rw-r--r-- | vibrator/1.0/Android.mk | 96 | ||||
-rw-r--r-- | vibrator/1.1/Android.bp | 5 | ||||
-rw-r--r-- | vibrator/1.1/Android.mk | 59 |
4 files changed, 12 insertions, 153 deletions
diff --git a/vibrator/1.0/Android.bp b/vibrator/1.0/Android.bp index 0beff681cf..354b83ffef 100644 --- a/vibrator/1.0/Android.bp +++ b/vibrator/1.0/Android.bp @@ -39,13 +39,16 @@ genrule { ], } -cc_library_shared { +cc_library { name: "android.hardware.vibrator@1.0", defaults: ["hidl-module-defaults"], generated_sources: ["android.hardware.vibrator@1.0_genc++"], generated_headers: ["android.hardware.vibrator@1.0_genc++_headers"], export_generated_headers: ["android.hardware.vibrator@1.0_genc++_headers"], vendor_available: true, + vndk: { + enabled: true, + }, shared_libs: [ "libhidlbase", "libhidltransport", diff --git a/vibrator/1.0/Android.mk b/vibrator/1.0/Android.mk index c54b655a39..4e03392f32 100644 --- a/vibrator/1.0/Android.mk +++ b/vibrator/1.0/Android.mk @@ -15,6 +15,8 @@ HIDL := $(HOST_OUT_EXECUTABLES)/hidl-gen$(HOST_EXECUTABLE_SUFFIX) LOCAL_JAVA_LIBRARIES := \ android.hidl.base-V1.0-java \ +LOCAL_NO_STANDARD_LIBRARIES := true +LOCAL_JAVA_LIBRARIES += core-oj hwbinder # # Build types.hal (Effect) @@ -99,100 +101,6 @@ include $(BUILD_JAVA_LIBRARY) ################################################################################ include $(CLEAR_VARS) -LOCAL_MODULE := android.hardware.vibrator-V1.0-java-static -LOCAL_MODULE_CLASS := JAVA_LIBRARIES - -intermediates := $(call local-generated-sources-dir, COMMON) - -HIDL := $(HOST_OUT_EXECUTABLES)/hidl-gen$(HOST_EXECUTABLE_SUFFIX) - -LOCAL_STATIC_JAVA_LIBRARIES := \ - android.hidl.base-V1.0-java-static \ - - -# -# Build types.hal (Effect) -# -GEN := $(intermediates)/android/hardware/vibrator/V1_0/Effect.java -$(GEN): $(HIDL) -$(GEN): PRIVATE_HIDL := $(HIDL) -$(GEN): PRIVATE_DEPS := $(LOCAL_PATH)/types.hal -$(GEN): PRIVATE_OUTPUT_DIR := $(intermediates) -$(GEN): PRIVATE_CUSTOM_TOOL = \ - $(PRIVATE_HIDL) -o $(PRIVATE_OUTPUT_DIR) \ - -Ljava \ - -randroid.hardware:hardware/interfaces \ - -randroid.hidl:system/libhidl/transport \ - android.hardware.vibrator@1.0::types.Effect - -$(GEN): $(LOCAL_PATH)/types.hal - $(transform-generated-source) -LOCAL_GENERATED_SOURCES += $(GEN) - -# -# Build types.hal (EffectStrength) -# -GEN := $(intermediates)/android/hardware/vibrator/V1_0/EffectStrength.java -$(GEN): $(HIDL) -$(GEN): PRIVATE_HIDL := $(HIDL) -$(GEN): PRIVATE_DEPS := $(LOCAL_PATH)/types.hal -$(GEN): PRIVATE_OUTPUT_DIR := $(intermediates) -$(GEN): PRIVATE_CUSTOM_TOOL = \ - $(PRIVATE_HIDL) -o $(PRIVATE_OUTPUT_DIR) \ - -Ljava \ - -randroid.hardware:hardware/interfaces \ - -randroid.hidl:system/libhidl/transport \ - android.hardware.vibrator@1.0::types.EffectStrength - -$(GEN): $(LOCAL_PATH)/types.hal - $(transform-generated-source) -LOCAL_GENERATED_SOURCES += $(GEN) - -# -# Build types.hal (Status) -# -GEN := $(intermediates)/android/hardware/vibrator/V1_0/Status.java -$(GEN): $(HIDL) -$(GEN): PRIVATE_HIDL := $(HIDL) -$(GEN): PRIVATE_DEPS := $(LOCAL_PATH)/types.hal -$(GEN): PRIVATE_OUTPUT_DIR := $(intermediates) -$(GEN): PRIVATE_CUSTOM_TOOL = \ - $(PRIVATE_HIDL) -o $(PRIVATE_OUTPUT_DIR) \ - -Ljava \ - -randroid.hardware:hardware/interfaces \ - -randroid.hidl:system/libhidl/transport \ - android.hardware.vibrator@1.0::types.Status - -$(GEN): $(LOCAL_PATH)/types.hal - $(transform-generated-source) -LOCAL_GENERATED_SOURCES += $(GEN) - -# -# Build IVibrator.hal -# -GEN := $(intermediates)/android/hardware/vibrator/V1_0/IVibrator.java -$(GEN): $(HIDL) -$(GEN): PRIVATE_HIDL := $(HIDL) -$(GEN): PRIVATE_DEPS := $(LOCAL_PATH)/IVibrator.hal -$(GEN): PRIVATE_DEPS += $(LOCAL_PATH)/types.hal -$(GEN): $(LOCAL_PATH)/types.hal -$(GEN): PRIVATE_OUTPUT_DIR := $(intermediates) -$(GEN): PRIVATE_CUSTOM_TOOL = \ - $(PRIVATE_HIDL) -o $(PRIVATE_OUTPUT_DIR) \ - -Ljava \ - -randroid.hardware:hardware/interfaces \ - -randroid.hidl:system/libhidl/transport \ - android.hardware.vibrator@1.0::IVibrator - -$(GEN): $(LOCAL_PATH)/IVibrator.hal - $(transform-generated-source) -LOCAL_GENERATED_SOURCES += $(GEN) -include $(BUILD_STATIC_JAVA_LIBRARY) - - -################################################################################ - -include $(CLEAR_VARS) LOCAL_MODULE := android.hardware.vibrator-V1.0-java-constants LOCAL_MODULE_CLASS := JAVA_LIBRARIES diff --git a/vibrator/1.1/Android.bp b/vibrator/1.1/Android.bp index ee81d83365..a47f37c9a0 100644 --- a/vibrator/1.1/Android.bp +++ b/vibrator/1.1/Android.bp @@ -39,13 +39,16 @@ genrule { ], } -cc_library_shared { +cc_library { name: "android.hardware.vibrator@1.1", defaults: ["hidl-module-defaults"], generated_sources: ["android.hardware.vibrator@1.1_genc++"], generated_headers: ["android.hardware.vibrator@1.1_genc++_headers"], export_generated_headers: ["android.hardware.vibrator@1.1_genc++_headers"], vendor_available: true, + vndk: { + enabled: true, + }, shared_libs: [ "libhidlbase", "libhidltransport", diff --git a/vibrator/1.1/Android.mk b/vibrator/1.1/Android.mk index 2344e9141d..d08f8376d9 100644 --- a/vibrator/1.1/Android.mk +++ b/vibrator/1.1/Android.mk @@ -16,6 +16,8 @@ LOCAL_JAVA_LIBRARIES := \ android.hardware.vibrator-V1.0-java \ android.hidl.base-V1.0-java \ +LOCAL_NO_STANDARD_LIBRARIES := true +LOCAL_JAVA_LIBRARIES += core-oj hwbinder # # Build types.hal (Effect_1_1) @@ -62,63 +64,6 @@ include $(BUILD_JAVA_LIBRARY) ################################################################################ include $(CLEAR_VARS) -LOCAL_MODULE := android.hardware.vibrator-V1.1-java-static -LOCAL_MODULE_CLASS := JAVA_LIBRARIES - -intermediates := $(call local-generated-sources-dir, COMMON) - -HIDL := $(HOST_OUT_EXECUTABLES)/hidl-gen$(HOST_EXECUTABLE_SUFFIX) - -LOCAL_STATIC_JAVA_LIBRARIES := \ - android.hardware.vibrator-V1.0-java-static \ - android.hidl.base-V1.0-java-static \ - - -# -# Build types.hal (Effect_1_1) -# -GEN := $(intermediates)/android/hardware/vibrator/V1_1/Effect_1_1.java -$(GEN): $(HIDL) -$(GEN): PRIVATE_HIDL := $(HIDL) -$(GEN): PRIVATE_DEPS := $(LOCAL_PATH)/types.hal -$(GEN): PRIVATE_OUTPUT_DIR := $(intermediates) -$(GEN): PRIVATE_CUSTOM_TOOL = \ - $(PRIVATE_HIDL) -o $(PRIVATE_OUTPUT_DIR) \ - -Ljava \ - -randroid.hardware:hardware/interfaces \ - -randroid.hidl:system/libhidl/transport \ - android.hardware.vibrator@1.1::types.Effect_1_1 - -$(GEN): $(LOCAL_PATH)/types.hal - $(transform-generated-source) -LOCAL_GENERATED_SOURCES += $(GEN) - -# -# Build IVibrator.hal -# -GEN := $(intermediates)/android/hardware/vibrator/V1_1/IVibrator.java -$(GEN): $(HIDL) -$(GEN): PRIVATE_HIDL := $(HIDL) -$(GEN): PRIVATE_DEPS := $(LOCAL_PATH)/IVibrator.hal -$(GEN): PRIVATE_DEPS += $(LOCAL_PATH)/types.hal -$(GEN): $(LOCAL_PATH)/types.hal -$(GEN): PRIVATE_OUTPUT_DIR := $(intermediates) -$(GEN): PRIVATE_CUSTOM_TOOL = \ - $(PRIVATE_HIDL) -o $(PRIVATE_OUTPUT_DIR) \ - -Ljava \ - -randroid.hardware:hardware/interfaces \ - -randroid.hidl:system/libhidl/transport \ - android.hardware.vibrator@1.1::IVibrator - -$(GEN): $(LOCAL_PATH)/IVibrator.hal - $(transform-generated-source) -LOCAL_GENERATED_SOURCES += $(GEN) -include $(BUILD_STATIC_JAVA_LIBRARY) - - -################################################################################ - -include $(CLEAR_VARS) LOCAL_MODULE := android.hardware.vibrator-V1.1-java-constants LOCAL_MODULE_CLASS := JAVA_LIBRARIES |