• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2007 The Android Open Source Project
2
3#
4# Build instructions for simulator LD_PRELOAD wrapper.
5#
6ifeq ($(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 \
24	SimMgr.c \
25	SysPower.c \
26	Util.c
27
28LOCAL_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
37LOCAL_LDLIBS += -lasound
38endif
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)
56