Makefile change for build against historical sdk versions.

If LOCAL_SDK_VERSION is current, link against the stub, otherwise
link against prebuilt historical sdk
This commit is contained in:
Ying Wang
2010-01-25 09:56:41 -08:00
parent 3b2bdf1033
commit e3265fb743
2 changed files with 26 additions and 3 deletions

View File

@@ -20,7 +20,11 @@ ifneq ($(LOCAL_SDK_VERSION),)
$(error $(LOCAL_PATH): Invalid LOCAL_SDK_VERSION '$(LOCAL_SDK_VERSION)' \
Choices are: $(TARGET_AVAILABLE_SDK_VERSIONS))
else
LOCAL_JAVA_LIBRARIES := android_stubs_$(LOCAL_SDK_VERSION) $(LOCAL_JAVA_LIBRARIES)
ifeq ($(LOCAL_SDK_VERSION),current)
LOCAL_JAVA_LIBRARIES := android_stubs_$(LOCAL_SDK_VERSION) $(LOCAL_JAVA_LIBRARIES)
else
LOCAL_JAVA_LIBRARIES := sdk_v$(LOCAL_SDK_VERSION) $(LOCAL_JAVA_LIBRARIES)
endif
endif
endif
else