src+build: Create gradle task to copy ndn-cxx headers to right places
This commit removes dependency on symbolic link, which creates problems
when compiling code on Windows platform.
Change-Id: I11c86ff1d3e5c94b5b7fcefbba43284703dc385d
diff --git a/app/build.gradle b/app/build.gradle
index 5c1b90b..b37327a 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -69,8 +69,16 @@
}
}
+ task copyNdnCxxHeaders(type: Copy) {
+ from('src/main/jni/ndn-cxx/src') {
+ include '**/*.hpp'
+ }
+ into 'build/generated/source/include/ndn-cxx'
+ }
+
// call regular ndk-build(.cmd) script from app directory
task ndkBuild(type: Exec) {
+ dependsOn copyNdnCxxHeaders
def args = [getNdkBuildCmd(), '-C', file('src/main').absolutePath]
if (System.env.NDK_BUILD_PARALLEL != null) {