Skip to content
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.

Commit

Permalink
[GoogleMaps] Add support for "any" API level.
Browse files Browse the repository at this point in the history
The "any" API level needs to be mapped to the $(API_ANY_LEVEL) level,
as it's not a Google-defined Android API level.
  • Loading branch information
jonpryor committed Apr 4, 2012
1 parent cf02a59 commit 0419ac5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions GoogleMaps/bindings/Makefile
Expand Up @@ -13,7 +13,7 @@ platforms_dir := $(BUILDDIR)/platforms

ASSEMBLIES = $(API_LEVELS:%=$(platforms_dir)/android-%/Mono.Android.GoogleMaps.dll)
DOCS = $(API_LEVELS:%=$(platforms_dir)/android-%/Mono.Android.GoogleMaps.xml)
JARS = $(API_LEVELS:%=$(ANDROID_SDK_PATH)/add-ons/addon-google_apis-google_inc_-%/libs/maps.jar)
JARS = $(patsubst %,$(ANDROID_SDK_PATH)/add-ons/addon-google_apis-google_inc_-%/libs/maps.jar,$(filter-out any,$(API_LEVELS)))

all:: $(JARS) $(ASSEMBLIES) $(DOCS)

Expand All @@ -29,15 +29,17 @@ SOURCES = \
$(ASSEMBLIES): $(platforms_dir)/android-%/Mono.Android.GoogleMaps.dll: fieldmap.xml methodmap.xml Maps.fixup $(SOURCES) $(MCW_GEN)
-mkdir -p $(platforms_dir)/android-$*
-mkdir -p obj/platform-$*
if [ 15 -eq "$*" ]; then \
if [ "any" = "$*" ]; then \
DOCS="$(ANDROID_SDK_PATH)/add-ons/addon-google_apis-google_inc_-$(API_ANY_LEVEL)/docs/maps_apis"; \
elif [ "$*" -ge "15" ]; then \
DOCS="$(ANDROID_SDK_PATH)/add-ons/addon-google_apis-google_inc_-$*/docs/maps_apis"; \
else \
DOCS="$(ANDROID_SDK_PATH)/add-ons/addon-google_apis-google_inc_-$*/docs/reference"; \
fi; \
$(MCW_GEN) \
-sdk-dir="$(ANDROID_SDK_PATH)" \
-sdk-platform=$* \
-jar=$(ANDROID_SDK_PATH)/add-ons/addon-google_apis-google_inc_-$*/libs/maps.jar \
-jar=$(ANDROID_SDK_PATH)/add-ons/addon-google_apis-google_inc_-$(if $(findstring any,$*),$(API_ANY_LEVEL),$*)/libs/maps.jar \
-dll="$(platforms_dir)/android-$*/Mono.Android.GoogleMaps.dll" \
-fixup=Maps.fixup \
-enumfields=fieldmap.xml -enummethods=methodmap.xml -global -v \
Expand Down

0 comments on commit 0419ac5

Please sign in to comment.