Home | History | Annotate | Download | only in wrapsim
      1 # Copyright 2007 The Android Open Source Project
      2 
      3 #
      4 # Build instructions for simulator LD_PRELOAD wrapper.
      5 #
      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 \
     24 	SimMgr.c \
     25 	SysPower.c \
     26 	Util.c
     27 
     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
     37 LOCAL_LDLIBS += -lasound
     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)
     56