blob: f8b37a812d08a4b0075a3624afdd4e3c1b4c9327 [file] [log] [blame]
ifneq ($(TARGET_SIMULATOR),true)
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES:= dumpstate.c utils.c
LOCAL_MODULE:= dumpstate
LOCAL_SHARED_LIBRARIES := libcutils
include $(BUILD_EXECUTABLE)
COMMANDS = dumpcrash
SYMLINKS := $(addprefix $(TARGET_OUT_EXECUTABLES)/,$(COMMANDS))
$(SYMLINKS): DUMPSTATE_BINARY := dumpstate
$(SYMLINKS): $(LOCAL_INSTALLED_MODULE) $(LOCAL_PATH)/Android.mk
@echo "Symlink: $@ -> $(DUMPSTATE_BINARY)"
@mkdir -p $(dir $@)
@rm -rf $@
$(hide) ln -sf $(DUMPSTATE_BINARY) $@
ALL_DEFAULT_INSTALLED_MODULES += $(SYMLINKS)
endif