Rename conditional flag and remove log spam.

[ Merged from http://go/wvgerrit/149029 ]

Address comment in http://ag/17158449 for
b/217247987, rename BUILD_TARGET with a
unique name. Also remove $(info ...) log spam.

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
Test: ./build_and_run_all_unit_tests -t invalid (default to AIDL)
Bug: 226976702
Change-Id: I1529dfbbbd1b112668ccac22bc684817dcb9ed35
This commit is contained in:
Edwin Wong
2022-03-30 06:03:46 +00:00
parent a9828a7168
commit 2a91e85b91
5 changed files with 13 additions and 21 deletions

View File

@@ -6,13 +6,11 @@ $(call assert-not-null,test_name)
include $(CLEAR_VARS)
BUILD_TARGET?=
ifeq ($(BUILD_TARGET), hidl)
$(info Building '$(test_name)' for HIDL service.)
WV_UNITTESTS_BUILD_TARGET?=
ifeq ($(WV_UNITTESTS_BUILD_TARGET), hidl)
HIDL_EXTENSION := _hidl
LIB_BINDER := libhidlbase
else
$(info Building '$(test_name)' for AIDL service.)
HIDL_EXTENSION :=
LIB_BINDER := libbinder
endif