Native libraries loading
This commit is contained in:
parent
e6bb14dba1
commit
c239a76a50
2 changed files with 10 additions and 17 deletions
|
@ -1,5 +1,6 @@
|
||||||
OSMAND_MAKEFILES := \
|
OSMAND_MAKEFILES := \
|
||||||
$(all-subdir-makefiles) \
|
$(all-subdir-makefiles) \
|
||||||
|
$(call my-dir)/../../../jni/Android.mk \
|
||||||
$(call my-dir)/../../../core/Android.mk \
|
$(call my-dir)/../../../core/Android.mk \
|
||||||
$(call all-makefiles-under,$(call my-dir)/../../../core/externals)
|
$(call all-makefiles-under,$(call my-dir)/../../../core/externals)
|
||||||
|
|
||||||
|
|
|
@ -41,23 +41,15 @@ public class NativeOsmandLibrary extends NativeLibrary {
|
||||||
log.debug("Loading jnigraphics, since Android >= 2.2 ..."); //$NON-NLS-1$
|
log.debug("Loading jnigraphics, since Android >= 2.2 ..."); //$NON-NLS-1$
|
||||||
System.loadLibrary("jnigraphics");
|
System.loadLibrary("jnigraphics");
|
||||||
}
|
}
|
||||||
if(!cpuHasNeonSupport()) {
|
final String libCpuSuffix = cpuHasNeonSupport() ? "_neon" : "";
|
||||||
log.debug("Loading native osmand..."); //$NON-NLS-1$
|
log.debug("Loading native libraries..."); //$NON-NLS-1$
|
||||||
System.loadLibrary("Qt5Core");
|
System.loadLibrary("Qt5Core" + libCpuSuffix);
|
||||||
System.loadLibrary("Qt5Network");
|
System.loadLibrary("Qt5Network" + libCpuSuffix);
|
||||||
System.loadLibrary("Qt5Concurrent");
|
System.loadLibrary("Qt5Concurrent" + libCpuSuffix);
|
||||||
System.loadLibrary("Qt5Sql");
|
System.loadLibrary("Qt5Sql" + libCpuSuffix);
|
||||||
System.loadLibrary("Qt5Xml");
|
System.loadLibrary("Qt5Xml" + libCpuSuffix);
|
||||||
System.loadLibrary("osmand");
|
System.loadLibrary("OsmAndCore" + libCpuSuffix);
|
||||||
} else {
|
System.loadLibrary("OsmAndJNI" + libCpuSuffix);
|
||||||
log.debug("Loading native osmand with NEON..."); //$NON-NLS-1$
|
|
||||||
System.loadLibrary("Qt5Core_neon");
|
|
||||||
System.loadLibrary("Qt5Network_neon");
|
|
||||||
System.loadLibrary("Qt5Concurrent_neon");
|
|
||||||
System.loadLibrary("Qt5Sql_neon");
|
|
||||||
System.loadLibrary("Qt5Xml_neon");
|
|
||||||
System.loadLibrary("osmand_neon");
|
|
||||||
}
|
|
||||||
log.debug("Creating NativeOsmandLibrary instance..."); //$NON-NLS-1$
|
log.debug("Creating NativeOsmandLibrary instance..."); //$NON-NLS-1$
|
||||||
library = new NativeOsmandLibrary();
|
library = new NativeOsmandLibrary();
|
||||||
log.debug("Initializing rendering rules storage..."); //$NON-NLS-1$
|
log.debug("Initializing rendering rules storage..."); //$NON-NLS-1$
|
||||||
|
|
Loading…
Reference in a new issue