Create bundle version of libxpcom for OSX GRE builds.

Bug #186599 r=mcafee
This commit is contained in:
seawood%netscape.com 2002-12-27 18:58:20 +00:00
Родитель 58276d38b0
Коммит 29b02ee87c
1 изменённых файлов: 18 добавлений и 0 удалений

Просмотреть файл

@ -28,6 +28,13 @@ include $(DEPTH)/config/autoconf.mk
MODULE = xpcom
LIBRARY_NAME = xpcom
ifdef _BUILD_BUNDLE
IS_COMPONENT = 1
DLL_SUFFIX = .bundle
NO_DIST_INSTALL = 1
endif
# Do not set EXPORT_LIBRARY as we do not want xpcom in the static libs list
#EXPORT_LIBRARY = 1
REQUIRES = libreg \
@ -116,6 +123,17 @@ OS_LIBS += $(LIBICONV)
include $(topsrcdir)/config/rules.mk
ifndef DISABLE_DIST_GRE
ifeq ($(OS_ARCH),Darwin)
GARBAGE += $(SHARED_LIBRARY:$(DLL_SUFFIX)=.bundle)
ifndef _BUILD_BUNDLE
libs:: $(SHARED_LIBRARY)
$(MAKE) libs _BUILD_BUNDLE=1
$(INSTALL) $(LIB_PREFIX)$(LIBRARY_NAME).bundle $(DIST)/gre
endif
endif
endif
DEFINES += \
-D_IMPL_NS_COM \
-DEXPORT_XPT_API \