VirtualBox

Changeset 3372 in vbox for trunk/src/libs/xpcom18a4/xpcom


Ignore:
Timestamp:
Jul 3, 2007 1:05:50 AM (18 years ago)
Author:
vboxsync
Message:

XPCOM: Executable and DLL names may be specified from makefiles, for consistency.

Location:
trunk/src/libs/xpcom18a4/xpcom
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/base/nsDebugImpl.cpp

    r1 r3372  
    3838 * ***** END LICENSE BLOCK ***** */
    3939
     40#include "nsXPCOMPrivate.h"
    4041#include "nsDebugImpl.h"
    4142#include "nsDebug.h"
     
    227228      si.wShowWindow = SW_SHOW;
    228229
    229       if(GetModuleFileName(GetModuleHandle("xpcom.dll"), executable, MAX_PATH) &&
     230      if(GetModuleFileName(GetModuleHandle(XPCOM_DLL), executable, MAX_PATH) &&
    230231         NULL != (pName = strrchr(executable, '\\')) &&
    231232         NULL != strcpy(pName+1, "windbgdlg.exe") &&
  • trunk/src/libs/xpcom18a4/xpcom/build/nsXPCOMPrivate.h

    r1 r3372  
    168168 */
    169169
     170#ifdef XPCOM_DLL_BASE
     171#define XPCOM_DLL         XPCOM_DLL_BASE MOZ_DLL_SUFFIX
     172#endif
     173
    170174#if defined(XP_WIN32) || defined(XP_OS2)
    171175
     
    173177#define GRE_CONF_NAME     "gre.config"
    174178#define GRE_WIN_REG_LOC   "Software\\mozilla.org\\GRE\\"
    175 #define XPCOM_DLL         "xpcom.dll"
     179#ifndef XPCOM_DLL
     180#define XPCOM_DLL         "xpcom"MOZ_DLL_SUFFIX
     181#endif
    176182
    177183#elif defined(XP_BEOS)
     
    180186#define GRE_CONF_NAME ".gre.config"
    181187#define GRE_CONF_PATH "/boot/home/config/settings/GRE/gre.conf"
     188#ifndef XPCOM_DLL
    182189#define XPCOM_DLL "libxpcom"MOZ_DLL_SUFFIX
     190#endif
    183191
    184192#else // Unix
    185193
    186 #define XPCOM_DLL "VBoxXPCOM"MOZ_DLL_SUFFIX
     194#ifndef XPCOM_DLL
     195#define XPCOM_DLL "libxpcom"MOZ_DLL_SUFFIX
     196#endif
    187197
    188198// you have to love apple..
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette