зеркало из https://github.com/mozilla/gecko-dev.git
Bug 316090 - GREImpl.loadDependentLibraries hardcodes the list, and turn javaxpcom on by default for XULRunner, patch by jhpedemonte and myself with co-review
Original committer: bsmedberg%covad.net Original revision: 1.2 Original date: 2005/12/15 14:17:18
This commit is contained in:
Родитель
37fa38a2f5
Коммит
51ad1103e1
|
@ -45,35 +45,14 @@ public class GREImpl implements IGRE {
|
|||
|
||||
public void initEmbedding(File aLibXULDirectory, File aAppDirectory,
|
||||
IAppFileLocProvider aAppDirProvider) {
|
||||
loadDependentLibraries(aLibXULDirectory);
|
||||
initEmbeddingNative(aLibXULDirectory, aAppDirectory, aAppDirProvider);
|
||||
}
|
||||
|
||||
private void loadDependentLibraries(File binPath) {
|
||||
// load JNI library
|
||||
String path = "";
|
||||
if (binPath != null) {
|
||||
path = binPath + File.separator;
|
||||
if (aLibXULDirectory != null) {
|
||||
path = aLibXULDirectory + File.separator;
|
||||
}
|
||||
System.load(path + System.mapLibraryName("javaxpcomglue"));
|
||||
|
||||
System.load(path + System.mapLibraryName("nspr4"));
|
||||
System.load(path + System.mapLibraryName("plds4"));
|
||||
System.load(path + System.mapLibraryName("plc4"));
|
||||
try {
|
||||
/* try loading Win32 DLL */
|
||||
System.load(path + System.mapLibraryName("js3250"));
|
||||
} catch (UnsatisfiedLinkError e) { }
|
||||
try {
|
||||
/* try loading Linux DLL */
|
||||
System.load(path + System.mapLibraryName("mozjs"));
|
||||
} catch (UnsatisfiedLinkError e) { }
|
||||
System.load(path + System.mapLibraryName("softokn3"));
|
||||
System.load(path + System.mapLibraryName("nss3"));
|
||||
System.load(path + System.mapLibraryName("smime3"));
|
||||
System.load(path + System.mapLibraryName("ssl3"));
|
||||
System.load(path + System.mapLibraryName("xul"));
|
||||
System.load(path + System.mapLibraryName("xpcom"));
|
||||
|
||||
System.load(path + System.mapLibraryName("javaxpcom"));
|
||||
initEmbeddingNative(aLibXULDirectory, aAppDirectory, aAppDirProvider);
|
||||
}
|
||||
|
||||
public native void initEmbeddingNative(File aLibXULDirectory,
|
||||
|
|
Загрузка…
Ссылка в новой задаче