1 LOCAL_PATH:= $(call my-dir) 2 3 include $(CLEAR_VARS) 4 5 LOCAL_PREBUILT_LIBS := \ 6 AdbWinApi.a 7 8 LOCAL_PREBUILT_EXECUTABLES := \ 9 AdbWinApi.dll \ 10 AdbWinUsbApi.dll 11 12 .PHONY : kill-adb 13 14 $(LOCAL_PATH)/AdbWinApi.dll : kill-adb 15 16 kill-adb: 17 @echo "Killing adb server so we can replace AdbWinApi.dll" 18 @adb kill-server || echo "adb appears to be missing" 19 20 # generate AdbWinApi stub library 21 #$(LOCAL_PATH)/AdbWinApi.a: $(LOCAL_PATH)/AdbWinApi.def 22 # dlltool --def $(LOCAL_PATH)/AdbWinApi.def --dllname AdbWinApi.dll --output-lib $(LOCAL_PATH)/AdbWinApi.a 23 24 include $(BUILD_HOST_PREBUILT) 25