Add Support to Native Code in Android Libraries
in
Android Processing
•
1 year ago
Hello There
I'm trying to create a PureData Library to use inside Android
i have some problems trying to add the native code .so files to the sketch
the current build process don't copy the .so files to the libs directory of the Android Project
I put the .so files inside the library directory under
armeabi armeabi-v7a x86 directories
i have to modify the AndroidBuild.java file to copy this files inside the Android Project in the Build Process
i now everything works fine
I submit a Issue at
http://code.google.com/p/processing/issues/detail?id=1117
Maybe this change can be added to the next version of Processing for Android
thanks
marlonj
Diff : AndroidBuild.java
File : AndroidBuild.java 685a686 > 695,696c696,703 < Base.copyDir(exportFile, new File(assetsFolder, exportName)); < --- > // Check inf the directory is a native library and copy the directory to libs > if(exportName.equals("armeabi") || exportName.equals("armeabi-v7a") || exportName.equals("x86")) { > Base.copyDir(exportFile, new File(libsFolder, exportName)); > } > else { > // Copy any other directory to the assets folder > Base.copyDir(exportFile, new File(assetsFolder, exportName)); > } 790c797 < } \ No newline at end of file --- > }
1