зеркало из https://github.com/mozilla/pjs.git
Removed the XPTDIR environment variable requirement; the xpt typelib directory is now constructed by adding 'components' to the executable directory. This adds an -lraptorbase requirement to linking against xptinfo.
This commit is contained in:
Родитель
d6d13a6c37
Коммит
ab6924a6b7
|
@ -46,6 +46,7 @@ LIBS = \
|
|||
-lxptcall \
|
||||
-lxptcmd \
|
||||
-lreg \
|
||||
-lraptorbase \
|
||||
-l$(MOZ_LIB_UTIL_PREFIX)util \
|
||||
$(NSPR_LIBS) \
|
||||
$(NULL)
|
||||
|
|
|
@ -41,6 +41,7 @@ LIBS = \
|
|||
-lxptcmd \
|
||||
-lxptinfo \
|
||||
-lreg \
|
||||
-lraptorbase \
|
||||
-l$(MOZ_LIB_UTIL_PREFIX)util \
|
||||
$(NSPR_LIBS) \
|
||||
$(NULL)
|
||||
|
|
|
@ -25,6 +25,8 @@
|
|||
#endif
|
||||
#include "nscore.h"
|
||||
|
||||
#include "nsSpecialSystemDirectory.h"
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsIInterfaceInfoManager.h"
|
||||
#include "nsIInterfaceInfo.h"
|
||||
|
@ -307,8 +309,21 @@ nsInterfaceInfoManager::initInterfaceTables()
|
|||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
// this code stolen from SetupRegistry; it might bear further
|
||||
// examination, as the code there doesn't look quite done.
|
||||
nsSpecialSystemDirectory
|
||||
sysdir(nsSpecialSystemDirectory::OS_CurrentProcessDirectory);
|
||||
sysdir += "components";
|
||||
const char *xptdirname = sysdir.GetCString(); // native path
|
||||
if (xptdirname != NULL) {
|
||||
fprintf(stderr, "nsInterfaceInfoManager: Using xpt dir: %s\n", xptdirname);
|
||||
}
|
||||
|
||||
#if 0
|
||||
// First, find the xpt directory from the env. XXX Temporary hack.
|
||||
char *xptdirname = PR_GetEnv("XPTDIR");
|
||||
#endif
|
||||
|
||||
PRDir *xptdir;
|
||||
if (xptdirname == NULL || (xptdir = PR_OpenDir(xptdirname)) == NULL)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
|
|
@ -37,6 +37,7 @@ LIBS = \
|
|||
-lxpt \
|
||||
-lxpcom \
|
||||
-lreg \
|
||||
-lraptorbase \
|
||||
$(NSPR_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
|
|
|
@ -41,6 +41,7 @@ LIBS = \
|
|||
-lxptcmd \
|
||||
-lxptinfo \
|
||||
-lreg \
|
||||
-lraptorbase \
|
||||
-l$(MOZ_LIB_UTIL_PREFIX)util \
|
||||
$(NSPR_LIBS) \
|
||||
$(NULL)
|
||||
|
|
|
@ -25,6 +25,8 @@
|
|||
#endif
|
||||
#include "nscore.h"
|
||||
|
||||
#include "nsSpecialSystemDirectory.h"
|
||||
|
||||
#include "nsISupports.h"
|
||||
#include "nsIInterfaceInfoManager.h"
|
||||
#include "nsIInterfaceInfo.h"
|
||||
|
@ -307,8 +309,21 @@ nsInterfaceInfoManager::initInterfaceTables()
|
|||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
// this code stolen from SetupRegistry; it might bear further
|
||||
// examination, as the code there doesn't look quite done.
|
||||
nsSpecialSystemDirectory
|
||||
sysdir(nsSpecialSystemDirectory::OS_CurrentProcessDirectory);
|
||||
sysdir += "components";
|
||||
const char *xptdirname = sysdir.GetCString(); // native path
|
||||
if (xptdirname != NULL) {
|
||||
fprintf(stderr, "nsInterfaceInfoManager: Using xpt dir: %s\n", xptdirname);
|
||||
}
|
||||
|
||||
#if 0
|
||||
// First, find the xpt directory from the env. XXX Temporary hack.
|
||||
char *xptdirname = PR_GetEnv("XPTDIR");
|
||||
#endif
|
||||
|
||||
PRDir *xptdir;
|
||||
if (xptdirname == NULL || (xptdir = PR_OpenDir(xptdirname)) == NULL)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
|
|
@ -37,6 +37,7 @@ LIBS = \
|
|||
-lxpt \
|
||||
-lxpcom \
|
||||
-lreg \
|
||||
-lraptorbase \
|
||||
$(NSPR_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче