зеркало из https://github.com/mozilla/gecko-dev.git
Land the rest of the --enable-static-components build changes.
Bug #46775 r=bryner
This commit is contained in:
Родитель
497249a5e8
Коммит
be4770a8a4
|
@ -989,7 +989,7 @@ fi
|
|||
|
||||
if [ "$MOZ_STATIC_COMPONENTS" ]; then
|
||||
MAKEFILES_static_components="$MAKEFILES_static_components
|
||||
modules/staticmod
|
||||
modules/staticmod/Makefile
|
||||
"
|
||||
fi
|
||||
|
||||
|
@ -1096,6 +1096,7 @@ $MAKEFILES_plugin
|
|||
$MAKEFILES_netwerk
|
||||
$MAKEFILES_profile
|
||||
$MAKEFILES_rdf
|
||||
$MAKEFILES_static_components
|
||||
$MAKEFILES_sun_java
|
||||
$MAKEFILES_themes
|
||||
$MAKEFILES_uriloader
|
||||
|
|
|
@ -74,6 +74,7 @@ NO_SHARED_LIB = @NO_SHARED_LIB@
|
|||
NO_NETSCAPE_SHARED = @NO_SHARED_LIB@
|
||||
NO_STATIC_LIB = @NO_STATIC_LIB@
|
||||
NO_NETSCAPE_STATIC = @NO_STATIC_LIB@
|
||||
MOZ_STATIC_COMPONENTS = @MOZ_STATIC_COMPONENTS@
|
||||
ENABLE_TESTS = @ENABLE_TESTS@
|
||||
IBMBIDI = @IBMBIDI@
|
||||
BUILD_IDLC = @BUILD_IDLC@
|
||||
|
|
|
@ -222,6 +222,14 @@ endif
|
|||
OS_CFLAGS += $(DEBUG_FLAGS)
|
||||
OS_CXXFLAGS += $(DEBUG_FLAGS)
|
||||
|
||||
ifneq (,$(IS_COMPONENT))
|
||||
ifneq (, $(findstring $(LIBRARY_NAME), $(MOZ_STATIC_COMPONENTS)))
|
||||
DEFINES += -DNSGetModule=$(LIBRARY_NAME)_NSGetModule -DNSGetModule_components=$(LIBRARY_NAME)_NSGM_comps -DNSGetModule_components_count=$(LIBRARY_NAME)_NSGM_comp_count
|
||||
NO_STATIC_LIB=
|
||||
NO_SHARED_LIB=1
|
||||
endif
|
||||
endif
|
||||
|
||||
#
|
||||
# Personal makefile customizations go in these optional make include files.
|
||||
#
|
||||
|
|
|
@ -3977,6 +3977,7 @@ AC_SUBST(UNIX_CRASH_ON_ASSERT)
|
|||
AC_SUBST(NO_UNIX_ASYNC_DNS)
|
||||
AC_SUBST(NO_SHARED_LIB)
|
||||
AC_SUBST(NO_STATIC_LIB)
|
||||
AC_SUBST(MOZ_STATIC_COMPONENTS)
|
||||
AC_SUBST(ENABLE_TESTS)
|
||||
AC_SUBST(IBMBIDI)
|
||||
AC_SUBST(MOZ_USER_DIR)
|
||||
|
|
|
@ -95,7 +95,8 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(nsStaticModuleImpl)
|
|||
static NS_METHOD nsStaticModuleRegistrationProc(nsIComponentManager *aCompMgr,
|
||||
nsIFile *aPath,
|
||||
const char *registryLocation,
|
||||
const char *componentType)
|
||||
const char *componentType,
|
||||
const nsModuleComponentInfo *info)
|
||||
{
|
||||
NS_RegisterStaticModules(aPath);
|
||||
return NS_OK;
|
||||
|
@ -103,7 +104,8 @@ static NS_METHOD nsStaticModuleRegistrationProc(nsIComponentManager *aCompMgr,
|
|||
|
||||
static NS_METHOD nsStaticModuleUnregistrationProc(nsIComponentManager *aCompMgr,
|
||||
nsIFile *aPath,
|
||||
const char *registryLocation)
|
||||
const char *registryLocation,
|
||||
const nsModuleComponentInfo *info)
|
||||
{
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче