Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Köplinger <alex.koeplinger@outlook.com>2019-05-28 19:53:39 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2019-05-28 19:57:46 +0300
commit4b1e9da414d9baf9c8daadb8654d306256c6a642 (patch)
treeb803d3c15963020f535e08ad64ea79c0acf6b977 /sdks/builds
parent07c58ee2ed3ad38a2dc8936737fed1416b7a5f51 (diff)
[sdks] Add linker sources to android sdks archive (#14686)
(cherry picked from commit c96878fb16892af0bab18af494477c613e3da081)
Diffstat (limited to 'sdks/builds')
-rw-r--r--sdks/builds/android.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/sdks/builds/android.mk b/sdks/builds/android.mk
index 285a9b480a3..fcf79b82de7 100644
--- a/sdks/builds/android.mk
+++ b/sdks/builds/android.mk
@@ -6,6 +6,11 @@ ANDROID_SDK_PREFIX?=$(ANDROID_TOOLCHAIN_DIR)/sdk
ANDROID_TOOLCHAIN_PREFIX?=$(ANDROID_TOOLCHAIN_DIR)/toolchains
ANDROID_NEW_NDK=$(shell if test `grep 'Pkg\.Revision' $(ANDROID_TOOLCHAIN_DIR)/ndk/source.properties | cut -d '=' -f 2 | tr -d ' ' | cut -d '.' -f 1` -ge 18; then echo yes; else echo no; fi)
+android_SOURCES_DIR = $(TOP)/sdks/out/android-sources
+
+android_ARCHIVE += android-sources
+ADDITIONAL_PACKAGE_DEPS += $(android_SOURCES_DIR)
+
##
# Parameters:
# $(1): target
@@ -469,3 +474,9 @@ _bcl_android_BUILD_FLAGS += \
endif
$(eval $(call BclTemplate,android,monodroid monodroid_tools,monodroid monodroid_tools))
+
+$(android_SOURCES_DIR)/external/linker/README.md: # we use this as a sentinel file to avoid rsyncing everything on each build (slows down iterating)
+ mkdir -p $(android_SOURCES_DIR)/external/linker
+ cd $(TOP) && rsync -r --include='*.cs' --include="README.md" --include="*/" --exclude="*" external/linker $(android_SOURCES_DIR)/external
+
+$(android_SOURCES_DIR): $(android_SOURCES_DIR)/external/linker/README.md