Build both AIDL and HIDL targets.
Merged from http://go/wvgerrit/147689 The default is to build for AIDL Widevine service. Use "-t hidl" in build_and_run_all_unit_tests.sh or build_all_unit_tests.sh to build for HIDL service. Test: ./build_all_unit_tests -t hidl Test: ./build_and_run_all_unit_tests -t hidl Test: ./build_all_unit_tests Test: ./build_and_run_all_unit_tests Bug: 217247987 Change-Id: Ie7c51033f4aba341c829ccc8f846a6cfeab76df3
This commit is contained in:
@@ -6,6 +6,17 @@ $(call assert-not-null,test_name)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
BUILD_TARGET?=
|
||||
ifeq ($(BUILD_TARGET), hidl)
|
||||
$(info Building '$(test_name)' for HIDL service.)
|
||||
HIDL_EXTENSION := _hidl
|
||||
LIB_BINDER := libhidlbase
|
||||
else
|
||||
$(info Building '$(test_name)' for AIDL service.)
|
||||
HIDL_EXTENSION :=
|
||||
LIB_BINDER := libbinder
|
||||
endif
|
||||
|
||||
LOCAL_MODULE := $(test_name)
|
||||
LOCAL_LICENSE_KINDS := legacy_by_exception_only
|
||||
LOCAL_LICENSE_CONDITIONS := by_exception_only
|
||||
@@ -42,7 +53,7 @@ LOCAL_C_INCLUDES += external/protobuf/src
|
||||
LOCAL_STATIC_LIBRARIES := \
|
||||
libcdm \
|
||||
libcdm_protos \
|
||||
libcdm_utils_hidl \
|
||||
libcdm_utils$(HIDL_EXTENSION) \
|
||||
libjsmn \
|
||||
libgmock \
|
||||
libgtest \
|
||||
@@ -54,6 +65,7 @@ LOCAL_SHARED_LIBRARIES := \
|
||||
libcrypto \
|
||||
libdl \
|
||||
libhidlbase \
|
||||
$(LIB_BINDER) \
|
||||
liblog \
|
||||
libmedia_omx \
|
||||
libprotobuf-cpp-lite \
|
||||
|
||||
Reference in New Issue
Block a user