Fix building individual applet

This commit is contained in:
topjohnwu
2022-08-27 05:06:28 -07:00
parent 357d913f18
commit d1d26f4481
5 changed files with 24 additions and 26 deletions

View File

@@ -150,29 +150,14 @@ LOCAL_STATIC_LIBRARIES := \
LOCAL_SRC_FILES := \
core/applet_stub.cpp \
resetprop/persist_properties.cpp \
resetprop/resetprop.cpp \
resetprop/persist.cpp \
LOCAL_CFLAGS := -DAPPLET_STUB_MAIN=resetprop_main
include $(BUILD_EXECUTABLE)
endif
ifdef B_TEST
ifneq (,$(wildcard src/test.cpp))
include $(CLEAR_VARS)
LOCAL_MODULE := test
LOCAL_STATIC_LIBRARIES := \
libbase \
libphmap
LOCAL_SRC_FILES := test.cpp
include $(BUILD_EXECUTABLE)
endif
endif
########################
# Libraries
########################