wineandroid: Allow putting libraries in the native library directory.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9065fd2597
commit
0a2aac8dca
|
@ -88,7 +88,7 @@ private void loadWine( String cmdline )
|
|||
HashMap<String,String> env = new HashMap<String,String>();
|
||||
env.put( "WINELOADER", loader.toString() );
|
||||
env.put( "WINEPREFIX", prefix.toString() );
|
||||
env.put( "LD_LIBRARY_PATH", libdir.toString() );
|
||||
env.put( "LD_LIBRARY_PATH", libdir.toString() + ":" + getApplicationInfo().nativeLibraryDir );
|
||||
env.put( "LC_ALL", locale );
|
||||
env.put( "LANG", locale );
|
||||
|
||||
|
@ -111,7 +111,14 @@ private void loadWine( String cmdline )
|
|||
|
||||
createProgressDialog( 0, "Setting up the Windows environment..." );
|
||||
|
||||
try
|
||||
{
|
||||
System.loadLibrary( "wine" );
|
||||
}
|
||||
catch (java.lang.UnsatisfiedLinkError e)
|
||||
{
|
||||
System.load( libdir.toString() + "/libwine.so" );
|
||||
}
|
||||
prefix.mkdirs();
|
||||
|
||||
runWine( cmdline, env );
|
||||
|
|
|
@ -74,6 +74,7 @@ android
|
|||
{
|
||||
main.assets.srcDirs = [ "assets" ]
|
||||
main.java.srcDirs = [ "@srcdir@" ]
|
||||
main.jniLibs.srcDirs = [ "lib" ]
|
||||
main.java.excludes = [ "build" ]
|
||||
main.res.srcDirs = [ "res" ]
|
||||
main.manifest.srcFile "@srcdir@/AndroidManifest.xml"
|
||||
|
|
Loading…
Reference in New Issue