blob: 7c2cbf211872fe32ce98d79ac7141c38659a5790 [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#
The Android Open Source Project52d4c302009-03-03 19:29:09 -08006ifeq ($(TARGET_SIMULATOR),true)
7
8LOCAL_PATH:= $(call my-dir)
9include $(CLEAR_VARS)
10
11LOCAL_SRC_FILES := \
12 BitVector.c \
13 DevAudio.c \
14 DevConsoleTty.c \
15 DevEvent.c \
16 DevFb.c \
17 DevLog.c \
18 DevPower.c \
19 DevVibrator.c \
20 FakeDev.c \
21 Init.c \
22 Intercept.c \
23 Log.c \
The Android Open Source Project700ccfc2009-03-18 22:20:25 -070024 SimMgr.c \
Marco Nelissen542e4f12009-07-08 12:49:42 -070025 SysPower.c \
26 Util.c
The Android Open Source Project52d4c302009-03-03 19:29:09 -080027
The Android Open Source Project52d4c302009-03-03 19:29:09 -080028LOCAL_MODULE := libwrapsim
29
30# Relying on other Android libraries is probably a bad idea, since any
31# library or system calls they make could lead to recursive behavior.
32LOCAL_LDLIBS += -lpthread -ldl
33
34ifeq ($(BUILD_SIM_WITHOUT_AUDIO),true)
35LOCAL_CFLAGS += -DBUILD_SIM_WITHOUT_AUDIO=1
36else
Marco Nelissenbd642f32009-12-04 15:50:25 -080037LOCAL_LDLIBS += -lasound
The Android Open Source Project52d4c302009-03-03 19:29:09 -080038endif
39
40include $(BUILD_SHARED_LIBRARY)
41
42
43
44#
45# Build instructions for simulator runtime launch wrapper.
46#
47include $(CLEAR_VARS)
48
49LOCAL_SRC_FILES := \
50 LaunchWrapper.c
51
52LOCAL_MODULE := launch-wrapper
53include $(BUILD_EXECUTABLE)
54
55endif # ifeq ($(TARGET_SIMULATOR),true)