Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9a02eff4c1
Fetching contributors…

Cannot retrieve contributors at this time

59 lines (45 sloc) 2.066 kb
API_LEVELS := 13
BUILDDIR := bin
TOP := ../..
thisdir := Compatibility-v13/bindings
-include ../../env.config
-include $(TOP)/mk/helper.mk
MCW_GEN := $(MONO_ANDROID_PATH)/bin/mcw-gen
platforms_dir := $(BUILDDIR)/platforms
ASSEMBLIES = $(API_LEVELS:%=$(platforms_dir)/android-%/Mono.Android.Support.v13.dll)
DOCS = $(API_LEVELS:%=$(platforms_dir)/android-%/Mono.Android.Support.v13.xml)
JAR = android-support-v13.jar
VPATH = $(ANDROID_SDK_PATH)/extras/android/support/v13/ $(ANDROID_SDK_PATH)/extras/android/compatibility/v13/
all:: $(JARS) $(ASSEMBLIES) $(DOCS)
clean::
$(RM) -r $(ASSEMBLIES) obj
SOURCES = \
$(topdir)/src/Android.Support.V4.Content/CursorLoader.cs \
src/AssemblyInfo.cs
$(ASSEMBLIES): $(platforms_dir)/android-%/Mono.Android.Support.v13.dll: $(JAR) EnumFields.xml EnumMethods.xml Metadata.xml $(SOURCES) $(MCW_GEN)
-mkdir -p $(platforms_dir)/android-$*
-mkdir -p obj/platform-$*
$(MCW_GEN) \
-sdk-dir="$(ANDROID_SDK_PATH)" \
-sdk-platform=$* \
-jar=$< \
-embed \
-dll="$(platforms_dir)/android-$*/Mono.Android.Support.v13.dll" \
-fixup=Metadata.xml \
-enumfields=EnumFields.xml -enummethods=EnumMethods.xml -global -v \
-o obj/platform-$* \
-cscopt -debug+ -cscopt -nowarn:0109,0108 $(SIGNOPTS:%=-cscopt %) \
-droiddoc=../../api-docs/developer.android.com/reference \
$(SOURCES:%=-cscopt "%")
$(DOCS): $(platforms_dir)/android-%/Mono.Android.Support.v13.xml: $(platforms_dir)/android-%/Mono.Android.Support.v13.dll EnumMethods.xml Metadata.xml
$(RM) -R obj/platform-$*/docs
-mkdir -p obj/platform-$*/docs
-cp -R Documentation/en obj/platform-$*/docs
mdoc update -o obj/platform-$*/docs $< -L $(MONO_ANDROID_PATH)/lib/mandroid/platforms/android-$* >/dev/null
mdoc export-msxdoc -o $@ obj/platform-$*/docs >/dev/null
$(MCW_GEN):
@echo "Building bindings requires Mono for Android 4.2 or later."
exit 1
$(JAR):
@echo "Please install \"Extras > Android Support package\" within the \`android\` utility to build Compatibility-v13."
@exit 1
Jump to Line
Something went wrong with that request. Please try again.