The Android Open Source Project | 52d4c30 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 1 | # Copyright 2007 The Android Open Source Project |
| 2 | |
| 3 | # |
| 4 | # Build instructions for simulator LD_PRELOAD wrapper. |
| 5 | # |
| 6 | ifneq ($(TARGET_ARCH),arm) |
| 7 | ifeq ($(TARGET_SIMULATOR),true) |
| 8 | |
| 9 | LOCAL_PATH:= $(call my-dir) |
| 10 | include $(CLEAR_VARS) |
| 11 | |
| 12 | LOCAL_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 Nelissen | 1b2bd1d | 2009-04-30 14:11:03 -0700 | [diff] [blame] | 25 | SimMgr.c \ |
| 26 | SysPower.c |
The Android Open Source Project | 52d4c30 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 27 | |
| 28 | LOCAL_C_INCLUDES += prebuilt/common/esd |
| 29 | |
| 30 | LOCAL_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. |
| 34 | LOCAL_LDLIBS += -lpthread -ldl |
| 35 | |
| 36 | ifeq ($(BUILD_SIM_WITHOUT_AUDIO),true) |
| 37 | LOCAL_CFLAGS += -DBUILD_SIM_WITHOUT_AUDIO=1 |
| 38 | else |
| 39 | LOCAL_LDLIBS += -lesd |
| 40 | endif |
| 41 | |
| 42 | include $(BUILD_SHARED_LIBRARY) |
| 43 | |
| 44 | |
| 45 | |
| 46 | # |
| 47 | # Build instructions for simulator runtime launch wrapper. |
| 48 | # |
| 49 | include $(CLEAR_VARS) |
| 50 | |
| 51 | LOCAL_SRC_FILES := \ |
| 52 | LaunchWrapper.c |
| 53 | |
| 54 | LOCAL_MODULE := launch-wrapper |
| 55 | include $(BUILD_EXECUTABLE) |
| 56 | |
| 57 | endif # ifeq ($(TARGET_SIMULATOR),true) |
| 58 | endif |
| 59 | # ifneq ($(TARGET_ARCH),arm) |