blob: 0b7890d23894733b145dbc2691b88298db351634 [file] [log] [blame]
The Android Open Source Project52d4c302009-03-03 19:29:09 -08001# Copyright 2007 The Android Open Source Project
2
3#
4# Build instructions for simulator LD_PRELOAD wrapper.
5#
6ifneq ($(TARGET_ARCH),arm)
7ifeq ($(TARGET_SIMULATOR),true)
8
9LOCAL_PATH:= $(call my-dir)
10include $(CLEAR_VARS)
11
12LOCAL_SRC_FILES := \
13 BitVector.c \
14 DevAudio.c \
15 DevConsoleTty.c \
16 DevEvent.c \
17 DevFb.c \
18 DevLog.c \
19 DevPower.c \
20 DevVibrator.c \
21 FakeDev.c \
22 Init.c \
23 Intercept.c \
24 Log.c \
Marco Nelissen1b2bd1d2009-04-30 14:11:03 -070025 SimMgr.c \
26 SysPower.c
The Android Open Source Project52d4c302009-03-03 19:29:09 -080027
28LOCAL_C_INCLUDES += prebuilt/common/esd
29
30LOCAL_MODULE := libwrapsim
31
32# Relying on other Android libraries is probably a bad idea, since any
33# library or system calls they make could lead to recursive behavior.
34LOCAL_LDLIBS += -lpthread -ldl
35
36ifeq ($(BUILD_SIM_WITHOUT_AUDIO),true)
37LOCAL_CFLAGS += -DBUILD_SIM_WITHOUT_AUDIO=1
38else
39LOCAL_LDLIBS += -lesd
40endif
41
42include $(BUILD_SHARED_LIBRARY)
43
44
45
46#
47# Build instructions for simulator runtime launch wrapper.
48#
49include $(CLEAR_VARS)
50
51LOCAL_SRC_FILES := \
52 LaunchWrapper.c
53
54LOCAL_MODULE := launch-wrapper
55include $(BUILD_EXECUTABLE)
56
57endif # ifeq ($(TARGET_SIMULATOR),true)
58endif
59# ifneq ($(TARGET_ARCH),arm)