Skip to content

Instantly share code, notes, and snippets.

@lewurm
Created April 16, 2019 11:54
Show Gist options
  • Save lewurm/b26aed7a34c14e745df377257ae279fb to your computer and use it in GitHub Desktop.
Save lewurm/b26aed7a34c14e745df377257ae279fb to your computer and use it in GitHub Desktop.
commit 36e68c6ccb7349a1298fb7551e5da0581fbf1a40
Author: Bernhard Urban <lewurm@gmail.com>
Date: Tue Apr 16 13:54:25 2019 +0200
[android sdk] package wrap.sh
diff --git a/sdks/android/Makefile b/sdks/android/Makefile
index dfecc7e4ab9..6894224d171 100644
--- a/sdks/android/Makefile
+++ b/sdks/android/Makefile
@@ -118,8 +118,14 @@ app/src/main/jniLibs/$(1):
$$(patsubst %,app/src/main/jniLibs/$(1)/%,$$(MONO_LIBS)): app/src/main/jniLibs/$(1)/%: $$(TOP)/sdks/out/android-$(1)-$$(CONFIGURATION)/lib/% | app/src/main/jniLibs/$(1)
cp $$< $$@
+app/wrapsh/lib/$(1):
+ mkdir -p $$@
+
+app/wrapsh/lib/$(1)/wrap.sh: wrap.sh | app/wrapsh/lib/$(1)
+ cp $$< $$@
+
.PHONY: package
-package: $$(patsubst %,app/src/main/jniLibs/$(1)/%,$$(MONO_LIBS))
+package: $$(patsubst %,app/src/main/jniLibs/$(1)/%,$$(MONO_LIBS)) app/wrapsh/lib/$(1)/wrap.sh
endef
$(eval $(call RuntimeTemplate,armeabi-v7a))
diff --git a/sdks/android/app/build.gradle b/sdks/android/app/build.gradle
index 86b1d25164b..bbe034cab4e 100644
--- a/sdks/android/app/build.gradle
+++ b/sdks/android/app/build.gradle
@@ -29,6 +29,13 @@ android {
main {
assets.srcDirs = ['assets']
}
+ debug {
+ resources {
+ srcDir {
+ "wrapsh"
+ }
+ }
+ }
}
externalNativeBuild {
cmake {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment