Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Finish adding support for building outside the mfa tree

  • Loading branch information...
commit 842564a1668055524c843e8cc5ea4c96fb2b4765 1 parent 1c922f7
Andreia Gaita shana authored
3  Compatibility-v13/bindings/Makefile
View
@@ -1,8 +1,9 @@
MONO_ANDROID_PATH := /Developer/MonoAndroid/usr
+ANDROID_SDK_PATH := /opt/android/sdk
API_LEVELS := 14
BUILDDIR := bin
TOP := ../..
-thisdir := Compatibility-v13/binding
+thisdir := Compatibility-v13/bindings
-include ../../env.config
2  Compatibility-v4/bindings/Makefile
View
@@ -2,7 +2,7 @@ MONO_ANDROID_PATH := /Developer/MonoAndroid/usr
API_LEVELS := 8
BUILDDIR := bin
TOP := ../..
-thisdir := Compatibility-v4/binding
+thisdir := Compatibility-v4/bindings
-include ../../env.config
8 GoogleMaps/bindings/Makefile
View
@@ -2,8 +2,12 @@ MONO_ANDROID_PATH := /Developer/MonoAndroid/usr
ANDROID_SDK_PATH := /opt/android/sdk
API_LEVELS := 8
BUILDDIR := bin
+TOP := ../..
+thisdir := GoogleMaps/bindings
-MCW_GEN := $(MONO_ANDROID_PATH)/bin/mcw-gen
+-include ../../env.config
+
+MCW_GEN := $(MONO_ANDROID_PATH)/bin/mcw-gen
platforms_dir := $(BUILDDIR)/platforms
@@ -39,7 +43,7 @@ $(ASSEMBLIES): $(platforms_dir)/android-%/Mono.Android.GoogleMaps.dll: fieldmap.
-enumfields=fieldmap.xml -enummethods=methodmap.xml -global -v \
-o obj/platform-$* \
-javadoc="$$DOCS" \
- -cscopt -debug+ $(SOURCES:%=-cscopt "%") ; \
+ -cscopt -debug+ $(SOURCES:%=-cscopt "%")
$(DOCS): $(platforms_dir)/android-%/Mono.Android.GoogleMaps.xml: $(platforms_dir)/android-%/Mono.Android.GoogleMaps.dll fieldmap.xml Maps.fixup
$(RM) -R obj/platform-$*/docs
10 Makefile
View
@@ -0,0 +1,10 @@
+SUBDIRS:= Compatibility-v13/bindings Compatibility-v4/bindings GoogleMaps/bindings
+
+SUBDIRS_MAKE= @target=`echo $@ | sed -e 's/-recurse//'` && \
+ for dir in $(SUBDIRS); do \
+ echo "Making $$target in $$dir";\
+ $(MAKE) -C $$dir $$target || exit 1; \
+ done
+
+all:
+ $(SUBDIRS_MAKE)
37 configure
View
@@ -3,19 +3,17 @@ usage()
{
cat <<EOF
Usage:
- --with-mfa-path=PATH default: $(MONO_ANDROID_PATH)
+ --with-mfa-path=PATH Mono for Android directory (default: /Developer/MonoAndroid/usr)
+ --out output directory (default: bin/)
+ --with-android-path Android SDK path (default: /opt/android/sdk)
+ --api-levels Space-separated list of supported api levels (default: 8)
+
EOF
}
-
if [ -z $ANDROID_SDK_PATH ]; then
- echo "----------------------------------------------";
- echo "Cannot find android sdk path.";
- echo "set the ANDROID_SDK_PATH env var";
- echo "----------------------------------------------";
- usage
- exit 1
+ANDROID_SDK_PATH=/opt/android/sdk
fi
echo "Configuring..."
@@ -40,6 +38,7 @@ sh_append()
MONO_ANDROID_PATH="/Developer/MonoAndroid/usr"
BUILDDIR="bin"
+API_LEVELS=8
for arg; do
case "$arg" in
@@ -47,12 +46,31 @@ for arg; do
usage
exit 1
;;
+ --out=*)
+ BUILDDIR=$(echo $arg|sed -e 's,.*=,,')
+ ;;
--with-mfa-path=*)
MONO_ANDROID_PATH=$(echo $arg|sed -e 's,.*=,,')
;;
+ --with-android-path=*)
+ ANDROID_SDK_PATH=$(echo $arg|sed -e 's,.*=,,')
+ ;;
+ --api-levels=*)
+ API_LEVELS=$(echo $arg|sed -e 's,.*=,,')
+ ;;
esac
done
+if [ ! -d $ANDROID_SDK_PATH ]; then
+ echo "----------------------------------------------";
+ echo "Cannot find android sdk path.";
+ echo "set the ANDROID_SDK_PATH env var";
+ echo "----------------------------------------------";
+ usage
+ exit 1
+fi
+
+
rm -f $CNF
rm -f $SH
@@ -60,9 +78,10 @@ cnf_append "ANDROID_SDK_PATH" "$ANDROID_SDK_PATH"
sh_append "ANDROID_SDK_PATH" "$ANDROID_SDK_PATH"
cnf_append "MONO_ANDROID_PATH" "$MONO_ANDROID_PATH"
sh_append "MONO_ANDROID_PATH" "$MONO_ANDROID_PATH"
+cnf_append "API_LEVELS" "$API_LEVELS"
+sh_append "API_LEVELS" "$API_LEVELS"
cnf_append "TOP" "$(pwd)"
sh_append "TOP" "$(pwd)"
-
cnf_append "BUILDDIR" "$(pwd)/$BUILDDIR"
sh_append "BUILDDIR" "$(pwd)/$BUILDDIR"
cat <<EOF
Please sign in to comment.
Something went wrong with that request. Please try again.