зеркало из https://github.com/mozilla/pjs.git
Bug 320988 - Make xulrunner + activex control + mfcembed happy with frozen-only symbols, r=darin
This commit is contained in:
Родитель
652a65f4aa
Коммит
6ad32f3e39
|
@ -93,12 +93,11 @@ CPPSRCS = \
|
|||
WindowCreator.cpp \
|
||||
$(NULL)
|
||||
|
||||
|
||||
EXTRA_DSO_LDOPTS = \
|
||||
$(DIST)/lib/$(LIB_PREFIX)gkgfx.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)embed_base_s.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)ax_common_s.$(LIB_SUFFIX) \
|
||||
$(MOZ_UNICHARUTIL_LIBS) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)xpcomglue_s.$(LIB_SUFFIX) \
|
||||
$(XPCOM_LIBS) \
|
||||
$(NSPR_LIBS) \
|
||||
$(NULL)
|
||||
|
|
|
@ -36,7 +36,6 @@ include $(DEPTH)/config/autoconf.mk
|
|||
|
||||
LIBRARY_NAME = mfcEmbedComponents
|
||||
RESFILE = Dialogs.res
|
||||
MOZILLA_INTERNAL_API = 1
|
||||
|
||||
REQUIRES = \
|
||||
xpcom \
|
||||
|
@ -70,6 +69,7 @@ EXTRA_DSO_LIBS = gkgfx
|
|||
|
||||
EXTRA_DSO_LDOPTS += \
|
||||
$(EXTRA_DSO_LIBS) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)xpcomglue_s.$(LIB_SUFFIX) \
|
||||
$(XPCOM_LIBS) \
|
||||
$(NSPR_LIBS) \
|
||||
$(MOZ_UNICHARUTIL_LIBS) \
|
||||
|
|
|
@ -47,8 +47,6 @@ VPATH = @srcdir@
|
|||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MOZILLA_INTERNAL_API = 1
|
||||
|
||||
DIRS = profile
|
||||
|
||||
PREF_JS_EXPORTS = $(srcdir)/xulrunner.js
|
||||
|
@ -107,6 +105,7 @@ endif
|
|||
LIBS += \
|
||||
$(EXTRA_DSO_LIBS) \
|
||||
$(MOZ_JS_LIBS) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)xpcomglue_s.$(LIB_SUFFIX) \
|
||||
$(XPCOM_LIBS) \
|
||||
$(NSPR_LIBS) \
|
||||
$(TK_LIBS) \
|
||||
|
|
|
@ -38,13 +38,15 @@
|
|||
#include "nsRegisterGRE.h"
|
||||
#include "nsXPCOMGlue.h"
|
||||
|
||||
#include "nsXPCOM.h"
|
||||
#include "nsIFile.h"
|
||||
#include "nsILocalFile.h"
|
||||
|
||||
#include "nsBuildID.h"
|
||||
#include "nsAppRunner.h" // for MAXPATHLEN
|
||||
#include "nsString.h"
|
||||
#include "nsStringAPI.h"
|
||||
#include "nsINIParser.h"
|
||||
#include "nsCOMPtr.h"
|
||||
|
||||
#include "prio.h"
|
||||
#include "prprf.h"
|
||||
|
@ -143,7 +145,7 @@ RegisterXULRunner(PRBool aRegisterGlobally, nsIFile* aLocation,
|
|||
PR_snprintf(root, MAXPATHLEN, "%s/.gre.d", home);
|
||||
}
|
||||
|
||||
nsCAutoString greHome;
|
||||
nsCString greHome;
|
||||
rv = aLocation->GetNativePath(greHome);
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
|
|
|
@ -37,13 +37,15 @@
|
|||
|
||||
#include "nsRegisterGRE.h"
|
||||
|
||||
#include "nsXPCOM.h"
|
||||
#include "nsIFile.h"
|
||||
#include "nsILocalFile.h"
|
||||
|
||||
#include "nsBuildID.h"
|
||||
#include "nsAppRunner.h" // for MAXPATHLEN
|
||||
#include "nsString.h"
|
||||
#include "nsStringAPI.h"
|
||||
#include "nsXPCOMGlue.h"
|
||||
#include "nsCOMPtr.h"
|
||||
|
||||
#include "prio.h"
|
||||
|
||||
|
@ -54,7 +56,7 @@ static const char kRegFileGlobal[] = "global.reginfo";
|
|||
static const char kRegFileUser[] = "user.reginfo";
|
||||
|
||||
static nsresult
|
||||
MakeVersionKey(HKEY root, const char* keyname, const nsCAutoString &grehome,
|
||||
MakeVersionKey(HKEY root, const char* keyname, const nsCString &grehome,
|
||||
const GREProperty *aProperties, PRUint32 aPropertiesLen)
|
||||
{
|
||||
HKEY subkey;
|
||||
|
@ -104,7 +106,7 @@ RegisterXULRunner(PRBool aRegisterGlobally, nsIFile* aLocation,
|
|||
PRBool irv;
|
||||
int i;
|
||||
|
||||
nsCAutoString greHome;
|
||||
nsCString greHome;
|
||||
rv = aLocation->GetNativePath(greHome);
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
|
|
|
@ -50,8 +50,9 @@
|
|||
#include "nsIXULAppInstall.h"
|
||||
#include "nsCOMPtr.h"
|
||||
#include "nsMemory.h"
|
||||
#include "nsNativeCharsetUtils.h"
|
||||
#include "nsBuildID.h"
|
||||
#include "nsStringAPI.h"
|
||||
#include "nsServiceManagerUtils.h"
|
||||
#include "plstr.h"
|
||||
#include "prprf.h"
|
||||
#include "prenv.h"
|
||||
|
@ -172,7 +173,7 @@ static int LoadAppData(const char* appDataFile, nsXREAppData* aResult,
|
|||
// TODO: If these version checks fail, then look for a compatible XULRunner
|
||||
// version on the system, and launch it instead.
|
||||
|
||||
nsCAutoString gkVersion;
|
||||
nsCString gkVersion;
|
||||
rv = parser.GetString("Gecko", "MinVersion", gkVersion);
|
||||
|
||||
if (NS_FAILED(rv) || !CheckMinVersion(gkVersion.get())) {
|
||||
|
@ -310,7 +311,7 @@ InstallXULApp(nsIFile* aXULRunnerDir,
|
|||
{
|
||||
nsCOMPtr<nsILocalFile> appLocation;
|
||||
nsCOMPtr<nsILocalFile> installTo;
|
||||
nsAutoString leafName;
|
||||
nsString leafName;
|
||||
|
||||
nsresult rv = XRE_GetFileFromPath(aAppLocation, getter_AddRefs(appLocation));
|
||||
if (NS_FAILED(rv))
|
||||
|
@ -323,7 +324,8 @@ InstallXULApp(nsIFile* aXULRunnerDir,
|
|||
}
|
||||
|
||||
if (aLeafName)
|
||||
NS_CopyNativeToUnicode(nsDependentCString(aLeafName), leafName);
|
||||
NS_CStringToUTF16(nsDependentCString(aLeafName),
|
||||
NS_CSTRING_ENCODING_NATIVE_FILESYSTEM, leafName);
|
||||
|
||||
rv = NS_InitXPCOM2(nsnull, aXULRunnerDir, nsnull);
|
||||
if (NS_FAILED(rv))
|
||||
|
@ -503,7 +505,7 @@ int main(int argc, char* argv[])
|
|||
PR_SetEnv(kAppEnv);
|
||||
}
|
||||
|
||||
nsCAutoString vendor, name, version, buildID, appID, copyright;
|
||||
nsCString vendor, name, version, buildID, appID, copyright;
|
||||
|
||||
nsXREAppData appData = { sizeof(nsXREAppData), 0 };
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче