Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 842564a166
Fetching contributors…

Cannot retrieve contributors at this time

59 lines (45 sloc) 2.025 kb
MONO_ANDROID_PATH := /Developer/MonoAndroid/usr
API_LEVELS := 8
BUILDDIR := bin
TOP := ../..
thisdir := Compatibility-v4/bindings
-include ../../env.config
MCW_GEN := $(MONO_ANDROID_PATH)/bin/mcw-gen
platforms_dir := $(BUILDDIR)/platforms
ASSEMBLIES = $(API_LEVELS:%=$(platforms_dir)/android-%/Mono.Android.Compatibility.v4.dll)
DOCS = $(API_LEVELS:%=$(platforms_dir)/android-%/Mono.Android.Compatibility.v4.xml)
JAR = android-support-v4.jar
VPATH = $(ANDROID_SDK_PATH)/extras/android/support/v4/ $(ANDROID_SDK_PATH)/extras/android/compatibility/v4/
all:: $(JARS) $(ASSEMBLIES) $(DOCS)
clean::
$(RM) -r $(ASSEMBLIES) obj
SOURCES = \
$(TOP)/src/Android.Support.V4.Content/CursorLoader.cs \
src/AssemblyInfo.cs
$(ASSEMBLIES): $(platforms_dir)/android-%/Mono.Android.Compatibility.v4.dll: $(JAR) map.csv methodmap.csv metadata $(SOURCES) $(MCW_GEN)
-mkdir -p $(platforms_dir)/android-$*
-mkdir -p obj/platform-$*
$(MCW_GEN) \
-sdk-dir="$(ANDROID_SDK_PATH)" \
-sdk-platform=$* \
-jar=$< \
-dll="$(platforms_dir)/android-$*/Mono.Android.Compatibility.v4.dll" \
-use-variable-csv-format \
-fixup=metadata \
-enumfields=map.csv -enummethods=methodmap.csv -global -v \
-o obj/platform-$* \
-cscopt -debug+ -cscopt -nowarn:0109,0108 \
-droiddoc=developer.android.com/reference \
$(SOURCES:%=-cscopt "%")
$(DOCS): $(platforms_dir)/android-%/Mono.Android.Compatibility.v4.xml: $(platforms_dir)/android-%/Mono.Android.Compatibility.v4.dll map.csv metadata
$(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-$*
mdoc export-msxdoc -o $@ obj/platform-$*/docs
$(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-v4."
@exit 1
Jump to Line
Something went wrong with that request. Please try again.