mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 18:27:35 +00:00
Add BUILD_PROFILE to more profile code
This commit is contained in:
parent
1f3852a7e5
commit
bf6cbf4f1b
@ -60,7 +60,9 @@ LINCS= \
|
||||
-I$(PUBLIC)\java \
|
||||
-I$(PUBLIC)\plugin \
|
||||
-I$(PUBLIC)\pref \
|
||||
!ifdef BUILD_PROFILE
|
||||
-I$(PUBLIC)\profile \
|
||||
!endif
|
||||
-I$(PUBLIC)\editor \
|
||||
-I$(PUBLIC)\uconv \
|
||||
-I$(PUBLIC)\strres \
|
||||
|
@ -59,8 +59,10 @@
|
||||
#ifdef XP_PC
|
||||
#include "nsIObserverService.h"
|
||||
#include "nsIObserver.h"
|
||||
#ifdef BUILD_PROFILE
|
||||
#include "nsIProfile.h"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "nsIAllocator.h"
|
||||
#include "nsIGenericFactory.h"
|
||||
@ -77,7 +79,9 @@
|
||||
#define WEB_DLL "raptorweb.dll"
|
||||
#define PLUGIN_DLL "raptorplugin.dll"
|
||||
#define PREF_DLL "xppref32.dll"
|
||||
#ifdef BUILD_PROFILE
|
||||
#define PROFILE_DLL "xpprofile32.dll"
|
||||
#endif
|
||||
#define PARSER_DLL "raptorhtmlpars.dll"
|
||||
#define DOM_DLL "jsdom.dll"
|
||||
#define LAYOUT_DLL "raptorhtml.dll"
|
||||
@ -212,8 +216,10 @@ static NS_DEFINE_IID(kNetServiceCID, NS_NETSERVICE_CID);
|
||||
#ifdef XP_PC
|
||||
static NS_DEFINE_IID(kObserverServiceCID, NS_OBSERVERSERVICE_CID);
|
||||
static NS_DEFINE_IID(kObserverCID, NS_OBSERVER_CID);
|
||||
#ifdef BUILD_PROFILE
|
||||
static NS_DEFINE_IID(kProfileCID, NS_PROFILE_CID);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
//#define NEW_CLIPBOARD_SUPPORT
|
||||
|
||||
@ -364,8 +370,10 @@ NS_SetupRegistry()
|
||||
#ifdef XP_PC
|
||||
nsComponentManager::RegisterComponent(kObserverServiceCID, "ObserverService", NS_OBSERVERSERVICE_PROGID, BASE_DLL,PR_FALSE, PR_FALSE);
|
||||
nsComponentManager::RegisterComponent(kObserverCID, "Observer", NS_OBSERVER_PROGID, BASE_DLL,PR_FALSE, PR_FALSE);
|
||||
#ifdef BUILD_PROFILE
|
||||
nsComponentManager::RegisterComponent(kProfileCID, NULL, NULL, PROFILE_DLL, PR_FALSE, PR_FALSE);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if 0 // autoregistration now works on all platforms, and RDF self-registers, so commenting out
|
||||
#if defined(XP_MAC) || defined (XP_UNIX)
|
||||
|
Loading…
Reference in New Issue
Block a user