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 | # |
The Android Open Source Project | 52d4c30 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 6 | ifeq ($(TARGET_SIMULATOR),true) |
| 7 | |
| 8 | LOCAL_PATH:= $(call my-dir) |
| 9 | include $(CLEAR_VARS) |
| 10 | |
| 11 | LOCAL_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 Project | 700ccfc | 2009-03-18 22:20:25 -0700 | [diff] [blame] | 24 | SimMgr.c \ |
Marco Nelissen | 542e4f1 | 2009-07-08 12:49:42 -0700 | [diff] [blame] | 25 | SysPower.c \ |
| 26 | Util.c |
The Android Open Source Project | 52d4c30 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 27 | |
The Android Open Source Project | 52d4c30 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 28 | LOCAL_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. |
| 32 | LOCAL_LDLIBS += -lpthread -ldl |
| 33 | |
| 34 | ifeq ($(BUILD_SIM_WITHOUT_AUDIO),true) |
| 35 | LOCAL_CFLAGS += -DBUILD_SIM_WITHOUT_AUDIO=1 |
| 36 | else |
Marco Nelissen | bd642f3 | 2009-12-04 15:50:25 -0800 | [diff] [blame] | 37 | LOCAL_LDLIBS += -lasound |
The Android Open Source Project | 52d4c30 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 38 | endif |
| 39 | |
| 40 | include $(BUILD_SHARED_LIBRARY) |
| 41 | |
| 42 | |
| 43 | |
| 44 | # |
| 45 | # Build instructions for simulator runtime launch wrapper. |
| 46 | # |
| 47 | include $(CLEAR_VARS) |
| 48 | |
| 49 | LOCAL_SRC_FILES := \ |
| 50 | LaunchWrapper.c |
| 51 | |
| 52 | LOCAL_MODULE := launch-wrapper |
| 53 | include $(BUILD_EXECUTABLE) |
| 54 | |
| 55 | endif # ifeq ($(TARGET_SIMULATOR),true) |