blob: 0b7890d23894733b145dbc2691b88298db351634 [file] [log] [blame]
# Copyright 2007 The Android Open Source Project
#
# Build instructions for simulator LD_PRELOAD wrapper.
#
ifneq ($(TARGET_ARCH),arm)
ifeq ($(TARGET_SIMULATOR),true)
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
BitVector.c \
DevAudio.c \
DevConsoleTty.c \
DevEvent.c \
DevFb.c \
DevLog.c \
DevPower.c \
DevVibrator.c \
FakeDev.c \
Init.c \
Intercept.c \
Log.c \
SimMgr.c \
SysPower.c
LOCAL_C_INCLUDES += prebuilt/common/esd
LOCAL_MODULE := libwrapsim
# Relying on other Android libraries is probably a bad idea, since any
# library or system calls they make could lead to recursive behavior.
LOCAL_LDLIBS += -lpthread -ldl
ifeq ($(BUILD_SIM_WITHOUT_AUDIO),true)
LOCAL_CFLAGS += -DBUILD_SIM_WITHOUT_AUDIO=1
else
LOCAL_LDLIBS += -lesd
endif
include $(BUILD_SHARED_LIBRARY)
#
# Build instructions for simulator runtime launch wrapper.
#
include $(CLEAR_VARS)
LOCAL_SRC_FILES := \
LaunchWrapper.c
LOCAL_MODULE := launch-wrapper
include $(BUILD_EXECUTABLE)
endif # ifeq ($(TARGET_SIMULATOR),true)
endif
# ifneq ($(TARGET_ARCH),arm)