blob: f61d7ecb3f5a3620277b2a0cddd6ce2d7ec9d640 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
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 bugreport
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
|