diff options
author | Rodrigo Kumpera <kumpera@gmail.com> | 2017-10-28 01:50:22 +0300 |
---|---|---|
committer | Rodrigo Kumpera <kumpera@gmail.com> | 2017-10-28 01:50:22 +0300 |
commit | f871b90d5e473c293eda4e2f521c6ab0a095ca8d (patch) | |
tree | 313a0ca4b420165f50f481ce20a857ef1470806b /sdks/android | |
parent | ac4095a1eab3845dd942bb8d5207491c41b91174 (diff) |
[sdks] Fix Android build.
The generated project.properties file is required by build.xml.
Fix the clean target to work on a clean tree and to remove those generated files.
Diffstat (limited to 'sdks/android')
-rw-r--r-- | sdks/android/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/sdks/android/Makefile b/sdks/android/Makefile index 1c9114aa486..003db368939 100644 --- a/sdks/android/Makefile +++ b/sdks/android/Makefile @@ -8,16 +8,19 @@ NDK_BUILD = $(NDK_DIR)/ndk-build PACKAGE = org.mono.android.AndroidTestRunner ACTIVITY = org.mono.android.AndroidRunner +PROJECT_SETUP_FILES = project.properties local.properties + + .PHONY: all all: setup stage-sdk $(MAKE) -C managed all $(NDK_BUILD) $(ANT) debug -local.properties: +$(PROJECT_SETUP_FILES): build.xml AndroidManifest.xml $(ANDROID) update project -p . -t "android-14" -setup: local.properties +setup: $(PROJECT_SETUP_FILES) jni/armeabi-v7a jni/arm64-v8a jni/x86 jni/x86_64 assets: mkdir -p $@ @@ -42,9 +45,11 @@ assets/mconfig: machine.config assets stage-sdk: $(foreach lib,$(MONO_LIBS),jni/armeabi-v7a/$(lib)) $(foreach lib,$(MONO_LIBS),jni/arm64-v8a/$(lib)) \ $(foreach lib,$(MONO_LIBS),jni/x86/$(lib)) $(foreach lib,$(MONO_LIBS),jni/x86_64/$(lib)) assets/mconfig +#This is hilarious, but we can't clean unless we got the 2 property files around .PHONY: clean -clean: +clean: $(PROJECT_SETUP_FILES) $(ANT) clean + rm $(PROJECT_SETUP_FILES) .PHONY: deploy deploy: all |