gecko-dev/xpcom/build/XPCOMModule.inc
Nika Layzell f5f86c989e Bug 1444745 - Part 1: Clear out xptinfo and typelib to make way for the this patch, r=mccr8
Unfortunately, I wasn't able to figure out a way to make firefox build & run in
the intermediate stages of these commits. Because of this, I am going to just
delete most of the code which I am deleting in the first patch, as I figure that
those are somewhat uninteresting changes, and then make the other changes in the
following patches.

In total, the following things are deleted:
1. All of xpcom/typelib, except for `xpt/tools` - this directory is being
subsumed entirely into xpcom/reflect/xptinfo.
2. Most of the code in xpcom/reflect/xptinfo, it is being rewritten to avoid
allocating and contain all of the necessary data structures.
3. idl-parser's typelib.py XPT generator, as it will be replaced.
4. Most includes of files which have been deleted.

NOTE: xpcom/typelib/xpt/tools/xpt.py was not removed, as it is used by bundling
code & bundling tests, which we don't want to remove yet.
2018-04-17 19:20:50 -04:00

77 lines
3.1 KiB
C++

COMPONENT_M(MEMORY, nsMemoryImpl::Create, Module::ALLOW_IN_GPU_PROCESS)
COMPONENT_M(DEBUG, nsDebugImpl::Create, Module::ALLOW_IN_GPU_PROCESS)
COMPONENT(ERRORSERVICE, nsErrorService::Create)
COMPONENT_M(CATEGORYMANAGER, nsCategoryManager::Create, Module::ALLOW_IN_GPU_PROCESS)
COMPONENT(SCRIPTABLEINPUTSTREAM, nsScriptableInputStream::Create)
COMPONENT(BINARYINPUTSTREAM, nsBinaryInputStreamConstructor)
COMPONENT(BINARYOUTPUTSTREAM, nsBinaryOutputStreamConstructor)
COMPONENT(STORAGESTREAM, nsStorageStreamConstructor)
COMPONENT(VERSIONCOMPARATOR, nsVersionComparatorImplConstructor)
COMPONENT(SCRIPTABLEBASE64ENCODER, nsScriptableBase64EncoderConstructor)
COMPONENT(PIPE, nsPipeConstructor)
COMPONENT(PROPERTIES, nsPropertiesConstructor)
COMPONENT(PERSISTENTPROPERTIES, nsPersistentProperties::Create)
COMPONENT(ARRAY, nsArrayBase::XPCOMConstructor)
COMPONENT(CONSOLESERVICE, nsConsoleServiceConstructor)
COMPONENT_M(OBSERVERSERVICE, nsObserverService::Create, Module::ALLOW_IN_GPU_PROCESS)
COMPONENT_M(TIMER, nsTimerConstructor, Module::ALLOW_IN_GPU_PROCESS)
#define COMPONENT_SUPPORTS(TYPE, Type) \
COMPONENT(SUPPORTS_##TYPE, nsSupports##Type##Constructor)
COMPONENT_SUPPORTS(ID, ID)
COMPONENT_SUPPORTS(STRING, String)
COMPONENT_SUPPORTS(CSTRING, CString)
COMPONENT_SUPPORTS(PRBOOL, PRBool)
COMPONENT_SUPPORTS(PRUINT8, PRUint8)
COMPONENT_SUPPORTS(PRUINT16, PRUint16)
COMPONENT_SUPPORTS(PRUINT32, PRUint32)
COMPONENT_SUPPORTS(PRUINT64, PRUint64)
COMPONENT_SUPPORTS(PRTIME, PRTime)
COMPONENT_SUPPORTS(CHAR, Char)
COMPONENT_SUPPORTS(PRINT16, PRInt16)
COMPONENT_SUPPORTS(PRINT32, PRInt32)
COMPONENT_SUPPORTS(PRINT64, PRInt64)
COMPONENT_SUPPORTS(FLOAT, Float)
COMPONENT_SUPPORTS(DOUBLE, Double)
COMPONENT_SUPPORTS(INTERFACE_POINTER, InterfacePointer)
#undef COMPONENT_SUPPORTS
COMPONENT(LOCAL_FILE, nsLocalFile::nsLocalFileConstructor)
COMPONENT(DIRECTORY_SERVICE, nsDirectoryService::Create)
COMPONENT(PROCESS, nsProcessConstructor)
COMPONENT(ENVIRONMENT, nsEnvironment::Create)
COMPONENT(THREADMANAGER, nsThreadManagerGetSingleton)
COMPONENT_M(THREADPOOL, nsThreadPoolConstructor, Module::ALLOW_IN_GPU_PROCESS)
COMPONENT(STRINGINPUTSTREAM, nsStringInputStreamConstructor)
COMPONENT(MULTIPLEXINPUTSTREAM, nsMultiplexInputStreamConstructor)
COMPONENT(VARIANT, nsVariantCCConstructor)
COMPONENT(HASH_PROPERTY_BAG, nsHashPropertyBagCCConstructor)
COMPONENT(UUID_GENERATOR, nsUUIDGeneratorConstructor)
#if defined(XP_WIN)
COMPONENT(WINDOWSREGKEY, nsWindowsRegKeyConstructor)
#endif
#if defined(MOZ_WIDGET_COCOA)
COMPONENT(MACUTILSIMPL, nsMacUtilsImplConstructor)
#endif
COMPONENT(SYSTEMINFO, nsSystemInfoConstructor)
COMPONENT_M(MEMORY_REPORTER_MANAGER, nsMemoryReporterManagerConstructor, Module::ALLOW_IN_GPU_PROCESS)
COMPONENT(MEMORY_INFO_DUMPER, nsMemoryInfoDumperConstructor)
COMPONENT(IOUTIL, nsIOUtilConstructor)
COMPONENT(CYCLE_COLLECTOR_LOGGER, nsCycleCollectorLoggerConstructor)
COMPONENT(MESSAGE_LOOP, nsMessageLoopConstructor)