Compare commits
3 Commits
PACKAGING_
...
Bugzilla_P
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b52a1dc48a | ||
|
|
48b5f960fd | ||
|
|
73bf11394f |
@@ -1,483 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
DEPTH = .
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
include $(topsrcdir)/build/unix/modules.mk
|
||||
|
||||
ifeq ($(BUILD_MODULES),all)
|
||||
#
|
||||
# And now for something completely different...
|
||||
# Divide the default build into tiers.
|
||||
# Tiers must be defined on module boundaries
|
||||
#
|
||||
default: $(SUBMAKEFILES)
|
||||
$(MAKE) -C config export
|
||||
$(MAKE) nspr
|
||||
$(MAKE) ldap
|
||||
$(MAKE) tier_0
|
||||
$(MAKE) tier_1
|
||||
$(MAKE) tier_2
|
||||
$(MAKE) tier_9
|
||||
ifdef MOZ_PSM
|
||||
$(MAKE) tier_40
|
||||
endif
|
||||
$(MAKE) tier_50
|
||||
ifdef MOZ_JSDEBUGGER
|
||||
$(MAKE) tier_93
|
||||
endif
|
||||
ifdef MOZ_EXTENSIONS
|
||||
$(MAKE) tier_94
|
||||
endif
|
||||
ifdef MOZ_MAIL_NEWS
|
||||
$(MAKE) tier_97
|
||||
endif
|
||||
ifdef MOZ_CALENDAR
|
||||
$(MAKE) tier_98
|
||||
endif
|
||||
$(MAKE) tier_99
|
||||
|
||||
# Make sure that the existing rulesets work
|
||||
DIRS = \
|
||||
$(tier_0_dirs) \
|
||||
$(tier_1_dirs) \
|
||||
$(tier_2_dirs) \
|
||||
$(tier_9_dirs) \
|
||||
$(tier_40_dirs) \
|
||||
$(tier_50_dirs) \
|
||||
$(NULL)
|
||||
|
||||
ifdef GC_LEAK_DETECTOR
|
||||
DIRS += gc/boehm
|
||||
endif
|
||||
|
||||
ifdef MOZ_JSDEBUGGER
|
||||
DIRS += $(tier_93_dirs)
|
||||
endif
|
||||
ifdef MOZ_EXTENSIONS
|
||||
DIRS += $(tier_94_dirs)
|
||||
endif
|
||||
ifdef MOZ_MAIL_NEWS
|
||||
DIRS += $(tier_97_dirs)
|
||||
endif
|
||||
ifdef MOZ_CALENDAR
|
||||
DIRS += $(tier_98_dirs)
|
||||
endif
|
||||
|
||||
DIRS += $(tier_99_dirs)
|
||||
|
||||
#
|
||||
# tier 0 - base build config dirs
|
||||
#
|
||||
tier_0_dirs = \
|
||||
config \
|
||||
build \
|
||||
$(NULL)
|
||||
|
||||
#
|
||||
# tier 1 - 3rd party individual libraries
|
||||
#
|
||||
tier_1_dirs += dbm
|
||||
|
||||
ifndef MOZ_NATIVE_JPEG
|
||||
tier_1_dirs += jpeg
|
||||
endif
|
||||
|
||||
ifndef MOZ_NATIVE_ZLIB
|
||||
tier_1_dirs += modules/zlib
|
||||
endif
|
||||
|
||||
# Installer needs standalone libjar, hence standalone zlib
|
||||
ifdef MOZ_INSTALLER
|
||||
tier_1_dirs += modules/zlib/standalone
|
||||
endif
|
||||
|
||||
ifdef MOZ_INTERNAL_LIBART_LGPL
|
||||
tier_1_dirs += other-licenses/libart_lgpl
|
||||
endif
|
||||
|
||||
#
|
||||
# tier 2 - base libraries
|
||||
#
|
||||
tier_2_dirs = \
|
||||
js \
|
||||
xpcom \
|
||||
modules/libreg \
|
||||
xpcom/obsolete \
|
||||
$(NULL)
|
||||
|
||||
ifdef NS_TRACE_MALLOC
|
||||
tier_2_dirs += tools/trace-malloc/lib tools/trace-malloc
|
||||
endif
|
||||
|
||||
#
|
||||
# tier 9 - core components (necko,gecko)
|
||||
#
|
||||
|
||||
tier_9_dirs += \
|
||||
js/src/xpconnect \
|
||||
intl \
|
||||
modules/libjar \
|
||||
$(NULL)
|
||||
|
||||
ifdef MOZ_OJI
|
||||
tier_9_dirs += \
|
||||
js/src/liveconnect \
|
||||
modules/oji \
|
||||
$(NULL)
|
||||
endif
|
||||
|
||||
ifdef MOZ_ENABLE_XLIB
|
||||
tier_9_dirs += gfx/src/xlibrgb widget/src/xlibxtbin
|
||||
endif
|
||||
|
||||
ifdef MOZ_ENABLE_GTK
|
||||
tier_9_dirs += widget/src/gtksuperwin widget/src/gtkxtbin
|
||||
endif
|
||||
|
||||
ifdef MOZ_ENABLE_GTK2
|
||||
tier_9_dirs += widget/src/gtkxtbin
|
||||
endif
|
||||
|
||||
ifdef MOZ_IPCD
|
||||
tier_9_dirs += ipc/ipcd
|
||||
endif
|
||||
|
||||
tier_9_dirs += \
|
||||
modules/libutil \
|
||||
netwerk \
|
||||
uriloader \
|
||||
modules/libpref \
|
||||
modules/libimg \
|
||||
caps \
|
||||
rdf \
|
||||
expat \
|
||||
htmlparser \
|
||||
gfx \
|
||||
modules/libpr0n \
|
||||
sun-java \
|
||||
modules/plugin \
|
||||
dom \
|
||||
view \
|
||||
widget \
|
||||
content \
|
||||
layout \
|
||||
db \
|
||||
xpfe/components/shistory \
|
||||
docshell \
|
||||
webshell \
|
||||
profile \
|
||||
embedding \
|
||||
editor \
|
||||
$(NULL)
|
||||
|
||||
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
||||
tier_9_dirs += xpfe/bootstrap/appleevents
|
||||
endif
|
||||
|
||||
tier_9_dirs += \
|
||||
xpfe/appshell \
|
||||
xpfe/browser/public \
|
||||
xpfe/components/sidebar/public \
|
||||
$(NULL)
|
||||
|
||||
ifdef MOZ_ENABLE_XREMOTE
|
||||
tier_9_dirs += xpfe/components/xremote/public
|
||||
endif
|
||||
|
||||
ifdef MOZ_XUL_APP
|
||||
tier_9_dirs += toolkit/components/history/public chrome
|
||||
else
|
||||
tier_9_dirs += xpfe/components/history/public
|
||||
endif
|
||||
|
||||
ifdef ACCESSIBILITY
|
||||
tier_9_dirs += accessible
|
||||
endif
|
||||
|
||||
ifdef MOZ_LDAP_XPCOM
|
||||
tier_9_dirs += directory/xpcom
|
||||
endif
|
||||
|
||||
#
|
||||
# tier 40 - security
|
||||
#
|
||||
ifdef MOZ_PSM
|
||||
tier_40_dirs += security/manager
|
||||
endif
|
||||
|
||||
#
|
||||
# tier 50 - xpfe & toolkit
|
||||
#
|
||||
|
||||
# This must preceed xpfe
|
||||
ifdef MOZ_JPROF
|
||||
tier_50_dirs += tools/jprof
|
||||
endif
|
||||
|
||||
tier_50_dirs += xpfe themes
|
||||
|
||||
ifdef MOZ_LEAKY
|
||||
tier_50_dirs += tools/leaky
|
||||
endif
|
||||
|
||||
ifdef MOZ_MAPINFO
|
||||
tier_50_dirs += tools/codesighs
|
||||
endif
|
||||
|
||||
ifneq (,$(MOZ_L10N_LANG)$(MOZ_L10N_TOOLS))
|
||||
tier_50_dirs += l10n
|
||||
endif
|
||||
|
||||
ifdef MOZ_XUL_APP
|
||||
tier_50_dirs += toolkit
|
||||
endif
|
||||
|
||||
ifdef MINIMO
|
||||
tier_9_dirs += embedding/minimo
|
||||
endif
|
||||
|
||||
ifdef MOZ_PHOENIX
|
||||
# xpfe/components/search depends on nsIBookmarksService.idl
|
||||
tier_50_dirs += browser/components/bookmarks/public
|
||||
endif
|
||||
|
||||
# toolkit/xre/ depends on xpinstall, so it must be in tier 50
|
||||
ifdef MOZ_XPINSTALL
|
||||
tier_50_dirs += xpinstall
|
||||
endif
|
||||
|
||||
# mozapps installer needs to be built after xpinstall
|
||||
ifdef MOZ_XUL_APP
|
||||
ifdef MOZ_INSTALLER
|
||||
tier_50_dirs += toolkit/mozapps/installer
|
||||
endif
|
||||
endif
|
||||
|
||||
#
|
||||
# tier 9x - application features
|
||||
#
|
||||
|
||||
ifdef MOZ_JSDEBUGGER
|
||||
tier_93_dirs += js/jsd
|
||||
endif
|
||||
|
||||
ifdef MOZ_EXTENSIONS
|
||||
tier_94_dirs += extensions
|
||||
endif
|
||||
|
||||
ifdef MOZ_MAIL_NEWS
|
||||
tier_97_dirs += mailnews
|
||||
endif
|
||||
|
||||
ifdef MOZ_CALENDAR
|
||||
tier_98_dirs += other-licenses/libical calendar
|
||||
endif
|
||||
|
||||
#
|
||||
# tier 99 - application binaries
|
||||
#
|
||||
|
||||
tier_99_dirs += embedding/config
|
||||
|
||||
ifdef MOZ_COMPONENTLIB
|
||||
tier_99_dirs += embedding/componentlib
|
||||
else
|
||||
ifneq (,$(MOZ_STATIC_COMPONENTS)$(MOZ_META_COMPONENTS))
|
||||
tier_99_dirs += modules/staticmod
|
||||
endif
|
||||
endif # MOZ_COMPONENTLIB
|
||||
|
||||
ifdef MOZ_PHOENIX
|
||||
tier_99_dirs += browser
|
||||
endif
|
||||
|
||||
ifdef MOZ_THUNDERBIRD
|
||||
tier_99_dirs += mail
|
||||
endif
|
||||
|
||||
ifdef MOZ_STANDALONE_COMPOSER
|
||||
tier_99_dirs += composer
|
||||
endif
|
||||
|
||||
ifdef MOZ_XUL_APP
|
||||
else
|
||||
ifneq (,$(MOZ_XPFE_COMPONENTS)$(MOZ_XUL))
|
||||
tier_99_dirs += xpfe/bootstrap
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq (,$(MOZ_ENABLE_GTK)$(MOZ_ENABLE_GTK2))
|
||||
tier_99_dirs += embedding/browser/gtk
|
||||
endif
|
||||
|
||||
# viewer
|
||||
ifneq (,$(ENABLE_TESTS))
|
||||
tier_99_dirs += webshell/tests
|
||||
endif
|
||||
|
||||
# winembed, mfcembed
|
||||
ifeq ($(OS_ARCH),WINNT)
|
||||
ifneq (,$(ENABLE_TESTS)$(MOZILLA_OFFICIAL))
|
||||
tier_99_dirs += embedding/tests
|
||||
endif
|
||||
endif
|
||||
|
||||
# os2embed
|
||||
ifeq ($(OS_ARCH),OS2)
|
||||
ifneq (,$(ENABLE_TESTS)$(MOZILLA_OFFICIAL))
|
||||
tier_99_dirs += embedding/tests
|
||||
endif
|
||||
endif
|
||||
|
||||
else
|
||||
|
||||
# Standalone build
|
||||
|
||||
DIRS = $(BUILD_MODULE_DIRS)
|
||||
|
||||
# Hack to generate xpidl Makefile
|
||||
ifneq ($(BUILD_MODULES),all)
|
||||
ifneq (,$(findstring xpcom, $(BUILD_MODULE_DIRS)))
|
||||
DIRS := xpcom/typelib $(DIRS)
|
||||
SUBMAKEFILES := xpcom/typelib/Makefile
|
||||
endif
|
||||
endif
|
||||
|
||||
default: $(SUBMAKEFILES)
|
||||
$(MAKE) export
|
||||
$(MAKE) libs
|
||||
|
||||
endif # BUILD_MODULES == all
|
||||
|
||||
STATIC_MAKEFILES := nsprpub directory/c-sdk security/nss
|
||||
|
||||
GARBAGE_DIRS += dist
|
||||
DIST_GARBAGE = config.cache config.log config.status config-defs.h \
|
||||
dependencies.beos config/autoconf.mk config/myrules.mk config/myconfig.mk \
|
||||
unallmakefiles mozilla-config.h \
|
||||
$(topsrcdir)/.mozconfig.mk $(topsrcdir)/.mozconfig.out
|
||||
|
||||
# Build pseudo-external modules first when export is explicitly called
|
||||
export::
|
||||
$(MAKE) -C config export
|
||||
$(MAKE) nspr
|
||||
$(MAKE) ldap
|
||||
ifneq ($(BUILD_MODULES),all)
|
||||
ifneq (,$(findstring xpcom, $(BUILD_MODULE_DIRS)))
|
||||
$(MAKE) -C xpcom/typelib
|
||||
$(MAKE) export-idl
|
||||
endif
|
||||
endif
|
||||
|
||||
install::
|
||||
ifndef MOZ_NATIVE_NSPR
|
||||
$(MAKE) -C nsprpub real_install DESTDIR=$(DESTDIR) libdir=$(mozappdir) includedir=$(includedir)/nspr
|
||||
$(RM) -f $(addprefix $(DESTDIR)$(mozappdir)/$(LIB_PREFIX), $(addsuffix .$(LIB_SUFFIX), nspr4 plds4 plc4))
|
||||
$(RM) -f $(addprefix $(DESTDIR)$(bindir)/,nspr-config compile-et.pl prerr.properties)
|
||||
endif
|
||||
ifdef MOZ_LDAP_XPCOM
|
||||
$(MAKE) -C directory/c-sdk real_install DESTDIR=$(DESTDIR) libdir=$(mozappdir) includedir=$(includedir)/ldap
|
||||
endif
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
# Clean up after pseudo-external modules
|
||||
clean clobber realclean clobber_all distclean::
|
||||
ifndef MOZ_NATIVE_NSPR
|
||||
$(MAKE) -C nsprpub $@
|
||||
endif
|
||||
ifdef MOZ_LDAP_XPCOM
|
||||
$(MAKE) -C directory/c-sdk $@
|
||||
endif
|
||||
|
||||
tier_%:
|
||||
@echo "$@: $($@_dirs)"
|
||||
@$(EXIT_ON_ERROR) \
|
||||
for d in $($@_dirs); do $(UPDATE_TITLE) \
|
||||
$(MAKE) -C $$d export; \
|
||||
done ; \
|
||||
$(PERL) $(MOZILLA_DIR)/config/purge-old-headers.pl $(DIST)/include ;\
|
||||
$(PERL) $(MOZILLA_DIR)/config/purge-old-headers.pl $(DIST)/packages ;\
|
||||
for d in $($@_dirs); do $(UPDATE_TITLE) \
|
||||
$(MAKE) -C $$d libs; \
|
||||
done
|
||||
#
|
||||
# Individual modules
|
||||
#
|
||||
boehm:
|
||||
ifdef GC_LEAK_DETECTOR
|
||||
$(MAKE) -C gc/boehm
|
||||
endif
|
||||
|
||||
nspr: boehm
|
||||
ifndef MOZ_NATIVE_NSPR
|
||||
$(MAKE) -C nsprpub
|
||||
endif
|
||||
|
||||
ldap:
|
||||
ifdef MOZ_LDAP_XPCOM
|
||||
$(MAKE) -C directory/c-sdk
|
||||
endif
|
||||
|
||||
export::
|
||||
@$(PERL) $(MOZILLA_DIR)/config/purge-old-headers.pl $(DIST)/include
|
||||
@$(PERL) $(MOZILLA_DIR)/config/purge-old-headers.pl $(DIST)/packages
|
||||
|
||||
packages::
|
||||
@$(PERL) $(MOZILLA_DIR)/config/purge-old-headers.pl $(DIST)/packages
|
||||
|
||||
distclean::
|
||||
cat unallmakefiles | $(XARGS) rm -f
|
||||
rm -f unallmakefiles $(DIST_GARBAGE)
|
||||
|
||||
ifeq ($(OS_ARCH),WINNT)
|
||||
rebase:
|
||||
ifdef MOZILLA_OFFICIAL
|
||||
echo rebasing $(DIST)
|
||||
/bin/find $(DIST) -name "*.dll" > rebase.lst
|
||||
rebase -b 60000000 -R . -G rebase.lst
|
||||
rm rebase.lst
|
||||
endif
|
||||
|
||||
splitsymbols:
|
||||
ifdef MOZILLA_OFFICIAL
|
||||
echo splitting symbols out of binaries
|
||||
/bin/find $(DIST) -name "*.dll" -exec splitsym {} \;
|
||||
/bin/find $(DIST) -name "*.exe" -exec splitsym {} \;
|
||||
/bin/find $(DIST) -name "*.EXE" -exec splitsym {} \;
|
||||
endif # MOZILLA_OFFICIAL
|
||||
|
||||
signnss:
|
||||
ifdef MOZILLA_OFFICIAL
|
||||
echo signing NSS libs
|
||||
cd $(DIST)/bin; ./shlibsign.exe -v -i softokn3.dll
|
||||
endif # MOZILLA_OFFICIAL
|
||||
|
||||
deliver: splitsymbols rebase signnss
|
||||
|
||||
endif # WINNT
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s): John Gaunt (jgaunt@netscape.com)
|
||||
#
|
||||
|
||||
DEPTH = ../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = accessibility
|
||||
LIBRARY_NAME = accessibility
|
||||
EXPORT_LIBRARY = 1
|
||||
ifneq ($(OS_ARCH),WINNT)
|
||||
SHORT_LIBNAME = access
|
||||
endif
|
||||
IS_COMPONENT = 1
|
||||
MODULE_NAME = nsAccessibilityModule
|
||||
GRE_MODULE = 1
|
||||
|
||||
PACKAGE_FILE = accessibility.pkg
|
||||
|
||||
REQUIRES = xpcom \
|
||||
$(NULL)
|
||||
|
||||
CPPSRCS = nsAccessibilityFactory.cpp
|
||||
|
||||
LOCAL_INCLUDES = -I$(srcdir)/../src
|
||||
|
||||
SHARED_LIBRARY_LIBS = \
|
||||
$(DIST)/lib/$(LIB_PREFIX)accessibility_base_s.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)accessibility_html_s.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)accessibility_toolkit_s.$(LIB_SUFFIX) \
|
||||
$(NULL)
|
||||
|
||||
ifdef MOZ_XUL
|
||||
SHARED_LIBRARY_LIBS += $(DIST)/lib/$(LIB_PREFIX)accessibility_xul_s.$(LIB_SUFFIX)
|
||||
endif
|
||||
|
||||
EXTRA_DSO_LIBS = \
|
||||
gkgfx \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DSO_LDOPTS = \
|
||||
$(LIBS_DIR) \
|
||||
$(EXTRA_DSO_LIBS) \
|
||||
$(MOZ_COMPONENT_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
ifeq ($(MOZ_WIDGET_TOOLKIT),gtk2)
|
||||
EXTRA_DSO_LDOPTS += $(MOZ_GTK2_LIBS)
|
||||
endif
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
[gecko]
|
||||
#if SHARED_LIBRARY
|
||||
dist/bin/components/@SHARED_LIBRARY@
|
||||
#else
|
||||
!staticcomp @LIBRARY@ @MODULE_NAME@
|
||||
#endif
|
||||
!xpt dist/bin/components/accessibility.xpt
|
||||
#if MOZ_WIDGET_TOOLKIT==windows
|
||||
!xpt dist/bin/components/accessibility-msaa.xpt
|
||||
#elif MOZ_WIDGET_TOOLKIT==gtk2
|
||||
!xpt dist/bin/components/accessibility-atk.xpt
|
||||
#endif
|
||||
|
||||
# xxxbsmedberg why is this in the browser, but the other stuff in gecko?
|
||||
[xpfe-browser browser]
|
||||
#if MOZ_WIDGET_TOOLKIT==windows
|
||||
dist/bin/AccessibleMarshal.dll
|
||||
#endif
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,47 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is Mozilla Communicator client code,
|
||||
# released March 31, 1998.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape Communications
|
||||
# Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
DEPTH = ..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = build
|
||||
PACKAGE_FILE = build.pkg
|
||||
|
||||
ifeq (,$(filter WINNT OS2,$(OS_ARCH)))
|
||||
DIRS = unix
|
||||
endif
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
# Install bloaturls.txt file for tinderbox bloat test.
|
||||
libs:: bloaturls.txt
|
||||
$(INSTALL) $< $(DIST)/bin
|
||||
|
||||
# Install bloatcycle.html into dist/bin/res, for auto-cycling
|
||||
# of bloaturls.txt. This is for browsers that can't do -f
|
||||
# autocycling of URLs.
|
||||
libs:: bloatcycle.html
|
||||
$(INSTALL) $< $(DIST)/bin/res
|
||||
@@ -1,190 +0,0 @@
|
||||
#! /usr/bin/env perl
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1999 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
# acoutput-fast.pl - Quickly create makefiles that are in a common format.
|
||||
#
|
||||
# Most of the makefiles in mozilla only refer to two configure variables:
|
||||
# @srcdir@
|
||||
# @top_srcdir@
|
||||
# However, configure does not know any better and it runs sed on each file
|
||||
# with over 150 replacement rules (slow as molasses).
|
||||
#
|
||||
# This script takes a list of makefiles as input. For example,
|
||||
#
|
||||
# echo $MAKEFILES | acoutput-fast.pl
|
||||
#
|
||||
# The script creates each Makefile that only references @srcdir@ and
|
||||
# @top_srcdir@. For other files, it lists them in a shell command that is
|
||||
# printed to stdout:
|
||||
#
|
||||
# CONFIG_FILES="unhandled_files..."; export CONFIG_FILES
|
||||
#
|
||||
# This command can be used to have config.status create the unhandled
|
||||
# files. For example,
|
||||
#
|
||||
# eval "echo $MAKEFILES | acoutput-fast.pl"
|
||||
# AC_OUTPUT($MAKEFILES)
|
||||
#
|
||||
# Send comments, improvements, bugs to Steve Lamm (slamm@netscape.com).
|
||||
|
||||
#use File::Basename;
|
||||
sub dirname {
|
||||
my $dir = $_[0];
|
||||
return '.' if not $dir =~ m%/%;
|
||||
$dir =~ s%/[^/][^/]*$%%;
|
||||
return $dir;
|
||||
}
|
||||
|
||||
# Create one directory. Assumes it doesn't already exist.
|
||||
# Will create parent(s) if needed.
|
||||
sub create_directory {
|
||||
my $dir = $_[0];
|
||||
my $parent = dirname($dir);
|
||||
create_directory($parent) if not -d $parent;
|
||||
mkdir "$dir",0777;
|
||||
}
|
||||
|
||||
# Create all the directories at once.
|
||||
# This can be much faster than calling mkdir() for each one.
|
||||
sub create_directories {
|
||||
my @makefiles = @_;
|
||||
my @dirs = ();
|
||||
my $ac_file;
|
||||
foreach $ac_file (@makefiles) {
|
||||
push @dirs, dirname($ac_file);
|
||||
}
|
||||
# Call mkdir with the directories sorted by subdir count (how many /'s)
|
||||
if (@dirs) {
|
||||
my $mkdir_command = "mkdir -p ". join(' ', @dirs);
|
||||
if (system($mkdir_command) != 0) {
|
||||
print STDERR "Creating dirs all at once failed; trying one at atime\n";
|
||||
foreach $dir (@dirs) {
|
||||
if (not -d $dir) {
|
||||
print STDERR "Creating directory $dir\n";
|
||||
create_directory($dir);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
while($arg = shift) {
|
||||
if ($arg =~ /^--srcdir=/) {
|
||||
$ac_given_srcdir = (split /=/, $arg)[1];
|
||||
}
|
||||
if ($arg =~ /^--cygwin-srcdir/) {
|
||||
$ac_cygwin_srcdir = (split /=/, $arg)[1];
|
||||
}
|
||||
}
|
||||
|
||||
if (!$ac_given_srcdir) {
|
||||
$ac_given_srcdir = $0;
|
||||
$ac_given_srcdir =~ s|/?build/autoconf/.*$||;
|
||||
$ac_given_srcdir = '.' if $ac_given_srcdir eq '';
|
||||
}
|
||||
|
||||
if (!$ac_cygwin_srcdir) {
|
||||
$ac_cygwin_srcdir = $ac_given_srcdir;
|
||||
}
|
||||
|
||||
# Read list of makefiles from the stdin or,
|
||||
# from files listed on the command-line.
|
||||
#
|
||||
@makefiles=();
|
||||
push @makefiles, split while (<STDIN>);
|
||||
|
||||
# Create all the directories at once.
|
||||
# This can be much faster than calling mkdir() for each one.
|
||||
create_directories(@makefiles);
|
||||
|
||||
# Output the makefiles.
|
||||
#
|
||||
@unhandled=();
|
||||
foreach $ac_file (@makefiles) {
|
||||
if (not $ac_file =~ /Makefile$/ or $ac_file =~ /:/) {
|
||||
push @unhandled, $ac_file;
|
||||
next;
|
||||
}
|
||||
$ac_file_in = "$ac_given_srcdir/$ac_file.in";
|
||||
$ac_dir = dirname($ac_file);
|
||||
if ($ac_dir eq '.') {
|
||||
$ac_dir_suffix = '';
|
||||
$ac_dots = '';
|
||||
} else {
|
||||
$ac_dir_suffix = "/$ac_dir";
|
||||
$ac_dir_suffix =~ s%^/\./%/%;
|
||||
$ac_dots = $ac_dir_suffix;
|
||||
$ac_dots =~ s%/[^/]*%../%g;
|
||||
}
|
||||
if ($ac_given_srcdir eq '.') {
|
||||
$srcdir = '.';
|
||||
if ($ac_dots eq '') {
|
||||
$top_srcdir = '.'
|
||||
} else {
|
||||
$top_srcdir = $ac_dots;
|
||||
$top_srcdir =~ s%/$%%;
|
||||
}
|
||||
} elsif ($ac_cygwin_srcdir =~ m%^/% or $ac_cygwin_srcdir =~ m%^.:/%) {
|
||||
$srcdir = "$ac_cygwin_srcdir$ac_dir_suffix";
|
||||
$top_srcdir = "$ac_cygwin_srcdir";
|
||||
} else {
|
||||
$srcdir = "$ac_dots$ac_cygwin_srcdir$ac_dir_suffix";
|
||||
$top_srcdir = "$ac_dots$ac_cygwin_srcdir";
|
||||
}
|
||||
|
||||
if (-e $ac_file) {
|
||||
next if -M _ < -M $ac_file_in;
|
||||
print STDERR "updating $ac_file\n";
|
||||
} else {
|
||||
print STDERR "creating $ac_file\n";
|
||||
}
|
||||
|
||||
open (INFILE, "<$ac_file_in")
|
||||
or ( warn "can't read $ac_file_in: No such file or directory\n" and next);
|
||||
open (OUTFILE, ">$ac_file")
|
||||
or ( warn "Unable to create $ac_file\n" and next);
|
||||
|
||||
while (<INFILE>) {
|
||||
#if (/\@[_a-zA-Z]*\@.*\@[_a-zA-Z]*\@/) {
|
||||
# warn "Two defines on a line:$ac_file:$.:$_";
|
||||
# push @unhandled, $ac_file;
|
||||
# last;
|
||||
#}
|
||||
|
||||
s/\@srcdir\@/$srcdir/g;
|
||||
s/\@top_srcdir\@/$top_srcdir/g;
|
||||
|
||||
if (/\@[_a-zA-Z]*\@/) {
|
||||
warn "Unknown variable:$ac_file:$.:$_";
|
||||
push @unhandled, $ac_file;
|
||||
last;
|
||||
}
|
||||
print OUTFILE;
|
||||
}
|
||||
close INFILE;
|
||||
close OUTFILE;
|
||||
}
|
||||
|
||||
# Print the shell command to be evaluated by configure.
|
||||
#
|
||||
print "CONFIG_FILES=\"".join(' ', @unhandled)."\"; export CONFIG_FILES\n";
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
[unpackaged-files]
|
||||
!optional dist/bin/.autoreg
|
||||
!optional dist/bin/asdecode
|
||||
!optional dist/bin/nsinstall@BINS@
|
||||
@@ -1,66 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Stupid wrapper to avoid win32 dospath/cygdrive issues
|
||||
#
|
||||
prog=$1
|
||||
shift
|
||||
if test -z "$prog"; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
mountpoint=$CYGDRIVE_MOUNT
|
||||
if test -z "$mountpoint"; then
|
||||
mountpoint=`mount -p`
|
||||
if test -z "$mountpoint"; then
|
||||
print "Cannot determine cygwin mount points. Exiting"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
mountpoint=${mountpoint#*/}
|
||||
mountpoint=/${mountpoint%%[!A-Za-z0-9_]*}
|
||||
mountpoint=${mountpoint%/}
|
||||
|
||||
args=""
|
||||
up=""
|
||||
if test "${prog}" = "-up"; then
|
||||
up=1
|
||||
prog=${1}
|
||||
shift
|
||||
fi
|
||||
|
||||
process=1
|
||||
|
||||
for i in "${@}"
|
||||
do
|
||||
if test "${i}" = "-wrap"; then
|
||||
process=1
|
||||
else
|
||||
if test "${i}" = "-nowrap"; then
|
||||
process=
|
||||
else
|
||||
if test -n "${process}"; then
|
||||
if test -n "${up}"; then
|
||||
pathname=${i#-I[a-zA-Z]:/}
|
||||
if ! test "${pathname}" = "${i}"; then
|
||||
no_i=${i#-I}
|
||||
driveletter=${no_i%%:*}
|
||||
i=-I${mountpoint}/${driveletter}/${pathname}
|
||||
fi
|
||||
else
|
||||
eval 'leader=${i%%'${mountpoint}'/[a-zA-Z]/*}'
|
||||
if ! test "${leader}" = "${i}"; then
|
||||
eval 'pathname=${i#'${leader}${mountpoint}'/[a-zA-Z]/}'
|
||||
eval 'no_mountpoint=${i#'${leader}${mountpoint}'/}'
|
||||
driveletter=${no_mountpoint%%/*}
|
||||
i=${leader}${driveletter}:/${pathname}
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
args="${args} ${i}"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
exec $prog $args
|
||||
@@ -1,109 +0,0 @@
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is Mozilla packaging code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Benjamin Smedberg <bsmedberg@covad.net>_.
|
||||
# Portions created by the Initial Developer are Copyright (C) 2003
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
DEPTH = ../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
# This makefile doesn't do anything by default. Use one of the special targets
|
||||
# below to stage and build packages.
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
ifdef MOZ_DEBUG
|
||||
APP_NAME = MozillaDebug
|
||||
else
|
||||
APP_NAME = Mozilla
|
||||
endif
|
||||
|
||||
# override these variables in special situations
|
||||
STAGE_DIR = $(DEPTH)/stage$(if $*,/$*)
|
||||
STAGE_MACAPP_DIR = $(DEPTH)/stage$(if $*,/$*)/$(APP_NAME).app
|
||||
XPI_FILE = $(DIST)/xpi/$*.xpi
|
||||
ZIP_FILE = $(DIST)/$*.zip
|
||||
TGZ_FILE = $(DIST)/$*.tar.gz
|
||||
BZ2_FILE = $(DIST)/$*.tar.bz2
|
||||
DMG_FILE = $(DIST)/$*.dmg
|
||||
|
||||
PACKAGE_LIST = $(srcdir)/packages.list
|
||||
PACKAGE_FLAGS =
|
||||
HANDLERS = xptmerge touch optional preprocess exec
|
||||
MAPPINGS = dist/bin=bin xpiroot/=
|
||||
|
||||
MACAPP_MAPPINGS = dist/bin=Contents/MacOS approot=Contents
|
||||
|
||||
dump-packages:
|
||||
@$(PERL) $(srcdir)/dump-packages.pl -o $(DEPTH) -l $(PACKAGE_LIST) -u $(PACKAGE_FLAGS)
|
||||
|
||||
# This rule will stage any one package. If you need to stage multiple packages or
|
||||
# do ^packages (subtraction packages) use the stage-packages rule and set PACKAGES
|
||||
# on the command line
|
||||
stage-%:
|
||||
$(PERL) $(srcdir)/stage-packages.pl -o $(DEPTH) -l $(PACKAGE_LIST) -s $(STAGE_DIR) $(addprefix -m ,$(MAPPINGS)) $(addprefix -c ,$(HANDLERS)) -d $(PACKAGE_FLAGS) $*
|
||||
|
||||
stagemacapp-%:
|
||||
$(PERL) $(srcdir)/stage-packages.pl -o $(DEPTH) -l $(PACKAGE_LIST) -s $(STAGE_MACAPP_DIR) $(addprefix -m ,$(MACAPP_MAPPINGS)) $(addprefix -c ,$(HANDLERS)) -d $(PACKAGE_FLAGS) $*
|
||||
|
||||
makexpi-%:
|
||||
$(PERL) $(srcdir)/stage-packages.pl -o $(DEPTH) -l $(PACKAGE_LIST) -s $(STAGE_DIR) $(addprefix -m ,$(MAPPINGS)) $(addprefix -c ,$(HANDLERS)) --make-package xpi=$(XPI_FILE) -d $(PACKAGE_FLAGS) $*
|
||||
|
||||
makezip-%:
|
||||
$(PERL) $(srcdir)/stage-packages.pl -o $(DEPTH) -l $(PACKAGE_LIST) -s $(STAGE_DIR) $(addprefix -m ,$(MAPPINGS)) $(addprefix -c ,$(HANDLERS)) --make-package zip=$(ZIP_FILE) -d $(PACKAGE_FLAGS) $*
|
||||
|
||||
maketgz-%:
|
||||
$(PERL) $(srcdir)/stage-packages.pl -o $(DEPTH) -l $(PACKAGE_LIST) -s $(STAGE_DIR) $(addprefix -m ,$(MAPPINGS)) $(addprefix -c ,$(HANDLERS)) --make-package tgz=$(TGZ_FILE) -d $(PACKAGE_FLAGS) $*
|
||||
|
||||
makebz2-%:
|
||||
$(PERL) $(srcdir)/stage-packages.pl -o $(DEPTH) -l $(PACKAGE_LIST) -s $(STAGE_DIR) $(addprefix -m ,$(MAPPINGS)) $(addprefix -c ,$(HANDLERS)) --make-package bz2=$(BZ2_FILE) -d $(PACKAGE_FLAGS) $*
|
||||
|
||||
makedmg-%:
|
||||
$(PERL) $(srcdir)/stage-packages.pl -o $(DEPTH) -l $(PACKAGE_LIST) -s $(STAGE_DIR) $(addprefix -m ,$(MACAPP_MAPPINGS)) $(addprefix -c ,$(HANDLERS)) --make-package dmg=$(DMG_FILE) -d $(PACKAGE_FLAGS) $*
|
||||
|
||||
ifndef PACKAGES
|
||||
stage-packages makexpi-packages:
|
||||
@echo "Please set PACKAGES on the makefile command line or environment."
|
||||
|
||||
else #PACKAGES
|
||||
stage-packages:
|
||||
$(PERL) $(srcdir)/stage-packages.pl -o $(DEPTH) -l $(PACKAGE_LIST) -s $(STAGE_DIR) $(addprefix -m ,$(MAPPINGS)) $(apprefix -c ,$(HANDLERS)) $(PACKAGE_FLAGS) $(PACKAGES)
|
||||
|
||||
makexpi-packages:
|
||||
$(PERL) $(srcdir)/stage-packages.pl -o $(DEPTH) -l $(PACKAGE_LIST) -s $(STAGE_DIR) $(addprefix -m ,$(MAPPINGS)) $(apprefix -c ,$(HANDLERS)) --make-package xpi=$(XPI_FILE) -d $(PACKAGE_FLAGS) $(PACKAGES)
|
||||
|
||||
endif
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,192 +0,0 @@
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is Mozilla packaging scripts.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Benjamin Smedberg <bsmedberg@covad.net>.
|
||||
# Portions created by the Initial Developer are Copyright (C) 2003
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
sub PrintUsage
|
||||
{
|
||||
print
|
||||
"dump-packages.pl
|
||||
|
||||
Dumps (for debugging purposes) all of the packages/package contents
|
||||
from the package files in dist/packages.
|
||||
|
||||
Usage
|
||||
|
||||
perl make-packages.pl [options] packages...
|
||||
|
||||
-i, --ignore-missing
|
||||
Silently continue when a file listed in a package is missing. NOT
|
||||
RECOMMENDED. See -w
|
||||
|
||||
-o, --objdir=path
|
||||
The build directory. Default is the source directory.
|
||||
|
||||
-l, --package-list=file
|
||||
The packages list. Defaults to srcdir/build/package/packages.list
|
||||
|
||||
-p, --packages-dir=path
|
||||
The directory of package files. Defaults to objdir/dist/packages
|
||||
|
||||
-u, --report-unpackaged
|
||||
Report files that are in dist/bin but are not in any packages.
|
||||
|
||||
-v, --verbose
|
||||
Report more status information about actions being performed. This
|
||||
option may be listed up to three times.
|
||||
|
||||
-w, --warn-missing
|
||||
Issue a warning when a file listed in a package is missing. The
|
||||
default behavior is to abort.\n";
|
||||
exit 1;
|
||||
}
|
||||
|
||||
use File::Spec;
|
||||
use File::Path;
|
||||
use Getopt::Long;
|
||||
use File::Basename;
|
||||
use Cwd;
|
||||
|
||||
$DEPTH = "../..";
|
||||
$topsrcdir = GetTopSrcDir();
|
||||
push @INC, "$topsrcdir/build/package";
|
||||
require MozPackager;
|
||||
|
||||
$packageList = "$topsrcdir/build/package/packages.list";
|
||||
$objdir = $topsrcdir;
|
||||
|
||||
Getopt::Long::Configure ("bundling");
|
||||
|
||||
my $objdir = "";
|
||||
my $packagesDir = "";
|
||||
my $warnMissing = 0;
|
||||
my $ignoreMissing = 0;
|
||||
|
||||
GetOptions("help|h|?" => \&PrintUsage,
|
||||
"objdir|o=s" => \$objdir,
|
||||
"package-list|l=s" => \$packageList,
|
||||
"packages-dir|p=s" => \$packagesDir,
|
||||
"warn-missing|w" => \$warnMissing,
|
||||
"ignore-missing|i" => \$ignoreMissing,
|
||||
"report-unpackaged|u" => \$reportUnpackaged,
|
||||
"verbose|v+" => \$MozPackager::verbosity);
|
||||
|
||||
$packageList || die("Specify --package-list=");
|
||||
|
||||
$packageList = File::Spec->rel2abs($packageList);
|
||||
|
||||
if ($packagesDir) {
|
||||
$packagesDir = File::Spec->rel2abs($packagesDir);
|
||||
} else {
|
||||
$packagesDir = File::Spec->catdir("dist", "packages")
|
||||
}
|
||||
|
||||
chdir $objdir if $objdir;
|
||||
-d "dist" || die("directory dist/ not found... perhaps you forgot to specify --objdir?");
|
||||
|
||||
$MozParser::missingFiles = 2 if $ignoreMissing;
|
||||
$MozParser::missingFiles = 1 if $warnMissing;
|
||||
|
||||
MozPackages::parsePackageList($packageList);
|
||||
|
||||
$\ = "\n";
|
||||
|
||||
foreach my $package (keys %MozPackages::packages) {
|
||||
print "Package: $package";
|
||||
print "Dependencies:";
|
||||
foreach my $dependency (@{$MozPackages::packages{$package}}) {
|
||||
print $dependency;
|
||||
}
|
||||
print "";
|
||||
my $parser = new MozParser;
|
||||
MozParser::XPTDist::add($parser);
|
||||
MozParser::Touch::add($parser, File::Spec->catfile("dist", "dummy.file"));
|
||||
MozParser::Preprocess::add($parser);
|
||||
MozParser::Optional::add($parser);
|
||||
MozParser::Ignore::add($parser);
|
||||
MozParser::Exec::add($parser);
|
||||
MozParser::StaticComp::add($parser);
|
||||
$parser->addCommand('error', \&MozParser::Ignore::ignoreFunc);
|
||||
$parser->addMapping("dist/bin", "dist/bin");
|
||||
$parser->addMapping("dist/lib", "dist/lib");
|
||||
$parser->addMapping("dist/include", "dist/include");
|
||||
$parser->addMapping("dist/idl", "dist/idl");
|
||||
$parser->addMapping("xpiroot", "xpiroot");
|
||||
$parser->addMapping("approot", "approot");
|
||||
$parser->addMapping("installer", "installer");
|
||||
$parser->parse($packagesDir, $package);
|
||||
|
||||
print "Files:";
|
||||
my $files = $parser->{'files'};
|
||||
foreach my $result (keys %$files) {
|
||||
print "$files->{$result}\t$result";
|
||||
}
|
||||
print "";
|
||||
|
||||
@staticComps = MozParser::StaticComp::getComponents($parser);
|
||||
print "Static Components: ". scalar(@staticComps);
|
||||
foreach my $staticComp (@staticComps) {
|
||||
print "$staticComp->{'name'} ($staticComp->{'lib'})";
|
||||
}
|
||||
print "";
|
||||
|
||||
if ($reportUnpackaged) {
|
||||
%packaged = (%packaged,
|
||||
map({$_ => 1} values(%$files)));
|
||||
push @ignores, MozParser::Ignore::getIgnoreList($parser);
|
||||
}
|
||||
}
|
||||
|
||||
if ($reportUnpackaged) {
|
||||
print "Unpackaged files:";
|
||||
$alldist = `find dist/bin ! -type d`;
|
||||
@alldist = split /[\n\r]+/, $alldist;
|
||||
foreach $distFile (@alldist) {
|
||||
if (!exists(${packaged{$distFile}})
|
||||
&& grep($distFile =~ /$_/, @ignores) == 0) {
|
||||
print $distFile;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
sub GetTopSrcDir
|
||||
{
|
||||
my $rootDir = File::Spec->catdir(dirname($0), $DEPTH);
|
||||
my $savedCwd = cwd();
|
||||
|
||||
chdir $rootDir;
|
||||
$rootDir = cwd();
|
||||
chdir $savedCwd;
|
||||
return $rootDir;
|
||||
}
|
||||
@@ -1,179 +0,0 @@
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is Mozilla packaging code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Benjamin Smedberg <bsmedberg@covad.net>
|
||||
# Portions created by the Initial Developer are Copyright (C) 2003
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
# Master List of Packages
|
||||
#
|
||||
# This file lists package dependencies, and is
|
||||
# parsed by MozParser.pm (MozPackages::*)
|
||||
#
|
||||
# DO NOT ALTER THIS FILE WITHOUT APPROVAL FROM
|
||||
# Benjamin Smedberg <bsmedberg@covad.net>
|
||||
|
||||
# Since the packaging system obeys most configuration options, you normally
|
||||
# don't need to alter package files to build special configurations. Instead,
|
||||
# use the correct configure options to enable-disable features/extensions
|
||||
|
||||
nspr :
|
||||
nspr-devel :
|
||||
|
||||
# xpcom does not depend on NSPR because
|
||||
# they are separate RPMs
|
||||
xpcom :
|
||||
|
||||
# these are core files needed to bootstrap the xpi stub installer
|
||||
xpi-bootstrap : nspr xpcom
|
||||
|
||||
# The 'gecko' target builds minimo, embedding, GRE, and everything else. Don't
|
||||
# alter it without approval from dougt.
|
||||
gecko : nspr xpcom
|
||||
|
||||
# This package should eventually disappear. It includes prefs and
|
||||
# extras that *ought* to be in the gecko package, but can't be yet for
|
||||
# technical reasons). Don't even think about adding more to it.
|
||||
gecko-support :
|
||||
|
||||
# This will package the SDK, but it's not done yet
|
||||
gecko-devel :
|
||||
|
||||
# the build process builds many test programs and files, most of which
|
||||
# don't need to be packaged. But some people might want these files, so
|
||||
# we give them a package.
|
||||
xpcom-tests :
|
||||
gecko-tests : xpcom-tests
|
||||
|
||||
nss :
|
||||
# nss-devel in the future
|
||||
|
||||
# psm doesn't depend on nss because they are separate RPMs
|
||||
# although this might change if a GRE RPM comes to fruition
|
||||
psm :
|
||||
psm-support :
|
||||
# psm-devel in the future
|
||||
|
||||
# This package is locked down. Any significant changes must be approved by
|
||||
# dougt.
|
||||
gre : gecko nss psm
|
||||
|
||||
# This package will disappear as well. It contains embed.jar
|
||||
# xxxbsmedberg is there a way to not have to ship NSPR with applications?
|
||||
gre-support : nspr gecko-support psm-support
|
||||
|
||||
# wallet itself is part of gecko, but the viewers are not needed by FB, etc
|
||||
walletviewers :
|
||||
|
||||
xpfe-browser : nspr gecko-support psm-support walletviewers
|
||||
xpfe-lang-enUS :
|
||||
xpfe-locale-US :
|
||||
xpfe-default-US :
|
||||
xpfe-mailnews :
|
||||
xpfe-editor :
|
||||
|
||||
# the XPIs of the above packages contain install.js
|
||||
gre-xpi : gre ^xpi-bootstrap
|
||||
# the PSM XPI is for non-GRE platforms. On GRE platforms NSS/PSM are
|
||||
# integrated with the GRE.
|
||||
psm-xpi : nss psm
|
||||
xpfe-browser-xpi : xpfe-browser
|
||||
xpfe-lang-enUS-xpi : xpfe-lang-enUS
|
||||
xpfe-locale-US-xpi : xpfe-locale-US
|
||||
xpfe-default-US-xpi : xpfe-default-US
|
||||
xpfe-mailnews-xpi : xpfe-mailnews
|
||||
# xpfe-editor-xpi : xpfe-editor
|
||||
|
||||
#
|
||||
# various embedding targets
|
||||
#
|
||||
|
||||
# some use a separately-installed GRE
|
||||
mfcembed : gre-support walletviewers
|
||||
mfcembed-xpi : mfcembed
|
||||
|
||||
# some don't use a GRE (yet, maybe ever)
|
||||
minimo : gecko nss psm psm-support
|
||||
winembed : gecko nss psm psm-support walletviewers
|
||||
gtkembed : gecko nss psm psm-support walletviewers
|
||||
|
||||
# this currently has fb/tb ifdefs that make it impossible to package
|
||||
# independently of the particular app, which sucks... see bug 211849
|
||||
toolkit : gecko-support
|
||||
|
||||
# THE NEXT TWO ARE NOT COMPLETE, DON'T EXPECT THEM TO WORK CORRECTLY
|
||||
|
||||
# firebird (using separate GRE)
|
||||
browser : toolkit
|
||||
# thunderbird (using separate GRE)
|
||||
mail : toolkit
|
||||
|
||||
# Most extensions build the same files/XPI for both seamonkey and firebird
|
||||
venkman :
|
||||
venkman-xpi : venkman
|
||||
inspector :
|
||||
inspector-xpi : inspector
|
||||
chatzilla :
|
||||
chatzilla-xpi : chatzilla
|
||||
calendar :
|
||||
calendar-xpi : calendar
|
||||
|
||||
# Unless you do special release stuff, this just builds
|
||||
# a dummy XPI
|
||||
talkback :
|
||||
talkback-xpi : talkback
|
||||
|
||||
# the core spellcheck engine is split from the dictionaries
|
||||
spellcheck :
|
||||
spellcheck-enUS :
|
||||
|
||||
spellcheck-enUS-xpi : spellcheck spellcheck-enUS
|
||||
|
||||
# COMPLETE INSTALLATION TARGETS
|
||||
|
||||
# seamonkey installer packages. Right now these are only useful
|
||||
# for the unix installer. win32 & os2 use a specialty tool nsztool
|
||||
# and a special makeall.pl script
|
||||
seamonkey-installer-stub-en :
|
||||
seamonkey-installer-en :
|
||||
|
||||
# seamonkey "stub installer xpi"
|
||||
seamonkey-installer-stub-en-xpi :
|
||||
|
||||
seamonkeygre-enUS : xpfe-browser xpfe-lang-enUS xpfe-locale-US xpfe-default-US xpfe-mailnews xpfe-editor venkman inspector chatzilla talkback
|
||||
# seamonkey with the GRE (nightly tarball)
|
||||
seamonkeyall-enUS : seamonkeygre-enUS gre
|
||||
|
||||
# there are some runtime files that should never be packaged. In order for
|
||||
# the dump-packages "unpackaged files" warning to be meaningful, we need
|
||||
# to warn it about these files:
|
||||
unpackaged-files :
|
||||
@@ -1,278 +0,0 @@
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is Mozilla packaging scripts.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Benjamin Smedberg <bsmedberg@covad.net>.
|
||||
# Portions created by the Initial Developer are Copyright (C) 2003
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
sub PrintUsage
|
||||
{
|
||||
print
|
||||
"stage-packages.pl
|
||||
|
||||
Parses package list and package files, and copies (stages) the files
|
||||
for a set of packages to a staging area. It will optionally also
|
||||
create a tarball from the package.
|
||||
|
||||
Usage
|
||||
|
||||
perl stage-packages.pl [options] packages...
|
||||
|
||||
-c, --command-handler=handler[,handler...]
|
||||
Specify a comma-separated list of command handlers. Currently
|
||||
recognized handlers are xptmerge, xptdist, touch, preprocess,
|
||||
optional, exec, and staticcomp.
|
||||
|
||||
-d, --compute-disk-space
|
||||
This sets environment variables before preprocessing based on
|
||||
the disk space used by the package(s). Used mainly by install.js
|
||||
scripts.
|
||||
|
||||
--dmg-volume-name
|
||||
If '--make-package dmg=file' is specified, a dmg package name must
|
||||
be specified.
|
||||
|
||||
-i, --ignore-missing
|
||||
Silently continue when a file listed in a package is missing. NOT
|
||||
RECOMMENDED. See -w
|
||||
|
||||
-f, --force-copy
|
||||
By default, files will be symlinked instead of being copied, if
|
||||
that would not cause problems. This flags forces a true copy.
|
||||
|
||||
--make-package packagetype=file
|
||||
After staging, this flag will make a tarball \"file\". Currently
|
||||
recognized package types are xpi, zip, tgz, bz2, and dmg.
|
||||
|
||||
-m, --mapping sourcepath=destpath
|
||||
Specifies mappings for the staging process. A common mapping would
|
||||
be --mapping dist/bin=bin --mapping xpiroot/=
|
||||
|
||||
-o, --objdir=path
|
||||
The build directory. Default is the source directory.
|
||||
|
||||
-l, --package-list=file
|
||||
The packages list. Defaults to srcdir/build/package/packages.list
|
||||
|
||||
-p, --packages-dir=path
|
||||
The directory of package files. Defaults to objdir/dist/packages
|
||||
|
||||
-s, --stage-directory
|
||||
The directory to which files should be copied. This directory
|
||||
is cleared before use. Default is objdir/stage
|
||||
|
||||
-v, --verbose
|
||||
Report more status information about actions being performed. This
|
||||
option may be listed up to three times.
|
||||
|
||||
-w, --warn-missing
|
||||
Issue a warning when a file listed in a package is missing. The
|
||||
default behavior is to abort.
|
||||
|
||||
-x, --xpt-merge-file=file
|
||||
If the xptmerge command handler is specified, this indicates
|
||||
the actual file resulting from the merge. The default places the
|
||||
merged XPT file into dist/bin/components in the package, using the
|
||||
name of the first package on the command line.\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
use File::Spec;
|
||||
use File::Path;
|
||||
use Getopt::Long;
|
||||
use File::Basename;
|
||||
use Cwd;
|
||||
|
||||
$DEPTH = "../..";
|
||||
$topsrcdir = GetTopSrcDir();
|
||||
push @INC, "$topsrcdir/build/package";
|
||||
require MozPackager;
|
||||
|
||||
$preprocessor = "$topsrcdir/config/preprocessor.pl";
|
||||
$packageList = "$topsrcdir/build/package/packages.list";
|
||||
$objdir = $topsrcdir;
|
||||
|
||||
Getopt::Long::Configure ("bundling");
|
||||
|
||||
GetOptions("help|h|?" => \&PrintUsage,
|
||||
"objdir|o=s" => \$objdir,
|
||||
"package-list|l=s" => \$packageList,
|
||||
"packages-dir|p=s" => \$packagesDir,
|
||||
"warn-missing|w" => \$warnMissing,
|
||||
"ignore-missing|i" => \$ignoreMissing,
|
||||
"verbose|v+" => \$MozPackager::verbosity,
|
||||
"command-handlers|c=s" => \@handlers,
|
||||
"xpt-merge-file|x=s" => \$xptMergeFile,
|
||||
"stage-directory|s=s" => \$stageDir,
|
||||
"mapping|m=s" => \%mappings,
|
||||
"force-copy|f" => \$MozPackager::forceCopy,
|
||||
"make-package=s" => \%makePackages,
|
||||
"dmg-volume-name=s" => \$dmgVolumeName,
|
||||
"compute-disk-space|d" => \$calcDiskSpace);
|
||||
|
||||
@handlers = split(/,/,join(',',@handlers));
|
||||
|
||||
if ($packagesDir) {
|
||||
$packagesDir = File::Spec->rel2abs($packagesDir);
|
||||
} else {
|
||||
$packagesDir = File::Spec->catdir("dist", "packages")
|
||||
}
|
||||
if ($stageDir) {
|
||||
$stageDir = File::Spec->rel2abs($stageDir);
|
||||
} else {
|
||||
$stageDir = "stage";
|
||||
}
|
||||
|
||||
foreach $packageType (keys %makePackages) {
|
||||
$makePackages{$packageType} = File::Spec->rel2abs($makePackages{$packageType});
|
||||
}
|
||||
|
||||
chdir $objdir;
|
||||
-d "dist" || die("directory dist/ not found... perhaps you forgot to specify --objdir?");
|
||||
|
||||
MozPackager::_verbosePrint(1, "removing $stageDir");
|
||||
if (-d $stageDir) {
|
||||
rmtree($stageDir) || die ("Could not remove '$stageDir'");
|
||||
}
|
||||
|
||||
$MozParser::missingFiles = 2 if $ignoreMissing;
|
||||
$MozParser::missingFiles = 1 if $warnMissing;
|
||||
|
||||
MozPackages::parsePackageList($packageList);
|
||||
|
||||
my @packages;
|
||||
foreach my $package (@ARGV) {
|
||||
push @packages, MozPackages::getPackagesFor($package);
|
||||
$xptMergeFile = "dist/bin/components/$package.xpt" if !$xptMergeFile;
|
||||
}
|
||||
|
||||
my $parser = new MozParser;
|
||||
my $xptMerge = 0;
|
||||
my $preprocess = 0;
|
||||
my $doExec = 0;
|
||||
my $doTouch = 0;
|
||||
|
||||
HANDLER: foreach my $handler (@handlers) {
|
||||
if ($handler eq "xptmerge") {
|
||||
MozParser::XPTMerge::add($parser);
|
||||
$xptMerge = 1;
|
||||
next HANDLER;
|
||||
}
|
||||
if ($handler eq "xptdist") {
|
||||
MozParser::XPTDist::add($parser);
|
||||
next HANDLER;
|
||||
}
|
||||
if ($handler eq "touch") {
|
||||
my $dummyFile = File::Spec->catfile("dist", "dummy-file");
|
||||
MozParser::Touch::add($parser);
|
||||
$doTouch = 1;
|
||||
next HANDLER;
|
||||
}
|
||||
if ($handler eq "preprocess") {
|
||||
MozParser::Preprocess::add($parser);
|
||||
$preprocess = 1;
|
||||
next HANDLER;
|
||||
}
|
||||
if ($handler eq "optional") {
|
||||
MozParser::Optional::add($parser);
|
||||
next HANDLER;
|
||||
}
|
||||
if ($handler eq "exec") {
|
||||
MozParser::Exec::add($parser);
|
||||
$doExec = 1;
|
||||
next HANDLER;
|
||||
}
|
||||
if ($handler eq "staticcomp") {
|
||||
$parser->addCommand('staticcomp', \&MozParser::Ignore::ignoreFunc);
|
||||
next HANDLER;
|
||||
}
|
||||
die("Unrecognized command-handler $handler");
|
||||
}
|
||||
|
||||
foreach my $mapping (keys %mappings) {
|
||||
$parser->addMapping($mapping, $mappings{$mapping});
|
||||
}
|
||||
|
||||
$parser->parse($packagesDir, @packages);
|
||||
|
||||
MozStage::stage($parser, $stageDir);
|
||||
|
||||
if ($xptMerge) {
|
||||
MozParser::XPTMerge::mergeTo($parser, MozPackager::joinfile($stageDir, $parser->findMapping($xptMergeFile)));
|
||||
}
|
||||
|
||||
if ($doTouch) {
|
||||
MozParser::Touch::touchTo($parser, $stageDir);
|
||||
}
|
||||
|
||||
if ($calcDiskSpace) {
|
||||
MozPackager::calcDiskSpace($stageDir)
|
||||
}
|
||||
|
||||
if ($preprocess) {
|
||||
MozParser::Preprocess::preprocessTo($parser, $preprocessor, $stageDir);
|
||||
}
|
||||
|
||||
if ($doExec) {
|
||||
MozParser::Exec::exec($parser, $stageDir);
|
||||
}
|
||||
|
||||
foreach $packageType (keys %makePackages) {
|
||||
my $packageFunc;
|
||||
if ($packageType eq 'xpi') {
|
||||
$packageFunc = \&MozStage::makeZIP;
|
||||
} elsif ($packageType eq 'zip') {
|
||||
$packageFunc = \&MozStage::makeZIP;
|
||||
} elsif ($packageType eq 'tgz') {
|
||||
$packageFunc = \&MozStage::makeTGZ;
|
||||
} elsif ($packageType eq 'bz2') {
|
||||
$packageFunc = \&MozStage::makeBZ2;
|
||||
} elsif ($packageType eq 'dmg') {
|
||||
die "--dmg-volume-name must be specified." if !defined($dmgVolumeName);
|
||||
$packageFunc = \&MozStage::makeDMG;
|
||||
} else {
|
||||
die "Unknown package type: '$packageType'";
|
||||
}
|
||||
|
||||
&$packageFunc($stageDir, $makePackages{$packageType}, $topsrcdir, $dmgVolumeName);
|
||||
}
|
||||
|
||||
sub GetTopSrcDir
|
||||
{
|
||||
my $rootDir = File::Spec->catdir(dirname($0), $DEPTH);
|
||||
my $savedCwd = cwd();
|
||||
|
||||
chdir $rootDir;
|
||||
$rootDir = cwd();
|
||||
chdir $savedCwd;
|
||||
return $rootDir;
|
||||
}
|
||||
@@ -1,167 +0,0 @@
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is Mozilla packaging scripts.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Benjamin Smedberg <bsmedberg@covad.net>.
|
||||
# Portions created by the Initial Developer are Copyright (C) 2003
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
sub PrintUsage
|
||||
{
|
||||
print
|
||||
"static-comps.pl
|
||||
|
||||
Parses package list and package files, and outputs static module
|
||||
names and/or the libraries needed to link a static build.
|
||||
|
||||
Usage
|
||||
|
||||
perl static-comps.pl [options] packages...
|
||||
|
||||
-i, --libs=file
|
||||
Output the list of static component libs to 'file'.
|
||||
|
||||
-m, --module-names=file
|
||||
Output the list of static component module names to 'file'.
|
||||
|
||||
-o, --objdir=path
|
||||
The build directory. Default is the source directory.
|
||||
|
||||
-l, --package-list=file
|
||||
The packages list. Defaults to srcdir/build/package/packages.list
|
||||
|
||||
-p, --packages-dir=path
|
||||
The directory of package files. Defaults to objdir/dist/packages
|
||||
|
||||
-v, --verbose
|
||||
Report more status information about actions being performed. This
|
||||
option may be listed up to three times.";
|
||||
|
||||
exit 1;
|
||||
}
|
||||
|
||||
use File::Spec;
|
||||
use File::Path;
|
||||
use Getopt::Long;
|
||||
use File::Basename;
|
||||
use Cwd;
|
||||
|
||||
$DEPTH = "../..";
|
||||
$topsrcdir = GetTopSrcDir();
|
||||
push @INC, "$topsrcdir/build/package";
|
||||
require MozPackager;
|
||||
|
||||
$preprocessor = "$topsrcdir/config/preprocessor.pl";
|
||||
$packageList = "$topsrcdir/build/package/packages.list";
|
||||
$objdir = $topsrcdir;
|
||||
|
||||
Getopt::Long::Configure ("bundling");
|
||||
|
||||
GetOptions("help|h|?" => \&PrintUsage,
|
||||
"objdir|o=s" => \$objdir,
|
||||
"package-list|l=s" => \$packageList,
|
||||
"packages-dir|p=s" => \$packagesDir,
|
||||
"verbose|v+" => \$MozPackager::verbosity,
|
||||
"libs|i=s" => \$libsFilename,
|
||||
"modules-names|m=s" => \$modulesFilename);
|
||||
|
||||
if ($packagesDir) {
|
||||
$packagesDir = File::Spec->rel2abs($packagesDir);
|
||||
} else {
|
||||
$packagesDir = File::Spec->catdir("dist", "packages")
|
||||
}
|
||||
|
||||
if (! ($libsFilename || $modulesFilename)) {
|
||||
PrintUsage();
|
||||
}
|
||||
|
||||
if ($libsFilename) {
|
||||
open $libsFile, ">$libsFilename" ||
|
||||
die("Could not open '$libsFilename' for writing.");
|
||||
}
|
||||
if ($modulesFilename) {
|
||||
open $modulesFile, ">$modulesFilename" ||
|
||||
die("Could not open '$modulesFilename' for writing.");
|
||||
}
|
||||
|
||||
chdir $objdir;
|
||||
-d "dist" || die("directory dist/ not found... perhaps you forgot to specify --objdir?");
|
||||
|
||||
# At the point we're linking libs, we don't give a rat's ass
|
||||
# about missing chrome files and whatnot.
|
||||
$MozParser::missingFiles = 2;
|
||||
|
||||
MozPackages::parsePackageList($packageList);
|
||||
|
||||
my @packages;
|
||||
foreach my $package (@ARGV) {
|
||||
push @packages, MozPackages::getPackagesFor($package);
|
||||
$xptMergeFile = "dist/bin/components/$package.xpt" if !$xptMergeFile;
|
||||
}
|
||||
|
||||
my $parser = new MozParser;
|
||||
|
||||
$parser->addCommand('xpt', \&MozParser::Ignore::ignoreFunc);
|
||||
$parser->addCommand('touch', \&MozParser::Ignore::ignoreFunc);
|
||||
$parser->addCommand('ignore', \&MozParser::Ignore::ignoreFunc);
|
||||
MozParser::Optional::add($parser);
|
||||
MozParser::Preprocess::add($parser);
|
||||
MozParser::Exec::add($parser);
|
||||
MozParser::StaticComp::add($parser);
|
||||
|
||||
$parser->addMapping("dist/bin", "dummy");
|
||||
$parser->addMapping("approot");
|
||||
|
||||
$parser->parse($packagesDir, @packages);
|
||||
@staticComps = MozParser::StaticComp::getComponents($parser);
|
||||
|
||||
foreach $staticComp (@staticComps) {
|
||||
print $libsFile "$staticComp->{'lib'}\n"
|
||||
if ($libsFile);
|
||||
print $modulesFile "$staticComp->{'name'}\n"
|
||||
if ($modulesFile);
|
||||
}
|
||||
|
||||
close $libsFile if ($libsFile);
|
||||
close $componentsFile if ($modulesFile);
|
||||
|
||||
exit 0;
|
||||
|
||||
sub GetTopSrcDir
|
||||
{
|
||||
my $rootDir = File::Spec->catdir(dirname($0), $DEPTH);
|
||||
my $savedCwd = cwd();
|
||||
|
||||
chdir $rootDir;
|
||||
$rootDir = cwd();
|
||||
chdir $savedCwd;
|
||||
return $rootDir;
|
||||
}
|
||||
@@ -1,100 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is Mozilla Communicator client code,
|
||||
# released March 31, 1998.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape Communications
|
||||
# Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
DEPTH = ../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = build
|
||||
PACKAGE_FILE = unix.pkg
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
# Hack to make sure that mozilla-config has the proper nspr dependencies
|
||||
ifdef MOZ_NATIVE_NSPR
|
||||
FULL_NSPR_CFLAGS=$(shell $(NSPR_CONFIG) --cflags)
|
||||
FULL_NSPR_LIBS=$(shell $(NSPR_CONFIG) --libs)
|
||||
else
|
||||
FULL_NSPR_CFLAGS=-I$(includedir)/nspr
|
||||
FULL_NSPR_LIBS=$(subst -L$(libdir),-L$(mozappdir),$(shell $(DEPTH)/nsprpub/config/nspr-config --libs))
|
||||
endif
|
||||
|
||||
ifdef MOZ_ENABLE_GTK
|
||||
SUPERWIN_LIBS=-lgtksuperwin
|
||||
endif
|
||||
|
||||
_DEFS = $(subst \,\\\\\,$(ACDEFINES))
|
||||
|
||||
pkg_config_files=mozilla-nspr.pc mozilla-xpcom.pc mozilla-js.pc \
|
||||
mozilla-gtkmozembed.pc mozilla-nss.pc \
|
||||
mozilla-plugin.pc
|
||||
|
||||
GARBAGE = $(pkg_config_files) mozilla-config
|
||||
|
||||
mozilla-config:: mozilla-config.in Makefile.in Makefile $(DEPTH)/config/autoconf.mk
|
||||
cat $< | sed \
|
||||
-e "s|%prefix%|$(prefix)|" \
|
||||
-e "s|%exec_prefix%|$(exec_prefix)|" \
|
||||
-e "s|%includedir%|$(includedir)|" \
|
||||
-e "s|%libdir%|$(mozappdir)|" \
|
||||
-e "s|%MOZILLA_VERSION%|$(MOZILLA_VERSION)|" \
|
||||
-e "s|%DEFS%|$(_DEFS)|" \
|
||||
-e "s|%FULL_NSPR_LIBS%|$(FULL_NSPR_LIBS)|" \
|
||||
-e "s|%FULL_NSPR_CFLAGS%|$(FULL_NSPR_CFLAGS)|" > $@
|
||||
|
||||
%.pc : %.pc.in Makefile.in Makefile $(DEPTH)/config/autoconf.mk
|
||||
cat $< | sed \
|
||||
-e "s|%prefix%|$(prefix)|" \
|
||||
-e "s|%exec_prefix%|$(exec_prefix)|" \
|
||||
-e "s|%includedir%|$(includedir)|" \
|
||||
-e "s|%libdir%|$(mozappdir)|" \
|
||||
-e "s|%MOZILLA_VERSION%|$(MOZILLA_VERSION)|" \
|
||||
-e "s|%SUPERWIN_LIBS%|$(SUPERWIN_LIBS)|" \
|
||||
-e "s|%DEFS%|$(_DEFS)|" \
|
||||
-e "s|%FULL_NSPR_LIBS%|$(FULL_NSPR_LIBS)|" \
|
||||
-e "s|%FULL_NSPR_CFLAGS%|$(FULL_NSPR_CFLAGS)|" > $@
|
||||
|
||||
libs:: mozilla-config
|
||||
chmod 755 $<
|
||||
$(INSTALL) -m 755 $< $(DIST)/bin
|
||||
|
||||
libs:: $(srcdir)/run-mozilla.sh $(pkg_config_files)
|
||||
$(INSTALL) $< $(DIST)/bin
|
||||
|
||||
ifeq ($(OS_ARCH),OpenVMS)
|
||||
libs:: vms/mozilla.com vms/install.com vms/getinfo.com
|
||||
$(INSTALL) $? $(DIST)/bin
|
||||
endif
|
||||
|
||||
install:: run-mozilla.sh
|
||||
$(SYSINSTALL) $(IFLAGS2) $< $(DESTDIR)$(mozappdir)
|
||||
|
||||
install:: mozilla-config
|
||||
$(SYSINSTALL) $(IFLAGS2) $< $(DESTDIR)$(bindir)
|
||||
|
||||
install:: $(pkg_config_files)
|
||||
chmod 644 $<
|
||||
$(SYSINSTALL) $(IFLAGS1) $(pkg_config_files) \
|
||||
$(DESTDIR)$(libdir)/pkgconfig
|
||||
@@ -1,454 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
#
|
||||
##
|
||||
## Usage:
|
||||
##
|
||||
## $ run-mozilla.sh [options] [program] [program arguments]
|
||||
##
|
||||
## This script is meant to run a mozilla program from the mozilla
|
||||
## source tree. This is mostly useful to folks hacking on mozilla.
|
||||
##
|
||||
## The script will setup all the environment voodoo needed to make
|
||||
## mozilla work.
|
||||
##
|
||||
## In the absence of a program being specified on the command line, the
|
||||
## script determines which program to run in this order of existence.
|
||||
##
|
||||
## 1. The program named foo-bin where foo is the name of this script,
|
||||
## (e.g. rename this script as TestEmbed and it will look for
|
||||
## TestEmbed-bin).
|
||||
## 2. The "viewer" executable.
|
||||
## 3. The "mozilla-bin" executable
|
||||
#
|
||||
## Standard shell script disclaimer blurb thing:
|
||||
##
|
||||
## This script is a hack. It's brute force. It's horrible.
|
||||
## It doesn't use Artificial Intelligence. It doesn't use Virtual Reality.
|
||||
## It's not perl. It's not python. It probably won't work unchanged on
|
||||
## the "other" thousands of unices. But it worksforme. --ramiro
|
||||
##
|
||||
## If you have an improvement, patch, idea, whatever, on how to make this
|
||||
## script better, post it here:
|
||||
##
|
||||
## news://news.mozilla.org/netscape.public.mozilla.patches
|
||||
## news://news.mozilla.org/netscape.public.mozilla.unix
|
||||
##
|
||||
#
|
||||
##
|
||||
## Potential improvements:
|
||||
##
|
||||
## + Run from anywhere in the tree.
|
||||
## + Run ldd on the program and report missing dlls
|
||||
## + Deal with NSPR in the tree
|
||||
## + All the other unices
|
||||
##
|
||||
#
|
||||
cmdname=`basename "$0"`
|
||||
MOZ_DIST_BIN=`dirname "$0"`
|
||||
MOZ_DEFAULT_NAME="./${cmdname}-bin"
|
||||
MOZ_APPRUNNER_NAME="./mozilla-bin"
|
||||
MOZ_VIEWER_NAME="./viewer"
|
||||
MOZ_PROGRAM=""
|
||||
|
||||
exitcode=0
|
||||
#
|
||||
##
|
||||
## Functions
|
||||
##
|
||||
##########################################################################
|
||||
moz_usage()
|
||||
{
|
||||
echo "Usage: ${cmdname} [options] [program]"
|
||||
echo ""
|
||||
echo " options:"
|
||||
echo ""
|
||||
echo " -g Run in debugger."
|
||||
echo " --debug"
|
||||
echo ""
|
||||
echo " -d debugger Debugger to use."
|
||||
echo " --debugger debugger"
|
||||
echo ""
|
||||
echo " Examples:"
|
||||
echo ""
|
||||
echo " Run the viewer"
|
||||
echo ""
|
||||
echo " ${cmdname} viewer"
|
||||
echo ""
|
||||
echo " Run the mozilla-bin binary"
|
||||
echo ""
|
||||
echo " ${cmdname} mozilla-bin"
|
||||
echo ""
|
||||
echo " Debug the viewer in a debugger"
|
||||
echo ""
|
||||
echo " ${cmdname} -g viewer"
|
||||
echo ""
|
||||
echo " Debug the mozilla-bin binary in gdb"
|
||||
echo ""
|
||||
echo " ${cmdname} -g mozilla-bin -d gdb"
|
||||
echo ""
|
||||
return 0
|
||||
}
|
||||
##########################################################################
|
||||
moz_bail()
|
||||
{
|
||||
message=$1
|
||||
echo
|
||||
echo "$cmdname: $message"
|
||||
echo
|
||||
exit 1
|
||||
}
|
||||
##########################################################################
|
||||
moz_test_binary()
|
||||
{
|
||||
binary=$1
|
||||
if [ -f "$binary" ]
|
||||
then
|
||||
if [ -x "$binary" ]
|
||||
then
|
||||
return 1
|
||||
fi
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
##########################################################################
|
||||
moz_get_debugger()
|
||||
{
|
||||
debuggers="ddd gdb dbx bdb"
|
||||
debugger="notfound"
|
||||
done="no"
|
||||
for d in $debuggers
|
||||
do
|
||||
moz_test_binary /bin/type
|
||||
if [ $? -eq 1 ]
|
||||
then
|
||||
dpath=`type ${d} | awk '{print $3;}' | sed -e 's/\.$//'`
|
||||
else
|
||||
dpath=`which ${d}`
|
||||
fi
|
||||
if [ -x "$dpath" ]
|
||||
then
|
||||
debugger=$dpath
|
||||
break
|
||||
fi
|
||||
done
|
||||
echo $debugger
|
||||
return 0
|
||||
}
|
||||
##########################################################################
|
||||
moz_run_program()
|
||||
{
|
||||
prog=$MOZ_PROGRAM
|
||||
##
|
||||
## Make sure the program is executable
|
||||
##
|
||||
if [ ! -x "$prog" ]
|
||||
then
|
||||
moz_bail "Cannot execute $prog."
|
||||
fi
|
||||
##
|
||||
## Use md5sum to crc a core file. If md5sum is not found on the system,
|
||||
## then dont debug core files.
|
||||
##
|
||||
moz_test_binary /bin/type
|
||||
if [ $? -eq 1 ]
|
||||
then
|
||||
crc_prog=`type md5sum 2>/dev/null | awk '{print $3;}' 2>/dev/null | sed -e 's/\.$//'`
|
||||
else
|
||||
crc_prog=`which md5sum 2>/dev/null`
|
||||
fi
|
||||
if [ -x "$crc_prog" ]
|
||||
then
|
||||
DEBUG_CORE_FILES=1
|
||||
fi
|
||||
if [ "$DEBUG_CORE_FILES" ]
|
||||
then
|
||||
crc_old=
|
||||
if [ -f core ]
|
||||
then
|
||||
crc_old=`$crc_prog core | awk '{print $1;}' `
|
||||
fi
|
||||
fi
|
||||
##
|
||||
## Run the program
|
||||
##
|
||||
"$prog" ${1+"$@"}
|
||||
exitcode=$?
|
||||
if [ "$DEBUG_CORE_FILES" ]
|
||||
then
|
||||
if [ -f core ]
|
||||
then
|
||||
crc_new=`$crc_prog core | awk '{print $1;}' `
|
||||
fi
|
||||
fi
|
||||
if [ "$crc_old" != "$crc_new" ]
|
||||
then
|
||||
printf "\n\nOh no! %s just dumped a core file.\n\n" $prog
|
||||
printf "Do you want to debug this ? "
|
||||
printf "You need a lot of memory for this, so watch out ? [y/n] "
|
||||
read ans
|
||||
if [ "$ans" = "y" ]
|
||||
then
|
||||
debugger=`moz_get_debugger`
|
||||
if [ -x "$debugger" ]
|
||||
then
|
||||
echo "$debugger $prog core"
|
||||
|
||||
# See http://www.mozilla.org/unix/debugging-faq.html
|
||||
# For why LD_BIND_NOW is needed
|
||||
LD_BIND_NOW=1; export LD_BIND_NOW
|
||||
|
||||
$debugger "$prog" core
|
||||
else
|
||||
echo "Could not find a debugger on your system."
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
}
|
||||
##########################################################################
|
||||
moz_debug_program()
|
||||
{
|
||||
prog=$MOZ_PROGRAM
|
||||
##
|
||||
## Make sure the program is executable
|
||||
##
|
||||
if [ ! -x "$prog" ]
|
||||
then
|
||||
moz_bail "Cannot execute $prog."
|
||||
fi
|
||||
if [ -n "$moz_debugger" ]
|
||||
then
|
||||
moz_test_binary /bin/type
|
||||
if [ $? -eq 1 ]
|
||||
then
|
||||
debugger=`type $moz_debugger | awk '{print $3;}' | sed -e 's/\.$//'`
|
||||
else
|
||||
debugger=`which $moz_debugger`
|
||||
fi
|
||||
else
|
||||
debugger=`moz_get_debugger`
|
||||
fi
|
||||
if [ -x "$debugger" ]
|
||||
then
|
||||
echo "set args ${1+"$@"}" > /tmp/mozargs$$
|
||||
# If you are not using ddd, gdb and know of a way to convey the arguments
|
||||
# over to the prog then add that here- Gagan Saksena 03/15/00
|
||||
case `basename $debugger` in
|
||||
gdb) echo "$debugger $prog -x /tmp/mozargs$$"
|
||||
$debugger "$prog" -x /tmp/mozargs$$
|
||||
exitcode=$?
|
||||
;;
|
||||
ddd) echo "$debugger --debugger \"gdb -x /tmp/mozargs$$\" $prog"
|
||||
$debugger --debugger "gdb -x /tmp/mozargs$$" "$prog"
|
||||
exitcode=$?
|
||||
;;
|
||||
*) echo "$debugger $prog ${1+"$@"}"
|
||||
$debugger "$prog" ${1+"$@"}
|
||||
exitcode=$?
|
||||
;;
|
||||
esac
|
||||
/bin/rm /tmp/mozargs$$
|
||||
else
|
||||
echo "Could not find a debugger on your system."
|
||||
fi
|
||||
}
|
||||
##########################################################################
|
||||
##
|
||||
## Command line arg defaults
|
||||
##
|
||||
moz_debug=0
|
||||
moz_debugger=""
|
||||
#
|
||||
##
|
||||
## Parse the command line
|
||||
##
|
||||
while [ $# -gt 0 ]
|
||||
do
|
||||
case $1 in
|
||||
-g | --debug)
|
||||
moz_debug=1
|
||||
shift
|
||||
;;
|
||||
-d | --debugger)
|
||||
moz_debugger=$2;
|
||||
if [ "${moz_debugger}" != "" ]; then
|
||||
shift 2
|
||||
else
|
||||
echo "-d requires an argument"
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
break;
|
||||
;;
|
||||
esac
|
||||
done
|
||||
#
|
||||
##
|
||||
## Program name given in $1
|
||||
##
|
||||
if [ $# -gt 0 ]
|
||||
then
|
||||
MOZ_PROGRAM=$1
|
||||
shift
|
||||
fi
|
||||
##
|
||||
## Program not given, try to guess a default
|
||||
##
|
||||
if [ -z "$MOZ_PROGRAM" ]
|
||||
then
|
||||
##
|
||||
## Try this script's name with '-bin' appended
|
||||
##
|
||||
if [ -x "$MOZ_DEFAULT_NAME" ]
|
||||
then
|
||||
MOZ_PROGRAM=$MOZ_DEFAULT_NAME
|
||||
## Try viewer (this should be deprecated)
|
||||
##
|
||||
elif [ -x "$MOZ_VIEWER_NAME" ]
|
||||
then
|
||||
MOZ_PROGRAM=$MOZ_VIEWER_NAME
|
||||
##
|
||||
## Try mozilla-bin
|
||||
##
|
||||
elif [ -x "$MOZ_APPRUNNER_NAME" ]
|
||||
then
|
||||
MOZ_PROGRAM=$MOZ_APPRUNNER_NAME
|
||||
fi
|
||||
fi
|
||||
#
|
||||
#
|
||||
##
|
||||
## Make sure the program is executable
|
||||
##
|
||||
if [ ! -x "$MOZ_PROGRAM" ]
|
||||
then
|
||||
moz_bail "Cannot execute $MOZ_PROGRAM."
|
||||
fi
|
||||
#
|
||||
##
|
||||
## Set MOZILLA_FIVE_HOME
|
||||
##
|
||||
MOZILLA_FIVE_HOME=$MOZ_DIST_BIN
|
||||
|
||||
##
|
||||
## Set LD_LIBRARY_PATH
|
||||
##
|
||||
## In order for components to register correctly without a pre-existent compreg.dat
|
||||
## GRE_HOME must be set to a compatible GRE path
|
||||
##
|
||||
LD_LIBRARY_PATH=${GRE_HOME+"$GRE_HOME:"}${MOZ_DIST_BIN}:${MOZ_DIST_BIN}/plugins${LD_LIBRARY_PATH+":$LD_LIBRARY_PATH"}
|
||||
if [ -n "$LD_LIBRARYN32_PATH" ]
|
||||
then
|
||||
LD_LIBRARYN32_PATH=${GRE_HOME+"$GRE_HOME:"}${MOZ_DIST_BIN}:${MOZ_DIST_BIN}/plugins${LD_LIBRARYN32_PATH+":$LD_LIBRARYN32_PATH"}
|
||||
fi
|
||||
if [ -n "$LD_LIBRARYN64_PATH" ]
|
||||
then
|
||||
LD_LIBRARYN64_PATH=${GRE_HOME+"$GRE_HOME:"}${MOZ_DIST_BIN}:${MOZ_DIST_BIN}/plugins${LD_LIBRARYN64_PATH+":$LD_LIBRARYN64_PATH"}
|
||||
fi
|
||||
if [ -n "$LD_LIBRARY_PATH_64" ]; then
|
||||
LD_LIBRARY_PATH_64=${GRE_HOME+"$GRE_HOME:"}${MOZ_DIST_BIN}:${MOZ_DIST_BIN}/plugins${LD_LIBRARY_PATH_64+":$LD_LIBRARY_PATH_64"}
|
||||
fi
|
||||
#
|
||||
#
|
||||
## Set SHLIB_PATH for HPUX
|
||||
SHLIB_PATH=${GRE_HOME+"$GRE_HOME:"}${MOZ_DIST_BIN}${SHLIB_PATH+":$SHLIB_PATH"}
|
||||
#
|
||||
## Set LIBPATH for AIX
|
||||
LIBPATH=${GRE_HOME+"$GRE_HOME:"}${MOZ_DIST_BIN}${LIBPATH+":$LIBPATH"}
|
||||
#
|
||||
## Set DYLD_LIBRARY_PATH for Mac OS X (Darwin)
|
||||
DYLD_LIBRARY_PATH=${MOZ_DIST_BIN}:${GRE_HOME}${DYLD_LIBRARY_PATH+":$DYLD_LIBRARY_PATH"}
|
||||
#
|
||||
## Set LIBRARY_PATH for BeOS
|
||||
LIBRARY_PATH=${GRE_HOME+"$GRE_HOME:"}${MOZ_DIST_BIN}:${MOZ_DIST_BIN}/components${LIBRARY_PATH+":$LIBRARY_PATH"}
|
||||
#
|
||||
## Set ADDON_PATH for BeOS
|
||||
ADDON_PATH=${MOZ_DIST_BIN}${ADDON_PATH+":$ADDON_PATH"}
|
||||
#
|
||||
## Solaris Xserver(Xsun) tuning - use shared memory transport if available
|
||||
if [ "$XSUNTRANSPORT" = "" ]
|
||||
then
|
||||
XSUNTRANSPORT="shmem"
|
||||
XSUNSMESIZE="512"
|
||||
export XSUNTRANSPORT XSUNSMESIZE
|
||||
fi
|
||||
## Populate XPSERVERLIST if it was not set yet
|
||||
if [ "$XPSERVERLIST" = "" ]
|
||||
then
|
||||
if [ -f /etc/init.d/xprint ] ; then
|
||||
XPSERVERLIST="`/bin/sh /etc/init.d/xprint get_xpserverlist`"
|
||||
if [ "$XPSERVERLIST" != "" ] ; then
|
||||
export XPSERVERLIST
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$moz_debug" -eq 1 ]
|
||||
then
|
||||
echo "MOZILLA_FIVE_HOME=$MOZILLA_FIVE_HOME"
|
||||
echo " LD_LIBRARY_PATH=$LD_LIBRARY_PATH"
|
||||
if [ -n "$LD_LIBRARYN32_PATH" ]
|
||||
then
|
||||
echo "LD_LIBRARYN32_PATH=$LD_LIBRARYN32_PATH"
|
||||
fi
|
||||
if [ -n "$LD_LIBRARYN64_PATH" ]
|
||||
then
|
||||
echo "LD_LIBRARYN64_PATH=$LD_LIBRARYN64_PATH"
|
||||
fi
|
||||
if [ -n "$LD_LIBRARY_PATH_64" ]; then
|
||||
echo "LD_LIBRARY_PATH_64=$LD_LIBRARY_PATH_64"
|
||||
fi
|
||||
if [ -n "$DISPLAY" ]; then
|
||||
echo "DISPLAY=$DISPLAY"
|
||||
fi
|
||||
if [ -n "$FONTCONFIG_PATH" ]; then
|
||||
echo "FONTCONFIG_PATH=$FONTCONFIG_PATH"
|
||||
fi
|
||||
if [ -n "$XPSERVERLIST" ]; then
|
||||
echo "XPSERVERLIST=$XPSERVERLIST"
|
||||
fi
|
||||
if [ -n "$MOZILLA_POSTSCRIPT_PRINTER_LIST" ]; then
|
||||
echo "MOZILLA_POSTSCRIPT_PRINTER_LIST=$MOZILLA_POSTSCRIPT_PRINTER_LIST"
|
||||
fi
|
||||
echo "DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH"
|
||||
echo " LIBRARY_PATH=$LIBRARY_PATH"
|
||||
echo " SHLIB_PATH=$SHLIB_PATH"
|
||||
echo " LIBPATH=$LIBPATH"
|
||||
echo " ADDON_PATH=$ADDON_PATH"
|
||||
echo " MOZ_PROGRAM=$MOZ_PROGRAM"
|
||||
echo " MOZ_TOOLKIT=$MOZ_TOOLKIT"
|
||||
echo " moz_debug=$moz_debug"
|
||||
echo " moz_debugger=$moz_debugger"
|
||||
fi
|
||||
#
|
||||
export MOZILLA_FIVE_HOME LD_LIBRARY_PATH
|
||||
export SHLIB_PATH LIBPATH LIBRARY_PATH ADDON_PATH DYLD_LIBRARY_PATH
|
||||
|
||||
if [ $moz_debug -eq 1 ]
|
||||
then
|
||||
moz_debug_program ${1+"$@"}
|
||||
else
|
||||
moz_run_program ${1+"$@"}
|
||||
fi
|
||||
|
||||
exit $exitcode
|
||||
@@ -1,12 +0,0 @@
|
||||
# it appears that all of our applications need this,
|
||||
# so this can be part of gecko-support packaged with every
|
||||
# application and the embedding packages
|
||||
|
||||
[gecko-support]
|
||||
dist/bin/run-mozilla.sh
|
||||
|
||||
[gecko-devel]
|
||||
dist/bin/mozilla-config
|
||||
|
||||
[unpackaged-files]
|
||||
!optional dist/bin/elf-dynstr-gc
|
||||
@@ -1,83 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998-2000 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
DEPTH = ../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = caps
|
||||
LIBRARY_NAME = caps
|
||||
EXPORT_LIBRARY = 1
|
||||
IS_COMPONENT = 1
|
||||
MODULE_NAME = nsSecurityManagerModule
|
||||
GRE_MODULE = 1
|
||||
|
||||
PACKAGE_FILE = caps.pkg
|
||||
|
||||
REQUIRES = xpcom \
|
||||
string \
|
||||
pref \
|
||||
js \
|
||||
dom \
|
||||
xpconnect \
|
||||
necko \
|
||||
jar \
|
||||
widget \
|
||||
plugin \
|
||||
intl \
|
||||
docshell \
|
||||
windowwatcher \
|
||||
content \
|
||||
$(NULL)
|
||||
|
||||
CPPSRCS = \
|
||||
nsPrincipal.cpp \
|
||||
nsSystemPrincipal.cpp \
|
||||
nsJSPrincipals.cpp \
|
||||
nsScriptSecurityManager.cpp \
|
||||
nsSecurityManagerFactory.cpp \
|
||||
$(NULL)
|
||||
|
||||
ifdef XPC_IDISPATCH_SUPPORT
|
||||
DEFINES += -DXPC_IDISPATCH_SUPPORT
|
||||
endif
|
||||
|
||||
EXTRA_DSO_LDOPTS = \
|
||||
$(LIBS_DIR) \
|
||||
$(ZLIB_LIBS) \
|
||||
$(MOZ_JS_LIBS) \
|
||||
$(MOZ_COMPONENT_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
CHROME_DIR = locales/en-US
|
||||
CHROME_L10N_DIR = communicator/locale/security
|
||||
|
||||
CHROME_L10N = \
|
||||
caps.properties \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
INCLUDES += -I$(srcdir)/../include
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
[gecko]
|
||||
#if SHARED_LIBRARY
|
||||
dist/bin/components/@SHARED_LIBRARY@
|
||||
#else
|
||||
!staticcomp @LIBRARY@ @MODULE_NAME@
|
||||
#endif
|
||||
!xpt dist/bin/components/caps.xpt
|
||||
@@ -1,32 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
DEPTH = ..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
DIRS = src tools
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
DEPTH = ../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = chrome
|
||||
LIBRARY_NAME = chrome
|
||||
EXPORT_LIBRARY = 1
|
||||
IS_COMPONENT = 1
|
||||
MODULE_NAME = nsChromeModule
|
||||
GRE_MODULE = 1
|
||||
|
||||
PACKAGE_FILE = chrome.pkg
|
||||
|
||||
REQUIRES = xpcom \
|
||||
string \
|
||||
rdf \
|
||||
content \
|
||||
xuldoc \
|
||||
gfx \
|
||||
layout \
|
||||
content \
|
||||
necko \
|
||||
dom \
|
||||
intl \
|
||||
widget \
|
||||
js \
|
||||
appshell \
|
||||
caps \
|
||||
pref \
|
||||
docshell \
|
||||
imglib2 \
|
||||
xpconnect \
|
||||
jar \
|
||||
$(NULL)
|
||||
|
||||
CPPSRCS = \
|
||||
nsChromeFactory.cpp \
|
||||
nsChromeRegistry.cpp \
|
||||
nsChromeUIDataSource.cpp \
|
||||
nsChromeProtocolHandler.cpp \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DSO_LDOPTS = \
|
||||
$(MOZ_COMPONENT_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
# since the chrome service has been forked, it is
|
||||
# part of the new toolkit, it is not part of the gecko core
|
||||
[toolkit]
|
||||
#if SHARED_LIBRARY
|
||||
dist/bin/components/@SHARED_LIBRARY@
|
||||
#else
|
||||
!staticcomp @LIBRARY@ @MODULE_NAME@
|
||||
#endif
|
||||
!xpt dist/bin/components/chrome.xpt
|
||||
@@ -1,769 +0,0 @@
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s): Stephen Lamm
|
||||
|
||||
# Build the Mozilla client.
|
||||
#
|
||||
# This needs CVSROOT set to work, e.g.,
|
||||
# setenv CVSROOT :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot
|
||||
# or
|
||||
# setenv CVSROOT :pserver:username%somedomain.org@cvs.mozilla.org:/cvsroot
|
||||
#
|
||||
# To checkout and build a tree,
|
||||
# 1. cvs co mozilla/client.mk
|
||||
# 2. cd mozilla
|
||||
# 3. gmake -f client.mk
|
||||
#
|
||||
# Other targets (gmake -f client.mk [targets...]),
|
||||
# checkout
|
||||
# build
|
||||
# clean (realclean is now the same as clean)
|
||||
# distclean
|
||||
#
|
||||
# See http://www.mozilla.org/build/unix.html for more information.
|
||||
#
|
||||
# Options:
|
||||
# MOZ_OBJDIR - Destination object directory
|
||||
# MOZ_CO_DATE - Date tag to use for checkout (default: none)
|
||||
# MOZ_CO_MODULE - Module to checkout (default: SeaMonkeyAll)
|
||||
# MOZ_CVS_FLAGS - Flags to pass cvs (default: -q -z3)
|
||||
# MOZ_CO_FLAGS - Flags to pass after 'cvs co' (default: -P)
|
||||
# MOZ_MAKE_FLAGS - Flags to pass to $(MAKE)
|
||||
# MOZ_CO_BRANCH - Branch tag (Deprecated. Use MOZ_CO_TAG below.)
|
||||
#
|
||||
|
||||
#######################################################################
|
||||
# Checkout Tags
|
||||
#
|
||||
# For branches, uncomment the MOZ_CO_TAG line with the proper tag,
|
||||
# and commit this file on that tag.
|
||||
MOZ_CO_TAG = PACKAGING_20030906_BRANCH
|
||||
NSPR_CO_TAG = NSPRPUB_PRE_4_2_CLIENT_BRANCH
|
||||
PSM_CO_TAG = PACKAGING_20030906_BRANCH
|
||||
NSS_CO_TAG = NSS_CLIENT_TAG
|
||||
LDAPCSDK_CO_TAG = ldapcsdk_50_client_branch
|
||||
ACCESSIBLE_CO_TAG = PACKAGING_20030906_BRANCH
|
||||
IMGLIB2_CO_TAG = PACKAGING_20030906_BRANCH
|
||||
IPC_CO_TAG = PACKAGING_20030906_BRANCH
|
||||
TOOLKIT_CO_TAG =
|
||||
BROWSER_CO_TAG =
|
||||
MAIL_CO_TAG =
|
||||
STANDALONE_COMPOSER_CO_TAG =
|
||||
BUILD_MODULES = all
|
||||
|
||||
#######################################################################
|
||||
# Defines
|
||||
#
|
||||
CVS = cvs
|
||||
|
||||
CWD := $(shell pwd)
|
||||
|
||||
ifeq "$(CWD)" "/"
|
||||
CWD := /.
|
||||
endif
|
||||
|
||||
ifneq (, $(wildcard client.mk))
|
||||
# Ran from mozilla directory
|
||||
ROOTDIR := $(shell dirname $(CWD))
|
||||
TOPSRCDIR := $(CWD)
|
||||
else
|
||||
# Ran from mozilla/.. directory (?)
|
||||
ROOTDIR := $(CWD)
|
||||
TOPSRCDIR := $(CWD)/mozilla
|
||||
endif
|
||||
|
||||
# on os2, TOPSRCDIR may have two forward slashes in a row, which doesn't
|
||||
# work; replace first instance with one forward slash
|
||||
TOPSRCDIR := $(shell echo "$(TOPSRCDIR)" | sed -e 's%//%/%')
|
||||
|
||||
ifndef TOPSRCDIR_MOZ
|
||||
TOPSRCDIR_MOZ=$(TOPSRCDIR)
|
||||
endif
|
||||
|
||||
# if ROOTDIR equals only drive letter (i.e. "C:"), set to "/"
|
||||
DIRNAME := $(shell echo "$(ROOTDIR)" | sed -e 's/^.://')
|
||||
ifeq ($(DIRNAME),)
|
||||
ROOTDIR := /.
|
||||
endif
|
||||
|
||||
AUTOCONF := autoconf
|
||||
MKDIR := mkdir
|
||||
SH := /bin/sh
|
||||
ifndef MAKE
|
||||
MAKE := gmake
|
||||
endif
|
||||
|
||||
CONFIG_GUESS_SCRIPT := $(wildcard $(TOPSRCDIR)/build/autoconf/config.guess)
|
||||
ifdef CONFIG_GUESS_SCRIPT
|
||||
CONFIG_GUESS = $(shell $(CONFIG_GUESS_SCRIPT))
|
||||
else
|
||||
_IS_FIRST_CHECKOUT := 1
|
||||
endif
|
||||
|
||||
####################################
|
||||
# CVS
|
||||
|
||||
# Add the CVS root to CVS_FLAGS if needed
|
||||
CVS_ROOT_IN_TREE := $(shell cat $(TOPSRCDIR)/CVS/Root 2>/dev/null)
|
||||
ifneq ($(CVS_ROOT_IN_TREE),)
|
||||
ifneq ($(CVS_ROOT_IN_TREE),$(CVSROOT))
|
||||
CVS_FLAGS := -d $(CVS_ROOT_IN_TREE)
|
||||
endif
|
||||
endif
|
||||
|
||||
CVSCO = $(strip $(CVS) $(CVS_FLAGS) co $(CVS_CO_FLAGS))
|
||||
CVSCO_LOGFILE := $(ROOTDIR)/cvsco.log
|
||||
CVSCO_LOGFILE := $(shell echo $(CVSCO_LOGFILE) | sed s%//%/%)
|
||||
|
||||
ifdef MOZ_CO_TAG
|
||||
CVS_CO_FLAGS := -f -r $(MOZ_CO_TAG)
|
||||
endif
|
||||
|
||||
####################################
|
||||
# Load mozconfig Options
|
||||
|
||||
# See build pages, http://www.mozilla.org/build/unix.html,
|
||||
# for how to set up mozconfig.
|
||||
MOZCONFIG_LOADER := mozilla/build/autoconf/mozconfig2client-mk
|
||||
MOZCONFIG_FINDER := mozilla/build/autoconf/mozconfig-find
|
||||
MOZCONFIG_MODULES := mozilla/build/unix/modules.mk mozilla/build/unix/uniq.pl
|
||||
run_for_side_effects := \
|
||||
$(shell cd $(ROOTDIR); \
|
||||
if test "$(_IS_FIRST_CHECKOUT)"; then \
|
||||
$(CVSCO) $(MOZCONFIG_FINDER) $(MOZCONFIG_LOADER) $(MOZCONFIG_MODULES); \
|
||||
else true; \
|
||||
fi; \
|
||||
$(MOZCONFIG_LOADER) $(TOPSRCDIR) mozilla/.mozconfig.mk > mozilla/.mozconfig.out)
|
||||
include $(TOPSRCDIR)/.mozconfig.mk
|
||||
include $(TOPSRCDIR)/build/unix/modules.mk
|
||||
|
||||
####################################
|
||||
# Options that may come from mozconfig
|
||||
|
||||
# Change CVS flags if anonymous root is requested
|
||||
ifdef MOZ_CO_USE_MIRROR
|
||||
CVS_FLAGS := -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot
|
||||
endif
|
||||
|
||||
# MOZ_CVS_FLAGS - Basic CVS flags
|
||||
ifeq "$(origin MOZ_CVS_FLAGS)" "undefined"
|
||||
CVS_FLAGS := $(CVS_FLAGS) -q -z 3
|
||||
else
|
||||
CVS_FLAGS := $(MOZ_CVS_FLAGS)
|
||||
endif
|
||||
|
||||
# This option is deprecated. The best way to have client.mk pull a tag
|
||||
# is to set MOZ_CO_TAG (see above) and commit that change on the tag.
|
||||
ifdef MOZ_CO_BRANCH
|
||||
$(warning Use MOZ_CO_TAG instead of MOZ_CO_BRANCH)
|
||||
CVS_CO_FLAGS := -r $(MOZ_CO_BRANCH)
|
||||
endif
|
||||
|
||||
# MOZ_CO_FLAGS - Anything that we should use on all checkouts
|
||||
ifeq "$(origin MOZ_CO_FLAGS)" "undefined"
|
||||
CVS_CO_FLAGS := $(CVS_CO_FLAGS) -P
|
||||
else
|
||||
CVS_CO_FLAGS := $(CVS_CO_FLAGS) $(MOZ_CO_FLAGS)
|
||||
endif
|
||||
|
||||
ifdef MOZ_CO_DATE
|
||||
CVS_CO_DATE_FLAGS := -D "$(MOZ_CO_DATE)"
|
||||
endif
|
||||
|
||||
ifdef MOZ_OBJDIR
|
||||
OBJDIR := $(MOZ_OBJDIR)
|
||||
MOZ_MAKE := $(MAKE) $(MOZ_MAKE_FLAGS) -C $(OBJDIR)
|
||||
else
|
||||
OBJDIR := $(TOPSRCDIR)
|
||||
MOZ_MAKE := $(MAKE) $(MOZ_MAKE_FLAGS)
|
||||
endif
|
||||
|
||||
####################################
|
||||
# CVS defines for PSM
|
||||
#
|
||||
PSM_CO_MODULE= mozilla/security/manager
|
||||
PSM_CO_FLAGS := -P -A
|
||||
ifdef MOZ_CO_FLAGS
|
||||
PSM_CO_FLAGS := $(MOZ_CO_FLAGS)
|
||||
endif
|
||||
ifdef PSM_CO_TAG
|
||||
PSM_CO_FLAGS := $(PSM_CO_FLAGS) -f -r $(PSM_CO_TAG)
|
||||
endif
|
||||
CVSCO_PSM = $(CVS) $(CVS_FLAGS) co $(PSM_CO_FLAGS) $(CVS_CO_DATE_FLAGS) $(PSM_CO_MODULE)
|
||||
|
||||
####################################
|
||||
# CVS defines for NSS
|
||||
#
|
||||
NSS_CO_MODULE = mozilla/security/nss \
|
||||
mozilla/security/coreconf \
|
||||
$(NULL)
|
||||
|
||||
NSS_CO_FLAGS := -P
|
||||
ifdef MOZ_CO_FLAGS
|
||||
NSS_CO_FLAGS := $(MOZ_CO_FLAGS)
|
||||
endif
|
||||
ifdef NSS_CO_TAG
|
||||
NSS_CO_FLAGS := $(NSS_CO_FLAGS) -r $(NSS_CO_TAG)
|
||||
endif
|
||||
# Cannot pull static tags by date
|
||||
ifeq ($(NSS_CO_TAG),NSS_CLIENT_TAG)
|
||||
CVSCO_NSS = $(CVS) $(CVS_FLAGS) co $(NSS_CO_FLAGS) $(NSS_CO_MODULE)
|
||||
else
|
||||
CVSCO_NSS = $(CVS) $(CVS_FLAGS) co $(NSS_CO_FLAGS) $(CVS_CO_DATE_FLAGS) $(NSS_CO_MODULE)
|
||||
endif
|
||||
|
||||
####################################
|
||||
# CVS defines for NSPR
|
||||
#
|
||||
NSPR_CO_MODULE = mozilla/nsprpub
|
||||
NSPR_CO_FLAGS := -P
|
||||
ifdef MOZ_CO_FLAGS
|
||||
NSPR_CO_FLAGS := $(MOZ_CO_FLAGS)
|
||||
endif
|
||||
ifdef NSPR_CO_TAG
|
||||
NSPR_CO_FLAGS := $(NSPR_CO_FLAGS) -r $(NSPR_CO_TAG)
|
||||
endif
|
||||
# Cannot pull static tags by date
|
||||
ifeq ($(NSPR_CO_TAG),NSPRPUB_CLIENT_TAG)
|
||||
CVSCO_NSPR = $(CVS) $(CVS_FLAGS) co $(NSPR_CO_FLAGS) $(NSPR_CO_MODULE)
|
||||
else
|
||||
CVSCO_NSPR = $(CVS) $(CVS_FLAGS) co $(NSPR_CO_FLAGS) $(CVS_CO_DATE_FLAGS) $(NSPR_CO_MODULE)
|
||||
endif
|
||||
|
||||
####################################
|
||||
# CVS defines for the C LDAP SDK
|
||||
#
|
||||
LDAPCSDK_CO_MODULE = mozilla/directory/c-sdk
|
||||
LDAPCSDK_CO_FLAGS := -P
|
||||
ifdef MOZ_CO_FLAGS
|
||||
LDAPCSDK_CO_FLAGS := $(MOZ_CO_FLAGS)
|
||||
endif
|
||||
ifdef LDAPCSDK_CO_TAG
|
||||
LDAPCSDK_CO_FLAGS := $(LDAPCSDK_CO_FLAGS) -r $(LDAPCSDK_CO_TAG)
|
||||
endif
|
||||
CVSCO_LDAPCSDK = $(CVS) $(CVS_FLAGS) co $(LDAPCSDK_CO_FLAGS) $(CVS_CO_DATE_FLAGS) $(LDAPCSDK_CO_MODULE)
|
||||
|
||||
####################################
|
||||
# CVS defines for the C LDAP SDK
|
||||
#
|
||||
ACCESSIBLE_CO_MODULE = mozilla/accessible
|
||||
ACCESSIBLE_CO_FLAGS := -P
|
||||
ifdef MOZ_CO_FLAGS
|
||||
ACCESSIBLE_CO_FLAGS := $(MOZ_CO_FLAGS)
|
||||
endif
|
||||
ifdef ACCESSIBLE_CO_TAG
|
||||
ACCESSIBLE_CO_FLAGS := $(ACCESSIBLE_CO_FLAGS) -f -r $(ACCESSIBLE_CO_TAG)
|
||||
endif
|
||||
CVSCO_ACCESSIBLE = $(CVS) $(CVS_FLAGS) co $(ACCESSIBLE_CO_FLAGS) $(CVS_CO_DATE_FLAGS) $(ACCESSIBLE_CO_MODULE)
|
||||
|
||||
|
||||
####################################
|
||||
# CVS defines for new image library
|
||||
#
|
||||
IMGLIB2_CO_MODULE = mozilla/modules/libpr0n
|
||||
IMGLIB2_CO_FLAGS := -P
|
||||
ifdef MOZ_CO_FLAGS
|
||||
IMGLIB2_CO_FLAGS := $(MOZ_CO_FLAGS)
|
||||
endif
|
||||
ifdef IMGLIB2_CO_TAG
|
||||
IMGLIB2_CO_FLAGS := $(IMGLIB2_CO_FLAGS) -f -r $(IMGLIB2_CO_TAG)
|
||||
endif
|
||||
CVSCO_IMGLIB2 = $(CVS) $(CVS_FLAGS) co $(IMGLIB2_CO_FLAGS) $(CVS_CO_DATE_FLAGS) $(IMGLIB2_CO_MODULE)
|
||||
|
||||
####################################
|
||||
# CVS defines for ipc module
|
||||
#
|
||||
IPC_CO_MODULE = mozilla/ipc/ipcd
|
||||
IPC_CO_FLAGS := -P -A
|
||||
ifdef MOZ_CO_FLAGS
|
||||
IPC_CO_FLAGS := $(MOZ_CO_FLAGS)
|
||||
endif
|
||||
ifdef IPC_CO_TAG
|
||||
IPC_CO_FLAGS := $(IPC_CO_FLAGS) -f -r $(IPC_CO_TAG)
|
||||
endif
|
||||
CVSCO_IPC = $(CVS) $(CVS_FLAGS) co $(IPC_CO_FLAGS) $(CVS_CO_DATE_FLAGS) $(IPC_CO_MODULE)
|
||||
|
||||
####################################
|
||||
# CVS defines for Calendar
|
||||
#
|
||||
CVSCO_CALENDAR := $(CVSCO) $(CVS_CO_DATE_FLAGS) mozilla/calendar mozilla/other-licenses/libical
|
||||
|
||||
####################################
|
||||
# CVS defines for SeaMonkey
|
||||
#
|
||||
ifeq ($(MOZ_CO_MODULE),)
|
||||
MOZ_CO_MODULE := SeaMonkeyAll
|
||||
endif
|
||||
CVSCO_SEAMONKEY := $(CVSCO) $(CVS_CO_DATE_FLAGS) $(MOZ_CO_MODULE)
|
||||
|
||||
####################################
|
||||
# CVS defines for standalone modules
|
||||
#
|
||||
ifeq ($(BUILD_MODULES),all)
|
||||
CHECKOUT_STANDALONE := true
|
||||
CHECKOUT_STANDALONE_NOSUBDIRS := true
|
||||
else
|
||||
STANDALONE_CO_MODULE := $(filter-out $(NSPRPUB_DIR) security directory/c-sdk, $(BUILD_MODULE_CVS))
|
||||
STANDALONE_CO_MODULE += allmakefiles.sh client.mk aclocal.m4 configure configure.in
|
||||
STANDALONE_CO_MODULE += Makefile.in
|
||||
STANDALONE_CO_MODULE := $(addprefix mozilla/, $(STANDALONE_CO_MODULE))
|
||||
CHECKOUT_STANDALONE := cvs_co $(CVSCO) $(CVS_CO_DATE_FLAGS) $(STANDALONE_CO_MODULE)
|
||||
|
||||
NOSUBDIRS_MODULE := $(addprefix mozilla/, $(BUILD_MODULE_CVS_NS))
|
||||
ifneq ($(NOSUBDIRS_MODULE),)
|
||||
CHECKOUT_STANDALONE_NOSUBDIRS := cvs_co $(CVSCO) -l $(CVS_CO_DATE_FLAGS) $(NOSUBDIRS_MODULE)
|
||||
else
|
||||
CHECKOUT_STANDALONE_NOSUBDIRS := true
|
||||
endif
|
||||
|
||||
CVSCO_SEAMONKEY :=
|
||||
ifeq (,$(filter $(NSPRPUB_DIR), $(BUILD_MODULE_CVS)))
|
||||
CVSCO_NSPR :=
|
||||
endif
|
||||
ifeq (,$(filter security security/manager, $(BUILD_MODULE_CVS)))
|
||||
CVSCO_PSM :=
|
||||
CVSCO_NSS :=
|
||||
endif
|
||||
ifeq (,$(filter directory/c-sdk, $(BUILD_MODULE_CVS)))
|
||||
CVSCO_LDAPCSDK :=
|
||||
endif
|
||||
ifeq (,$(filter accessible, $(BUILD_MODULE_CVS)))
|
||||
CVSCO_ACCESSIBLE :=
|
||||
endif
|
||||
ifeq (,$(filter modules/libpr0n, $(BUILD_MODULE_CVS)))
|
||||
CVSCO_IMGLIB2 :=
|
||||
endif
|
||||
ifeq (,$(filter ipc, $(BUILD_MODULE_CVS)))
|
||||
CVSCO_IPC :=
|
||||
endif
|
||||
ifeq (,$(filter calendar other-licenses/libical, $(BUILD_MODULE_CVS)))
|
||||
CVSCO_CALENDAR :=
|
||||
endif
|
||||
endif
|
||||
|
||||
####################################
|
||||
# CVS defined for libart (pulled and built if MOZ_INTERNAL_LIBART_LGPL is set)
|
||||
#
|
||||
CVSCO_LIBART := $(CVSCO) $(CVS_CO_DATE_FLAGS) mozilla/other-licenses/libart_lgpl
|
||||
|
||||
ifdef MOZ_INTERNAL_LIBART_LGPL
|
||||
FASTUPDATE_LIBART := fast_update $(CVSCO_LIBART)
|
||||
CHECKOUT_LIBART := cvs_co $(CVSCO_LIBART)
|
||||
else
|
||||
CHECKOUT_LIBART := true
|
||||
FASTUPDATE_LIBART := true
|
||||
endif
|
||||
|
||||
####################################
|
||||
# CVS defines for Phoenix (pulled and built if MOZ_PHOENIX is set)
|
||||
#
|
||||
BROWSER_CO_FLAGS := -P
|
||||
ifdef MOZ_CO_FLAGS
|
||||
BROWSER_CO_FLAGS := $(MOZ_CO_FLAGS)
|
||||
endif
|
||||
ifdef BROWSER_CO_TAG
|
||||
BROWSER_CO_FLAGS := $(BROWSER_CO_FLAGS) -r $(BROWSER_CO_TAG)
|
||||
endif
|
||||
|
||||
CVSCO_PHOENIX := $(CVS) $(CVS_FLAGS) co $(BROWSER_CO_FLAGS) $(CVS_CO_DATE_FLAGS) mozilla/browser
|
||||
|
||||
ifdef MOZ_PHOENIX
|
||||
FASTUPDATE_PHOENIX := fast_update $(CVSCO_PHOENIX)
|
||||
CHECKOUT_PHOENIX := cvs_co $(CVSCO_PHOENIX)
|
||||
MOZ_XUL_APP = 1
|
||||
else
|
||||
CHECKOUT_PHOENIX := true
|
||||
FASTUPDATE_PHOENIX := true
|
||||
endif
|
||||
|
||||
####################################
|
||||
# CVS defines for Thunderbird (pulled and built if MOZ_THUNDERBIRD is set)
|
||||
#
|
||||
|
||||
MAIL_CO_FLAGS := -P
|
||||
ifdef MOZ_CO_FLAGS
|
||||
MAIL_CO_FLAGS := $(MOZ_CO_FLAGS)
|
||||
endif
|
||||
ifdef MAIL_CO_TAG
|
||||
MAIL_CO_FLAGS := $(MAIL_CO_FLAGS) -r $(MAIL_CO_TAG)
|
||||
endif
|
||||
|
||||
CVSCO_THUNDERBIRD := $(CVS) $(CVS_FLAGS) co $(MAIL_CO_FLAGS) $(CVS_CO_DATE_FLAGS) mozilla/mail
|
||||
ifdef MOZ_THUNDERBIRD
|
||||
FASTUPDATE_THUNDERBIRD := fast_update $(CVSCO_THUNDERBIRD)
|
||||
CHECKOUT_THUNDERBIRD := cvs_co $(CVSCO_THUNDERBIRD)
|
||||
MOZ_XUL_APP = 1
|
||||
else
|
||||
FASTUPDATE_THUNDERBIRD := true
|
||||
CHECKOUT_THUNDERBIRD := true
|
||||
endif
|
||||
|
||||
####################################
|
||||
# CVS defines for Standalone Composer (pulled and built if MOZ_STANDALONE_COMPOSER is set)
|
||||
#
|
||||
|
||||
STANDALONE_COMPOSER_CO_FLAGS := -P
|
||||
ifdef MOZ_CO_FLAGS
|
||||
STANDALONE_COMPOSER_CO_FLAGS := $(MOZ_CO_FLAGS)
|
||||
endif
|
||||
ifdef STANDALONE_COMPOSER_CO_TAG
|
||||
STANDALONE_COMPOSER_CO_FLAGS := $(STANDALONE_COMPOSER_CO_FLAGS) -r $(STANDALONE_COMPOSER_CO_TAG)
|
||||
endif
|
||||
|
||||
CVSCO_STANDALONE_COMPOSER := $(CVS) $(CVS_FLAGS) co $(STANDALONE_COMPOSER_CO_FLAGS) $(CVS_CO_DATE_FLAGS) mozilla/composer
|
||||
ifdef MOZ_STANDALONE_COMPOSER
|
||||
FASTUPDATE_STANDALONE_COMPOSER:= fast_update $(CVSCO_STANDALONE_COMPOSER)
|
||||
CHECKOUT_STANDALONE_COMPOSER:= cvs_co $(CVSCO_STANDALONE_COMPOSER)
|
||||
MOZ_XUL_APP = 1
|
||||
else
|
||||
FASTUPDATE_STANDALONE_COMPOSER:= true
|
||||
CHECKOUT_STANDALONE_COMPOSER:= true
|
||||
endif
|
||||
|
||||
####################################
|
||||
# CVS defines for mozilla/toolkit (pulled and built if MOZ_XUL_APP is set)
|
||||
#
|
||||
|
||||
TOOLKIT_CO_FLAGS := -P
|
||||
ifdef MOZ_CO_FLAGS
|
||||
TOOLKIT_CO_FLAGS := $(MOZ_CO_FLAGS)
|
||||
endif
|
||||
ifdef TOOLKIT_CO_TAG
|
||||
TOOLKIT_CO_FLAGS := $(TOOLKIT_CO_FLAGS) -r $(TOOLKIT_CO_TAG)
|
||||
endif
|
||||
|
||||
CVSCO_MOZTOOLKIT := $(CVS) $(CVS_FLAGS) co $(TOOLKIT_CO_FLAGS) $(CVS_CO_DATE_FLAGS) mozilla/toolkit mozilla/chrome
|
||||
ifdef MOZ_XUL_APP
|
||||
FASTUPDATE_MOZTOOLKIT := fast_update $(CVSCO_MOZTOOLKIT)
|
||||
CHECKOUT_MOZTOOLKIT := cvs_co $(CVSCO_MOZTOOLKIT)
|
||||
else
|
||||
FASTUPDATE_MOZTOOLKIT := true
|
||||
CHECKOUT_MOZTOOLKIT := true
|
||||
endif
|
||||
|
||||
####################################
|
||||
# CVS defines for codesighs (pulled and built if MOZ_MAPINFO is set)
|
||||
#
|
||||
CVSCO_CODESIGHS := $(CVSCO) $(CVS_CO_DATE_FLAGS) mozilla/tools/codesighs
|
||||
|
||||
ifdef MOZ_MAPINFO
|
||||
FASTUPDATE_CODESIGHS := fast_update $(CVSCO_CODESIGHS)
|
||||
CHECKOUT_CODESIGHS := cvs_co $(CVSCO_CODESIGHS)
|
||||
else
|
||||
CHECKOUT_CODESIGHS := true
|
||||
FASTUPDATE_CODESIGHS := true
|
||||
endif
|
||||
|
||||
#######################################################################
|
||||
# Rules
|
||||
#
|
||||
|
||||
# Print out any options loaded from mozconfig.
|
||||
all build checkout clean depend distclean export libs install realclean::
|
||||
@if test -f .mozconfig.out; then \
|
||||
cat .mozconfig.out; \
|
||||
rm -f .mozconfig.out; \
|
||||
else true; \
|
||||
fi
|
||||
|
||||
ifdef _IS_FIRST_CHECKOUT
|
||||
all:: checkout build
|
||||
else
|
||||
all:: checkout alldep
|
||||
endif
|
||||
|
||||
# Windows equivalents
|
||||
pull_all: checkout
|
||||
build_all: build
|
||||
build_all_dep: alldep
|
||||
build_all_depend: alldep
|
||||
clobber clobber_all: clean
|
||||
pull_and_build_all: checkout alldep
|
||||
|
||||
# Do everything from scratch
|
||||
everything: checkout clean build
|
||||
|
||||
####################################
|
||||
# CVS checkout
|
||||
#
|
||||
checkout::
|
||||
# @: Backup the last checkout log.
|
||||
@if test -f $(CVSCO_LOGFILE) ; then \
|
||||
mv $(CVSCO_LOGFILE) $(CVSCO_LOGFILE).old; \
|
||||
else true; \
|
||||
fi
|
||||
ifdef RUN_AUTOCONF_LOCALLY
|
||||
@echo "Removing local configures" ; \
|
||||
cd $(ROOTDIR) && \
|
||||
$(RM) -f mozilla/configure mozilla/nsprpub/configure \
|
||||
mozilla/directory/c-sdk/configure
|
||||
endif
|
||||
@echo "checkout start: "`date` | tee $(CVSCO_LOGFILE)
|
||||
@echo '$(CVSCO) $(CVS_CO_DATE_FLAGS) mozilla/client.mk $(MOZCONFIG_MODULES)'; \
|
||||
cd $(ROOTDIR) && \
|
||||
$(CVSCO) $(CVS_CO_DATE_FLAGS) mozilla/client.mk $(MOZCONFIG_MODULES)
|
||||
@cd $(ROOTDIR) && $(MAKE) -f mozilla/client.mk real_checkout
|
||||
|
||||
real_checkout:
|
||||
# @: Start the checkout. Split the output to the tty and a log file. \
|
||||
# : If it fails, touch an error file because "tee" hides the error.
|
||||
@failed=.cvs-failed.tmp; rm -f $$failed*; \
|
||||
cvs_co() { echo "$$@" ; \
|
||||
("$$@" || touch $$failed) 2>&1 | tee -a $(CVSCO_LOGFILE) && \
|
||||
if test -f $$failed; then false; else true; fi; }; \
|
||||
$(CHECKOUT_STANDALONE) && \
|
||||
$(CHECKOUT_STANDALONE_NOSUBDIRS) && \
|
||||
cvs_co $(CVSCO_NSPR) && \
|
||||
cvs_co $(CVSCO_NSS) && \
|
||||
cvs_co $(CVSCO_PSM) && \
|
||||
cvs_co $(CVSCO_LDAPCSDK) && \
|
||||
cvs_co $(CVSCO_ACCESSIBLE) && \
|
||||
cvs_co $(CVSCO_IMGLIB2) && \
|
||||
cvs_co $(CVSCO_IPC) && \
|
||||
cvs_co $(CVSCO_CALENDAR) && \
|
||||
$(CHECKOUT_LIBART) && \
|
||||
$(CHECKOUT_MOZTOOLKIT) && \
|
||||
$(CHECKOUT_PHOENIX) && \
|
||||
$(CHECKOUT_THUNDERBIRD) && \
|
||||
$(CHECKOUT_STANDALONE_COMPOSER) && \
|
||||
$(CHECKOUT_CODESIGHS) && \
|
||||
cvs_co $(CVSCO_SEAMONKEY)
|
||||
@echo "checkout finish: "`date` | tee -a $(CVSCO_LOGFILE)
|
||||
# update the NSS checkout timestamp
|
||||
@if test `egrep -c '^(U|C) mozilla/security/(nss|coreconf)' $(CVSCO_LOGFILE) 2>/dev/null` != 0; then \
|
||||
touch $(TOPSRCDIR)/security/manager/.nss.checkout; \
|
||||
fi
|
||||
# @: Check the log for conflicts. ;
|
||||
@conflicts=`egrep "^C " $(CVSCO_LOGFILE)` ;\
|
||||
if test "$$conflicts" ; then \
|
||||
echo "$(MAKE): *** Conflicts during checkout." ;\
|
||||
echo "$$conflicts" ;\
|
||||
echo "$(MAKE): Refer to $(CVSCO_LOGFILE) for full log." ;\
|
||||
false; \
|
||||
else true; \
|
||||
fi
|
||||
ifdef RUN_AUTOCONF_LOCALLY
|
||||
@echo Generating configures using $(AUTOCONF) ; \
|
||||
cd $(TOPSRCDIR) && $(AUTOCONF) && \
|
||||
cd $(TOPSRCDIR)/nsprpub && $(AUTOCONF) && \
|
||||
cd $(TOPSRCDIR)/directory/c-sdk && $(AUTOCONF)
|
||||
endif
|
||||
|
||||
fast-update:
|
||||
# @: Backup the last checkout log.
|
||||
@if test -f $(CVSCO_LOGFILE) ; then \
|
||||
mv $(CVSCO_LOGFILE) $(CVSCO_LOGFILE).old; \
|
||||
else true; \
|
||||
fi
|
||||
ifdef RUN_AUTOCONF_LOCALLY
|
||||
@echo "Removing local configures" ; \
|
||||
cd $(ROOTDIR) && \
|
||||
$(RM) -f mozilla/configure mozilla/nsprpub/configure \
|
||||
mozilla/directory/c-sdk/configure
|
||||
endif
|
||||
@echo "checkout start: "`date` | tee $(CVSCO_LOGFILE)
|
||||
@echo '$(CVSCO) mozilla/client.mk $(MOZCONFIG_MODULES)'; \
|
||||
cd $(ROOTDIR) && \
|
||||
$(CVSCO) mozilla/client.mk $(MOZCONFIG_MODULES)
|
||||
@cd $(TOPSRCDIR) && \
|
||||
$(MAKE) -f client.mk real_fast-update
|
||||
|
||||
real_fast-update:
|
||||
# @: Start the update. Split the output to the tty and a log file. \
|
||||
# : If it fails, touch an error file because "tee" hides the error.
|
||||
@failed=.fast_update-failed.tmp; rm -f $$failed*; \
|
||||
fast_update() { (config/cvsco-fast-update.pl $$@ || touch $$failed) 2>&1 | tee -a $(CVSCO_LOGFILE) && \
|
||||
if test -f $$failed; then false; else true; fi; }; \
|
||||
cvs_co() { echo "$$@" ; \
|
||||
("$$@" || touch $$failed) 2>&1 | tee -a $(CVSCO_LOGFILE) && \
|
||||
if test -f $$failed; then false; else true; fi; }; \
|
||||
fast_update $(CVSCO_NSPR) && \
|
||||
cd $(ROOTDIR) && \
|
||||
failed=mozilla/.fast_update-failed.tmp && \
|
||||
cvs_co $(CVSCO_NSS) && \
|
||||
failed=.fast_update-failed.tmp && \
|
||||
cd mozilla && \
|
||||
fast_update $(CVSCO_PSM) && \
|
||||
fast_update $(CVSCO_LDAPCSDK) && \
|
||||
fast_update $(CVSCO_ACCESSIBLE) && \
|
||||
fast_update $(CVSCO_IMGLIB2) && \
|
||||
fast_update $(CVSCO_IPC) && \
|
||||
fast_update $(CVSCO_CALENDAR) && \
|
||||
$(FASTUPDATE_LIBART) && \
|
||||
$(FASTUPDATE_MOZTOOLKIT) && \
|
||||
$(FASTUPDATE_PHOENIX) && \
|
||||
$(FASTUPDATE_THUNDERBIRD) && \
|
||||
$(FASTUPDATE_STANDALONE_COMPOSER) && \
|
||||
$(FASTUPDATE_CODESIGHS) && \
|
||||
fast_update $(CVSCO_SEAMONKEY)
|
||||
@echo "fast_update finish: "`date` | tee -a $(CVSCO_LOGFILE)
|
||||
# update the NSS checkout timestamp
|
||||
@if test `egrep -c '^(U|C) mozilla/security/(nss|coreconf)' $(CVSCO_LOGFILE) 2>/dev/null` != 0; then \
|
||||
touch $(TOPSRCDIR)/security/manager/.nss.checkout; \
|
||||
fi
|
||||
# @: Check the log for conflicts. ;
|
||||
@conflicts=`egrep "^C " $(CVSCO_LOGFILE)` ;\
|
||||
if test "$$conflicts" ; then \
|
||||
echo "$(MAKE): *** Conflicts during fast-update." ;\
|
||||
echo "$$conflicts" ;\
|
||||
echo "$(MAKE): Refer to $(CVSCO_LOGFILE) for full log." ;\
|
||||
false; \
|
||||
else true; \
|
||||
fi
|
||||
ifdef RUN_AUTOCONF_LOCALLY
|
||||
@echo Generating configures using $(AUTOCONF) ; \
|
||||
cd $(TOPSRCDIR) && $(AUTOCONF) && \
|
||||
cd $(TOPSRCDIR)/nsprpub && $(AUTOCONF) && \
|
||||
cd $(TOPSRCDIR)/directory/c-sdk && $(AUTOCONF)
|
||||
endif
|
||||
|
||||
####################################
|
||||
# Web configure
|
||||
|
||||
WEBCONFIG_FILE := $(HOME)/.mozconfig
|
||||
|
||||
MOZCONFIG2CONFIGURATOR := build/autoconf/mozconfig2configurator
|
||||
webconfig:
|
||||
@cd $(TOPSRCDIR); \
|
||||
url=`$(MOZCONFIG2CONFIGURATOR) $(TOPSRCDIR)`; \
|
||||
echo Running mozilla with the following url: ;\
|
||||
echo ;\
|
||||
echo $$url ;\
|
||||
mozilla -remote "openURL($$url)" || \
|
||||
netscape -remote "openURL($$url)" || \
|
||||
mozilla $$url || \
|
||||
netscape $$url ;\
|
||||
echo ;\
|
||||
echo 1. Fill out the form on the browser. ;\
|
||||
echo 2. Save the results to $(WEBCONFIG_FILE)
|
||||
|
||||
#####################################################
|
||||
# First Checkout
|
||||
|
||||
ifdef _IS_FIRST_CHECKOUT
|
||||
# First time, do build target in a new process to pick up new files.
|
||||
build::
|
||||
$(MAKE) -f $(TOPSRCDIR)/client.mk build
|
||||
else
|
||||
|
||||
#####################################################
|
||||
# After First Checkout
|
||||
|
||||
|
||||
####################################
|
||||
# Configure
|
||||
|
||||
CONFIG_STATUS := $(wildcard $(OBJDIR)/config.status)
|
||||
CONFIG_CACHE := $(wildcard $(OBJDIR)/config.cache)
|
||||
|
||||
ifdef RUN_AUTOCONF_LOCALLY
|
||||
EXTRA_CONFIG_DEPS := \
|
||||
$(TOPSRCDIR)/aclocal.m4 \
|
||||
$(wildcard $(TOPSRCDIR)/build/autoconf/*.m4) \
|
||||
$(NULL)
|
||||
|
||||
$(TOPSRCDIR)/configure: $(TOPSRCDIR)/configure.in $(EXTRA_CONFIG_DEPS)
|
||||
@echo Generating $@ using autoconf
|
||||
cd $(TOPSRCDIR); $(AUTOCONF)
|
||||
endif
|
||||
|
||||
CONFIG_STATUS_DEPS_L10N := $(wildcard $(TOPSRCDIR)/l10n/makefiles.all)
|
||||
|
||||
CONFIG_STATUS_DEPS := \
|
||||
$(TOPSRCDIR)/configure \
|
||||
$(TOPSRCDIR)/allmakefiles.sh \
|
||||
$(TOPSRCDIR)/.mozconfig.mk \
|
||||
$(wildcard $(TOPSRCDIR)/nsprpub/configure) \
|
||||
$(wildcard $(TOPSRCDIR)/directory/c-sdk/configure) \
|
||||
$(wildcard $(TOPSRCDIR)/mailnews/makefiles) \
|
||||
$(CONFIG_STATUS_DEPS_L10N) \
|
||||
$(wildcard $(TOPSRCDIR)/themes/makefiles) \
|
||||
$(wildcard $(TOPSRCDIR)/config/milestone.txt) \
|
||||
$(wildcard $(TOPSRCDIR)/config/chrome-versions.sh) \
|
||||
$(NULL)
|
||||
|
||||
# configure uses the program name to determine @srcdir@. Calling it without
|
||||
# $(TOPSRCDIR) will set @srcdir@ to "."; otherwise, it is set to the full
|
||||
# path of $(TOPSRCDIR).
|
||||
ifeq ($(TOPSRCDIR),$(OBJDIR))
|
||||
CONFIGURE := ./configure
|
||||
else
|
||||
CONFIGURE := $(TOPSRCDIR)/configure
|
||||
endif
|
||||
|
||||
ifdef MOZ_TOOLS
|
||||
CONFIGURE := $(TOPSRCDIR)/configure
|
||||
endif
|
||||
|
||||
$(OBJDIR)/Makefile $(OBJDIR)/config.status: $(CONFIG_STATUS_DEPS)
|
||||
@if test ! -d $(OBJDIR); then $(MKDIR) $(OBJDIR); else true; fi
|
||||
@echo cd $(OBJDIR);
|
||||
@echo $(CONFIGURE) $(CONFIGURE_ARGS)
|
||||
@cd $(OBJDIR) && $(CONFIGURE_ENV_ARGS) $(CONFIGURE) $(CONFIGURE_ARGS) \
|
||||
|| ( echo "*** Fix above errors and then restart with\
|
||||
\"$(MAKE) -f client.mk build\"" && exit 1 )
|
||||
@touch $(OBJDIR)/Makefile
|
||||
|
||||
ifdef CONFIG_STATUS
|
||||
$(OBJDIR)/config/autoconf.mk: $(TOPSRCDIR)/config/autoconf.mk.in
|
||||
cd $(OBJDIR); \
|
||||
CONFIG_FILES=config/autoconf.mk ./config.status
|
||||
endif
|
||||
|
||||
|
||||
####################################
|
||||
# Depend
|
||||
|
||||
depend:: $(OBJDIR)/Makefile $(OBJDIR)/config.status
|
||||
$(MOZ_MAKE) export && $(MOZ_MAKE) depend
|
||||
|
||||
####################################
|
||||
# Build it
|
||||
|
||||
build:: $(OBJDIR)/Makefile $(OBJDIR)/config.status
|
||||
$(MOZ_MAKE)
|
||||
|
||||
####################################
|
||||
# Other targets
|
||||
|
||||
# Pass these target onto the real build system
|
||||
install export libs clean realclean distclean alldep:: $(OBJDIR)/Makefile $(OBJDIR)/config.status
|
||||
$(MOZ_MAKE) $@
|
||||
|
||||
cleansrcdir:
|
||||
@cd $(TOPSRCDIR); \
|
||||
if [ -f webshell/embed/gtk/Makefile ]; then \
|
||||
$(MAKE) -C webshell/embed/gtk distclean; \
|
||||
fi; \
|
||||
if [ -f Makefile ]; then \
|
||||
$(MAKE) distclean ; \
|
||||
else \
|
||||
echo "Removing object files from srcdir..."; \
|
||||
rm -fr `find . -type d \( -name .deps -print -o -name CVS \
|
||||
-o -exec test ! -d {}/CVS \; \) -prune \
|
||||
-o \( -name '*.[ao]' -o -name '*.so' \) -type f -print`; \
|
||||
build/autoconf/clean-config.sh; \
|
||||
fi;
|
||||
|
||||
# (! IS_FIRST_CHECKOUT)
|
||||
endif
|
||||
|
||||
echo_objdir:
|
||||
@echo $(OBJDIR)
|
||||
|
||||
.PHONY: checkout real_checkout depend build export libs alldep install clean realclean distclean cleansrcdir pull_all build_all clobber clobber_all pull_and_build_all everything
|
||||
@@ -1,426 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is this file as it was released upon August 6, 1998.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Christopher
|
||||
# Seawood. Portions created by Christopher Seawood are
|
||||
# Copyright (C) 1998 Christopher Seawood. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
|
||||
# A netscape style .mk file for autoconf builds
|
||||
|
||||
INCLUDED_AUTOCONF_MK = 1
|
||||
USE_AUTOCONF = 1
|
||||
MOZILLA_CLIENT = 1
|
||||
BUILD_MODULES = @BUILD_MODULES@
|
||||
MOZILLA_VERSION = @MOZILLA_VERSION@
|
||||
|
||||
prefix = @prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
bindir = @bindir@
|
||||
includedir = @includedir@/mozilla-$(MOZILLA_VERSION)
|
||||
libdir = @libdir@
|
||||
datadir = @datadir@
|
||||
mandir = @mandir@
|
||||
idldir = @datadir@/idl/mozilla-$(MOZILLA_VERSION)
|
||||
|
||||
mozappdir = $(libdir)/mozilla-$(MOZILLA_VERSION)
|
||||
mredir = $(libdir)/mre/mre-$(MOZILLA_VERSION)
|
||||
mrelibdir = $(mredir)/lib
|
||||
|
||||
DIST = $(DEPTH)/dist
|
||||
|
||||
MOZ_CHROME_FILE_FORMAT = @MOZ_CHROME_FILE_FORMAT@
|
||||
|
||||
MOZ_WIDGET_TOOLKIT = @MOZ_WIDGET_TOOLKIT@
|
||||
MOZ_GFX_TOOLKIT = $(MOZ_WIDGET_TOOLKIT)
|
||||
|
||||
MOZ_JS_LIBS = @MOZ_JS_LIBS@
|
||||
|
||||
MOZ_GFX_TOOLKIT_LDFLAGS = @MOZ_GFX_TOOLKIT_LDFLAGS@
|
||||
MOZ_WIDGET_TOOLKIT_LDFLAGS = @MOZ_WIDGET_TOOLKIT_LDFLAGS@
|
||||
|
||||
MOZ_DEBUG = @MOZ_DEBUG@
|
||||
MOZ_DEBUG_MODULES = @MOZ_DEBUG_MODULES@
|
||||
MOZ_PROFILE_MODULES = @MOZ_PROFILE_MODULES@
|
||||
MOZ_DEBUG_ENABLE_DEFS = @MOZ_DEBUG_ENABLE_DEFS@
|
||||
MOZ_DEBUG_DISABLE_DEFS = @MOZ_DEBUG_DISABLE_DEFS@
|
||||
MOZ_DEBUG_FLAGS = @MOZ_DEBUG_FLAGS@
|
||||
MOZ_DEBUG_LDFLAGS=@MOZ_DEBUG_LDFLAGS@
|
||||
MOZ_DBGRINFO_MODULES = @MOZ_DBGRINFO_MODULES@
|
||||
MOZ_EXTENSIONS = @MOZ_EXTENSIONS@
|
||||
MOZ_IMG_DECODERS= @MOZ_IMG_DECODERS@
|
||||
MOZ_JSDEBUGGER = @MOZ_JSDEBUGGER@
|
||||
MOZ_PERF_METRICS = @MOZ_PERF_METRICS@
|
||||
MOZ_LEAKY = @MOZ_LEAKY@
|
||||
MOZ_JPROF = @MOZ_JPROF@
|
||||
MOZ_XPCTOOLS = @MOZ_XPCTOOLS@
|
||||
ENABLE_EAZEL_PROFILER=@ENABLE_EAZEL_PROFILER@
|
||||
EAZEL_PROFILER_CFLAGS=@EAZEL_PROFILER_CFLAGS@
|
||||
EAZEL_PROFILER_LIBS=@EAZEL_PROFILER_LIBS@
|
||||
GC_LEAK_DETECTOR = @GC_LEAK_DETECTOR@
|
||||
NS_TRACE_MALLOC = @NS_TRACE_MALLOC@
|
||||
USE_ELF_DYNSTR_GC = @USE_ELF_DYNSTR_GC@
|
||||
USE_PREBINDING = @USE_PREBINDING@
|
||||
INCREMENTAL_LINKER = @INCREMENTAL_LINKER@
|
||||
MACOS_DEPLOYMENT_TARGET = @MACOS_DEPLOYMENT_TARGET@
|
||||
MOZ_MAIL_NEWS = @MOZ_MAIL_NEWS@
|
||||
MOZ_CALENDAR = @MOZ_CALENDAR@
|
||||
MOZ_PLAINTEXT_EDITOR_ONLY = @MOZ_PLAINTEXT_EDITOR_ONLY@
|
||||
MOZ_COMPOSER = @MOZ_COMPOSER@
|
||||
BUILD_SHARED_LIBS = @BUILD_SHARED_LIBS@
|
||||
BUILD_STATIC_LIBS = @BUILD_STATIC_LIBS@
|
||||
MOZ_STATIC_COMPONENT_LOADER = @MOZ_STATIC_COMPONENT_LOADER@
|
||||
MOZ_STATIC_COMPONENTS = @MOZ_STATIC_COMPONENTS@
|
||||
MOZ_META_COMPONENTS = @MOZ_META_COMPONENTS@
|
||||
MOZ_STATIC_COMPONENT_LIBS = @MOZ_STATIC_COMPONENT_LIBS@
|
||||
ENABLE_TESTS = @ENABLE_TESTS@
|
||||
IBMBIDI = @IBMBIDI@
|
||||
SUNCTL = @SUNCTL@
|
||||
ACCESSIBILITY = @ACCESSIBILITY@
|
||||
MOZ_VIEW_SOURCE = @MOZ_VIEW_SOURCE@
|
||||
MOZ_XPINSTALL = @MOZ_XPINSTALL@
|
||||
MOZ_JSLOADER = @MOZ_JSLOADER@
|
||||
MOZ_USE_NATIVE_UCONV = @MOZ_USE_NATIVE_UCONV@
|
||||
MOZ_SINGLE_PROFILE = @MOZ_SINGLE_PROFILE@
|
||||
MOZ_LDAP_XPCOM = @MOZ_LDAP_XPCOM@
|
||||
MOZ_LDAP_XPCOM_EXPERIMENTAL = @MOZ_LDAP_XPCOM_EXPERIMENTAL@
|
||||
XPCOM_USE_LEA = @XPCOM_USE_LEA@
|
||||
JS_ULTRASPARC_OPTS = @JS_ULTRASPARC_OPTS@
|
||||
MOZ_ENABLE_POSTSCRIPT = @MOZ_ENABLE_POSTSCRIPT@
|
||||
MOZ_INSTALLER = @MOZ_INSTALLER@
|
||||
MOZ_NO_ACTIVEX_SUPPORT = @MOZ_NO_ACTIVEX_SUPPORT@
|
||||
MOZ_ACTIVEX_SCRIPTING_SUPPORT = @MOZ_ACTIVEX_SCRIPTING_SUPPORT@
|
||||
XPC_IDISPATCH_SUPPORT = @MOZ_ACTIVEX_SCRIPTING_SUPPORT@
|
||||
MOZ_XPFE_COMPONENTS = @MOZ_XPFE_COMPONENTS@
|
||||
MOZ_IPCD = @MOZ_IPCD@
|
||||
MOZ_PROFILESHARING = @MOZ_PROFILESHARING@
|
||||
MOZ_PROFILELOCKING = @MOZ_PROFILELOCKING@
|
||||
|
||||
MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS = @MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS@
|
||||
MOZ_COMPONENT_NSPR_LIBS=@MOZ_COMPONENT_NSPR_LIBS@
|
||||
MOZ_COMPONENT_XPCOM_LIBS=@MOZ_COMPONENT_XPCOM_LIBS@
|
||||
XPCOM_LIBS=@XPCOM_LIBS@
|
||||
MOZ_REORDER=@MOZ_REORDER@
|
||||
MOZ_TIMELINE=@MOZ_TIMELINE@
|
||||
|
||||
ENABLE_STRIP = @ENABLE_STRIP@
|
||||
|
||||
ClientWallet=1
|
||||
CookieManagement=1
|
||||
SingleSignon=1
|
||||
|
||||
MOZ_OJI = @MOZ_OJI@
|
||||
|
||||
MOZ_POST_DSO_LIB_COMMAND = @MOZ_POST_DSO_LIB_COMMAND@
|
||||
MOZ_POST_PROGRAM_COMMAND = @MOZ_POST_PROGRAM_COMMAND@
|
||||
|
||||
MOZ_SRCDIR = @MOZ_SRCDIR@
|
||||
MOZ_BUILD_ROOT = @MOZ_BUILD_ROOT@
|
||||
|
||||
MOZ_XUL = @MOZ_XUL@
|
||||
|
||||
NECKO_PROTOCOLS = @NECKO_PROTOCOLS@
|
||||
NECKO_DISK_CACHE = @NECKO_DISK_CACHE@
|
||||
NECKO_SMALL_BUFFERS = @NECKO_SMALL_BUFFERS@
|
||||
|
||||
MOZ_NATIVE_ZLIB = @SYSTEM_ZLIB@
|
||||
MOZ_NATIVE_JPEG = @SYSTEM_JPEG@
|
||||
MOZ_NATIVE_PNG = @SYSTEM_PNG@
|
||||
|
||||
MOZ_INTERNAL_LIBART_LGPL = @MOZ_INTERNAL_LIBART_LGPL@
|
||||
|
||||
MOZ_UPDATE_XTERM = @MOZ_UPDATE_XTERM@
|
||||
MOZ_MATHML = @MOZ_MATHML@
|
||||
MOZ_SVG = @MOZ_SVG@
|
||||
MOZ_LIBART_CFLAGS = @MOZ_LIBART_CFLAGS@
|
||||
TX_EXE = @TX_EXE@
|
||||
|
||||
# Mac's don't like / in a #include, so we include the libart
|
||||
# headers locally if we're using the external library
|
||||
ifdef MOZ_LIBART_CFLAGS
|
||||
ifndef MOZ_INTERNAL_LIBART_LGPL
|
||||
MOZ_LIBART_CFLAGS := $(MOZ_LIBART_CFLAGS)/libart_lgpl
|
||||
endif
|
||||
endif
|
||||
MOZ_LIBART_LIBS = @MOZ_LIBART_LIBS@
|
||||
|
||||
MOZ_INSURE = @MOZ_INSURE@
|
||||
MOZ_INSURIFYING = @MOZ_INSURIFYING@
|
||||
MOZ_INSURE_DIRS = @MOZ_INSURE_DIRS@
|
||||
MOZ_INSURE_EXCLUDE_DIRS = @MOZ_INSURE_EXCLUDE_DIRS@
|
||||
|
||||
MOZ_NATIVE_NSPR = @MOZ_NATIVE_NSPR@
|
||||
|
||||
CROSS_COMPILE = @CROSS_COMPILE@
|
||||
|
||||
OS_CPPFLAGS = @CPPFLAGS@
|
||||
OS_CFLAGS = $(OS_CPPFLAGS) @CFLAGS@
|
||||
OS_CXXFLAGS = $(OS_CPPFLAGS) @CXXFLAGS@
|
||||
OS_LDFLAGS = @LDFLAGS@
|
||||
|
||||
OS_COMPILE_CFLAGS = $(OS_CPPFLAGS) @COMPILE_CFLAGS@
|
||||
OS_COMPILE_CXXFLAGS = $(OS_CPPFLAGS) @COMPILE_CXXFLAGS@
|
||||
|
||||
OS_INCLUDES = $(NSPR_CFLAGS) $(JPEG_CFLAGS) $(PNG_CFLAGS) $(ZLIB_CFLAGS)
|
||||
OS_LIBS = @LIBS@
|
||||
ACDEFINES = @MOZ_DEFINES@
|
||||
|
||||
MOZ_OPTIMIZE = @MOZ_OPTIMIZE@
|
||||
MOZ_OPTIMIZE_FLAGS = @MOZ_OPTIMIZE_FLAGS@
|
||||
MOZ_OPTIMIZE_LDFLAGS = @MOZ_OPTIMIZE_LDFLAGS@
|
||||
|
||||
XCFLAGS = @XCFLAGS@
|
||||
XLDFLAGS = @XLDFLAGS@
|
||||
XLIBS = @XLIBS@
|
||||
|
||||
CYGWIN_WRAPPER = @CYGWIN_WRAPPER@
|
||||
CYGDRIVE_MOUNT = @CYGDRIVE_MOUNT@
|
||||
AR = @AR@
|
||||
AR_FLAGS = @AR_FLAGS@
|
||||
AR_EXTRACT = @AR_EXTRACT@
|
||||
AR_LIST = @AR_LIST@
|
||||
AR_DELETE = @AR_DELETE@
|
||||
AS = @AS@
|
||||
ASFLAGS = @ASFLAGS@
|
||||
AS_DASH_C_FLAG = @AS_DASH_C_FLAG@
|
||||
LD = @LD@
|
||||
RC = @RC@
|
||||
RCFLAGS = @RCFLAGS@
|
||||
WINDRES = @WINDRES@
|
||||
USE_SHORT_LIBNAME = @USE_SHORT_LIBNAME@
|
||||
IMPLIB = @IMPLIB@
|
||||
FILTER = @FILTER@
|
||||
BIN_FLAGS = @BIN_FLAGS@
|
||||
MIDL = @MIDL@
|
||||
MIDL_FLAGS = @MIDL_FLAGS@
|
||||
|
||||
DLL_PREFIX = @DLL_PREFIX@
|
||||
LIB_PREFIX = @LIB_PREFIX@
|
||||
OBJ_SUFFIX = @OBJ_SUFFIX@
|
||||
LIB_SUFFIX = @LIB_SUFFIX@
|
||||
DLL_SUFFIX = @DLL_SUFFIX@
|
||||
BIN_SUFFIX = @BIN_SUFFIX@
|
||||
ASM_SUFFIX = @ASM_SUFFIX@
|
||||
IMPORT_LIB_SUFFIX = @IMPORT_LIB_SUFFIX@
|
||||
USE_N32 = @USE_N32@
|
||||
HAVE_64BIT_OS = @HAVE_64BIT_OS@
|
||||
|
||||
# Temp hack. It is not my intention to leave this crap in here for ever.
|
||||
# Im talking to fur right now to solve the problem without introducing
|
||||
# NS_USE_NATIVE to the build system -ramiro.
|
||||
NS_USE_NATIVE = @NS_USE_NATIVE@
|
||||
|
||||
CC = @CC@
|
||||
CXX = @CXX@
|
||||
|
||||
GNU_AS = @GNU_AS@
|
||||
GNU_LD = @GNU_LD@
|
||||
GNU_CC = @GNU_CC@
|
||||
GNU_CXX = @GNU_CXX@
|
||||
HAVE_GCC3_ABI = @HAVE_GCC3_ABI@
|
||||
|
||||
HOST_CC = @HOST_CC@
|
||||
HOST_CXX = @HOST_CXX@
|
||||
HOST_CFLAGS = @HOST_CFLAGS@
|
||||
HOST_CXXFLAGS = @HOST_CXXFLAGS@
|
||||
HOST_OPTIMIZE_FLAGS = @HOST_OPTIMIZE_FLAGS@
|
||||
HOST_NSPR_MDCPUCFG = @HOST_NSPR_MDCPUCFG@
|
||||
HOST_AR = @HOST_AR@
|
||||
HOST_LD = @HOST_LD@
|
||||
HOST_RANLIB = @HOST_RANLIB@
|
||||
|
||||
HOST_LIBIDL_CONFIG = @HOST_LIBIDL_CONFIG@
|
||||
HOST_LIBIDL_CFLAGS = @HOST_LIBIDL_CFLAGS@
|
||||
HOST_LIBIDL_LIBS = @HOST_LIBIDL_LIBS@
|
||||
|
||||
TARGET_NSPR_MDCPUCFG = @TARGET_NSPR_MDCPUCFG@
|
||||
TARGET_CPU = @TARGET_CPU@
|
||||
TARGET_VENDOR = @TARGET_VENDOR@
|
||||
TARGET_OS = @TARGET_OS@
|
||||
TARGET_MD_ARCH = @TARGET_MD_ARCH@
|
||||
|
||||
AUTOCONF = @AUTOCONF@
|
||||
PERL = @PERL@
|
||||
RANLIB = @RANLIB@
|
||||
WHOAMI = @WHOAMI@
|
||||
UNZIP = @UNZIP@
|
||||
ZIP = @ZIP@
|
||||
XARGS = @XARGS@
|
||||
STRIP = @STRIP@
|
||||
DOXYGEN = @DOXYGEN@
|
||||
MAKE = @MAKE@
|
||||
PBBUILD = @PBBUILD@
|
||||
|
||||
ifdef MOZ_NATIVE_JPEG
|
||||
JPEG_CFLAGS = @JPEG_CFLAGS@
|
||||
JPEG_LIBS = @JPEG_LIBS@
|
||||
JPEG_REQUIRES =
|
||||
else
|
||||
JPEG_CFLAGS = @MOZ_JPEG_CFLAGS@
|
||||
JPEG_LIBS = @MOZ_JPEG_LIBS@
|
||||
JPEG_REQUIRES = jpeg
|
||||
endif
|
||||
|
||||
ifdef MOZ_NATIVE_ZLIB
|
||||
ZLIB_CFLAGS = @ZLIB_CFLAGS@
|
||||
ZLIB_LIBS = @ZLIB_LIBS@
|
||||
ZLIB_REQUIRES =
|
||||
else
|
||||
ZLIB_CFLAGS = @MOZ_ZLIB_CFLAGS@
|
||||
ZLIB_LIBS = @MOZ_ZLIB_LIBS@
|
||||
ZLIB_REQUIRES = zlib
|
||||
endif
|
||||
|
||||
ifdef MOZ_NATIVE_PNG
|
||||
PNG_CFLAGS = @PNG_CFLAGS@
|
||||
PNG_LIBS = @PNG_LIBS@
|
||||
PNG_REQUIRES =
|
||||
else
|
||||
PNG_CFLAGS = @MOZ_PNG_CFLAGS@
|
||||
PNG_LIBS = @MOZ_PNG_LIBS@
|
||||
PNG_REQUIRES = png
|
||||
endif
|
||||
|
||||
NSPR_CFLAGS = @NSPR_CFLAGS@
|
||||
NSPR_LIBS = @NSPR_LIBS@
|
||||
|
||||
LDAP_CFLAGS = @LDAP_CFLAGS@
|
||||
LDAP_LIBS = @LDAP_LIBS@
|
||||
XPCOM_GLUE_LIBS = @XPCOM_GLUE_LIBS@
|
||||
MOZ_XPCOM_OBSOLETE_LIBS = @MOZ_XPCOM_OBSOLETE_LIBS@
|
||||
|
||||
USE_DEPENDENT_LIBS = @USE_DEPENDENT_LIBS@
|
||||
|
||||
# UNIX98 iconv support
|
||||
LIBICONV = @LIBICONV@
|
||||
|
||||
# MKSHLIB_FORCE_ALL is used to force the linker to include all object
|
||||
# files present in an archive. MKSHLIB_UNFORCE_ALL reverts the linker
|
||||
# to normal behavior. Makefile's that create shared libraries out of
|
||||
# archives use these flags to force in all of the .o files in the
|
||||
# archives into the shared library.
|
||||
WRAP_MALLOC_LIB = @WRAP_MALLOC_LIB@
|
||||
WRAP_MALLOC_CFLAGS = @WRAP_MALLOC_CFLAGS@
|
||||
DSO_CFLAGS = @DSO_CFLAGS@
|
||||
DSO_PIC_CFLAGS = @DSO_PIC_CFLAGS@
|
||||
MKSHLIB = @MKSHLIB@
|
||||
MKCSHLIB = @MKCSHLIB@
|
||||
MKSHLIB_FORCE_ALL = @MKSHLIB_FORCE_ALL@
|
||||
MKSHLIB_UNFORCE_ALL = @MKSHLIB_UNFORCE_ALL@
|
||||
DSO_LDOPTS = @DSO_LDOPTS@
|
||||
DLL_SUFFIX = @DLL_SUFFIX@
|
||||
|
||||
NO_LD_ARCHIVE_FLAGS = @NO_LD_ARCHIVE_FLAGS@
|
||||
|
||||
GTK_CONFIG = @GTK_CONFIG@
|
||||
TK_CFLAGS = @TK_CFLAGS@
|
||||
TK_LIBS = @TK_LIBS@
|
||||
|
||||
MOZ_TOOLKIT_REGISTRY_CFLAGS = \
|
||||
-DWIDGET_DLL=@WIDGET_DLL@ \
|
||||
-DGFXWIN_DLL=@GFXWIN_DLL@ \
|
||||
$(TK_CFLAGS)
|
||||
|
||||
MOZ_ENABLE_GTK = @MOZ_ENABLE_GTK@
|
||||
MOZ_ENABLE_GTK2 = @MOZ_ENABLE_GTK2@
|
||||
MOZ_ENABLE_XLIB = @MOZ_ENABLE_XLIB@
|
||||
MOZ_ENABLE_PHOTON = @MOZ_ENABLE_PHOTON@
|
||||
MOZ_ENABLE_COCOA = @MOZ_ENABLE_COCOA@
|
||||
MOZ_ENABLE_XREMOTE = @MOZ_ENABLE_XREMOTE@
|
||||
|
||||
MOZ_GTK_CFLAGS = @MOZ_GTK_CFLAGS@
|
||||
MOZ_GTK_LDFLAGS = @MOZ_GTK_LDFLAGS@
|
||||
|
||||
MOZ_GTK2_CFLAGS = @MOZ_GTK2_CFLAGS@
|
||||
MOZ_GTK2_LIBS = @MOZ_GTK2_LIBS@
|
||||
|
||||
MOZ_XLIB_CFLAGS = @MOZ_XLIB_CFLAGS@
|
||||
MOZ_XLIB_LDFLAGS = @MOZ_XLIB_LDFLAGS@
|
||||
|
||||
MOZ_XPRINT_CFLAGS = @MOZ_XPRINT_CFLAGS@
|
||||
MOZ_XPRINT_LDFLAGS = @MOZ_XPRINT_LDFLAGS@
|
||||
MOZ_ENABLE_XPRINT = @MOZ_ENABLE_XPRINT@
|
||||
|
||||
MOZ_ENABLE_FREETYPE2 = @MOZ_ENABLE_FREETYPE2@
|
||||
FT2_CFLAGS = @FT2_CFLAGS@
|
||||
FT2_LIBS = @FT2_LIBS@
|
||||
|
||||
MOZ_ENABLE_XFT = @MOZ_ENABLE_XFT@
|
||||
MOZ_XFT_CFLAGS = @MOZ_XFT_CFLAGS@
|
||||
MOZ_XFT_LIBS = @MOZ_XFT_LIBS@
|
||||
MOZ_ENABLE_COREXFONTS = @MOZ_ENABLE_COREXFONTS@
|
||||
|
||||
MOZ_EXTRA_X11CONVERTERS = @MOZ_EXTRA_X11CONVERTERS@
|
||||
|
||||
MOZ_ENABLE_XINERAMA = @MOZ_ENABLE_XINERAMA@
|
||||
MOZ_XINERAMA_LIBS = @MOZ_XINERAMA_LIBS@
|
||||
|
||||
MOZ_XIE_LIBS = @MOZ_XIE_LIBS@
|
||||
XT_LIBS = @XT_LIBS@
|
||||
|
||||
GLIB_CFLAGS = @GLIB_CFLAGS@
|
||||
GLIB_LIBS = @GLIB_LIBS@
|
||||
GLIB_GMODULE_LIBS = @GLIB_GMODULE_LIBS@
|
||||
LIBIDL_CFLAGS = @LIBIDL_CFLAGS@
|
||||
LIBIDL_LIBS = @LIBIDL_LIBS@
|
||||
|
||||
MOZ_NATIVE_MAKEDEPEND = @SYSTEM_MAKEDEPEND@
|
||||
|
||||
# Used for LD_LIBRARY_PATH
|
||||
LIBS_PATH = @LIBS_PATH@
|
||||
|
||||
MOZ_AUTO_DEPS = @MOZ_AUTO_DEPS@
|
||||
COMPILER_DEPEND = @COMPILER_DEPEND@
|
||||
MDDEPDIR := @MDDEPDIR@
|
||||
|
||||
MOZ_DEMANGLE_SYMBOLS = @MOZ_DEMANGLE_SYMBOLS@
|
||||
|
||||
# XXX - these need to be cleaned up and have real checks added -cls
|
||||
CM_BLDTYPE=dbg
|
||||
AWT_11=1
|
||||
MOZ_BITS=32
|
||||
OS_TARGET=@OS_TARGET@
|
||||
OS_ARCH=@OS_ARCH@
|
||||
OS_RELEASE=@OS_RELEASE@
|
||||
OS_TEST=@OS_TEST@
|
||||
|
||||
# For OS/2 build
|
||||
MOZ_OS2_TOOLS = @MOZ_OS2_TOOLS@
|
||||
MOZ_OS2_EMX_OBJECTFORMAT = @MOZ_OS2_EMX_OBJECTFORMAT@
|
||||
|
||||
HAVE_XIE=@HAVE_XIE@
|
||||
|
||||
MOZ_MOVEMAIL=@MOZ_MOVEMAIL@
|
||||
MOZ_PSM=@MOZ_PSM@
|
||||
|
||||
# for Qt build
|
||||
MOC=@MOC@
|
||||
|
||||
# Win32 options
|
||||
MOZ_PROFILE = @MOZ_PROFILE@
|
||||
MOZ_COVERAGE = @MOZ_COVERAGE@
|
||||
MOZ_BROWSE_INFO = @MOZ_BROWSE_INFO@
|
||||
MOZ_TOOLS_DIR = @MOZ_TOOLS_DIR@
|
||||
|
||||
# Codesighs tools option, enables win32 mapfiles.
|
||||
MOZ_MAPINFO = @MOZ_MAPINFO@
|
||||
|
||||
MOZ_PHOENIX = @MOZ_PHOENIX@
|
||||
MOZ_XUL_APP = @MOZ_XUL_APP@
|
||||
MOZ_THUNDERBIRD = @MOZ_THUNDERBIRD@
|
||||
MOZ_STANDALONE_COMPOSER= @MOZ_STANDALONE_COMPOSER@
|
||||
MOZ_STATIC_MAIL_BUILD = @MOZ_STATIC_MAIL_BUILD@
|
||||
|
||||
MOZ_COMPONENTLIB = @MOZ_COMPONENTLIB@
|
||||
@@ -1,787 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
#
|
||||
# config.mk
|
||||
#
|
||||
# Determines the platform and builds the macros needed to load the
|
||||
# appropriate platform-specific .mk file, then defines all (most?)
|
||||
# of the generic macros.
|
||||
#
|
||||
|
||||
# Define an include-at-most-once flag
|
||||
INCLUDED_CONFIG_MK = 1
|
||||
|
||||
ifndef topsrcdir
|
||||
topsrcdir = $(DEPTH)
|
||||
endif
|
||||
|
||||
ifndef INCLUDED_AUTOCONF_MK
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
endif
|
||||
ifndef INCLUDED_INSURE_MK
|
||||
ifdef MOZ_INSURIFYING
|
||||
include $(topsrcdir)/config/insure.mk
|
||||
endif
|
||||
endif
|
||||
|
||||
GRE_DIST = $(DIST)/gre
|
||||
|
||||
#
|
||||
# The VERSION_NUMBER is suffixed onto the end of the DLLs we ship.
|
||||
# Since the longest of these is 5 characters without the suffix,
|
||||
# be sure to not set VERSION_NUMBER to anything longer than 3
|
||||
# characters for Win16's sake.
|
||||
#
|
||||
VERSION_NUMBER = 50
|
||||
|
||||
BUILD_TOOLS = $(topsrcdir)/build/unix
|
||||
CONFIG_TOOLS = $(DEPTH)/config
|
||||
AUTOCONF_TOOLS = $(topsrcdir)/build/autoconf
|
||||
|
||||
#
|
||||
# Tweak the default OS_ARCH and OS_RELEASE macros as needed.
|
||||
#
|
||||
ifeq ($(OS_ARCH),AIX)
|
||||
OS_RELEASE := $(shell uname -v).$(shell uname -r)
|
||||
endif
|
||||
ifeq ($(OS_ARCH),BSD_386)
|
||||
OS_ARCH := BSD_OS
|
||||
endif
|
||||
ifeq ($(OS_ARCH),dgux)
|
||||
OS_ARCH := DGUX
|
||||
endif
|
||||
ifeq ($(OS_ARCH),IRIX64)
|
||||
OS_ARCH := IRIX
|
||||
endif
|
||||
ifeq ($(OS_ARCH),UNIX_SV)
|
||||
ifneq ($(findstring NCR,$(shell grep NCR /etc/bcheckrc | head -1 )),)
|
||||
OS_ARCH := NCR
|
||||
else
|
||||
OS_ARCH := UNIXWARE
|
||||
OS_RELEASE := $(shell uname -v)
|
||||
endif
|
||||
endif
|
||||
ifeq ($(OS_ARCH),ncr)
|
||||
OS_ARCH := NCR
|
||||
endif
|
||||
# This is the only way to correctly determine the actual OS version on NCR boxes.
|
||||
ifeq ($(OS_ARCH),NCR)
|
||||
OS_RELEASE := $(shell awk '{print $$3}' /etc/.relid | sed 's/^\([0-9]\)\(.\)\(..\)\(.*\)$$/\2.\3/')
|
||||
endif
|
||||
ifeq ($(OS_ARCH),UNIX_System_V)
|
||||
OS_ARCH := NEC
|
||||
endif
|
||||
ifeq ($(OS_ARCH),OSF1)
|
||||
OS_SUB := $(shell uname -v)
|
||||
# Until I know the other possibilities, or an easier way to compute them, this is all there's gonna be.
|
||||
#ifeq ($(OS_SUB),240)
|
||||
#OS_RELEASE := V2.0
|
||||
#endif
|
||||
ifeq ($(OS_SUB),148)
|
||||
OS_RELEASE := V3.2C
|
||||
endif
|
||||
ifeq ($(OS_SUB),564)
|
||||
OS_RELEASE := V4.0B
|
||||
endif
|
||||
ifeq ($(OS_SUB),878)
|
||||
OS_RELEASE := V4.0D
|
||||
endif
|
||||
endif
|
||||
ifneq (,$(findstring OpenVMS,$(OS_ARCH)))
|
||||
OS_ARCH := OpenVMS
|
||||
OS_RELEASE := $(shell uname -v)
|
||||
CPU_ARCH := $(shell uname -p)
|
||||
CPU_ARCH_TAG := _$(CPU_ARCH)
|
||||
endif
|
||||
ifeq ($(OS_ARCH),QNX)
|
||||
ifeq ($(OS_TARGET),NTO)
|
||||
LD := qcc -Vgcc_ntox86 -nostdlib
|
||||
else
|
||||
OS_RELEASE := $(shell uname -v | sed 's/^\([0-9]\)\([0-9]*\)$$/\1.\2/')
|
||||
LD := $(CC)
|
||||
endif
|
||||
OS_TEST := x86
|
||||
endif
|
||||
ifeq ($(OS_ARCH),SCO_SV)
|
||||
OS_ARCH := SCOOS
|
||||
OS_RELEASE := 5.0
|
||||
endif
|
||||
ifneq (,$(filter SINIX-N SINIX-Y SINIX-Z ReliantUNIX-M,$(OS_ARCH)))
|
||||
OS_ARCH := SINIX
|
||||
OS_TEST := $(shell uname -p)
|
||||
endif
|
||||
ifeq ($(OS_ARCH),UnixWare)
|
||||
OS_ARCH := UNIXWARE
|
||||
OS_RELEASE := $(shell uname -v)
|
||||
endif
|
||||
ifeq ($(OS_ARCH),OS_2)
|
||||
OS_ARCH := OS2
|
||||
OS_RELEASE := $(shell uname -v)
|
||||
endif
|
||||
ifeq ($(OS_ARCH),BeOS)
|
||||
BEOS_ADDON_WORKAROUND = 1
|
||||
endif
|
||||
|
||||
#
|
||||
# Strip off the excessively long version numbers on these platforms,
|
||||
# but save the version to allow multiple versions of the same base
|
||||
# platform to be built in the same tree.
|
||||
#
|
||||
ifneq (,$(filter FreeBSD HP-UX IRIX Linux NetBSD OpenBSD OSF1 SunOS,$(OS_ARCH)))
|
||||
OS_RELEASE := $(basename $(OS_RELEASE))
|
||||
|
||||
# Allow the user to ignore the OS_VERSION, which is usually irrelevant.
|
||||
ifdef WANT_MOZILLA_CONFIG_OS_VERSION
|
||||
OS_VERS := $(suffix $(OS_RELEASE))
|
||||
OS_VERSION := $(shell echo $(OS_VERS) | sed 's/-.*//')
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
OS_CONFIG := $(OS_ARCH)$(OS_RELEASE)
|
||||
|
||||
FINAL_LINK_LIBS = $(DEPTH)/config/final-link-libs
|
||||
FINAL_LINK_COMPS = $(DEPTH)/config/final-link-comps
|
||||
FINAL_LINK_COMP_NAMES = $(DEPTH)/config/final-link-comp-names
|
||||
|
||||
#
|
||||
# NSS libs needed for final link in static build
|
||||
#
|
||||
|
||||
NSS_LIBS = \
|
||||
$(LIBS_DIR) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)crmf.$(LIB_SUFFIX) \
|
||||
-lsmime3 \
|
||||
-lssl3 \
|
||||
-lnss3 \
|
||||
-lsoftokn3 \
|
||||
$(NULL)
|
||||
|
||||
ifneq (,$(filter OS2 WINNT, $(OS_ARCH)))
|
||||
ifndef GNU_CC
|
||||
NSS_LIBS = \
|
||||
$(DIST)/lib/$(LIB_PREFIX)crmf.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)smime3.$(IMPORT_LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)ssl3.$(IMPORT_LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)nss3.$(IMPORT_LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)softokn3.$(IMPORT_LIB_SUFFIX) \
|
||||
$(NULL)
|
||||
endif
|
||||
endif
|
||||
|
||||
NSS_DEP_LIBS = \
|
||||
$(DIST)/lib/$(LIB_PREFIX)crmf.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(DLL_PREFIX)smime3$(DLL_SUFFIX) \
|
||||
$(DIST)/lib/$(DLL_PREFIX)ssl3$(DLL_SUFFIX) \
|
||||
$(DIST)/lib/$(DLL_PREFIX)nss3$(DLL_SUFFIX) \
|
||||
$(DIST)/lib/$(DLL_PREFIX)softokn3$(DLL_SUFFIX) \
|
||||
$(NULL)
|
||||
|
||||
MOZ_UNICHARUTIL_LIBS = $(DIST)/lib/$(LIB_PREFIX)unicharutil_s.$(LIB_SUFFIX)
|
||||
MOZ_REGISTRY_LIBS = $(DIST)/lib/$(LIB_PREFIX)mozreg_s.$(LIB_SUFFIX)
|
||||
MOZ_WIDGET_SUPPORT_LIBS = $(DIST)/lib/$(LIB_PREFIX)widgetsupport_s.$(LIB_SUFFIX)
|
||||
|
||||
# determine debug-related options
|
||||
_DEBUG_CFLAGS :=
|
||||
_DEBUG_LDFLAGS :=
|
||||
|
||||
ifndef MOZ_DEBUG
|
||||
# global debugging is disabled
|
||||
# check if it was explicitly enabled for this module
|
||||
ifneq (, $(findstring $(MODULE), $(MOZ_DEBUG_MODULES)))
|
||||
MOZ_DEBUG:=1
|
||||
endif
|
||||
else
|
||||
# global debugging is enabled
|
||||
# check if it was explicitly disabled for this module
|
||||
ifneq (, $(findstring ^$(MODULE), $(MOZ_DEBUG_MODULES)))
|
||||
MOZ_DEBUG:=
|
||||
endif
|
||||
endif
|
||||
|
||||
ifdef MOZ_DEBUG
|
||||
_DEBUG_CFLAGS += $(MOZ_DEBUG_ENABLE_DEFS)
|
||||
else
|
||||
_DEBUG_CFLAGS += $(MOZ_DEBUG_DISABLE_DEFS)
|
||||
endif
|
||||
|
||||
# determine if -g should be passed to the compiler, based on
|
||||
# the current module, and the value of MOZ_DBGRINFO_MODULES
|
||||
|
||||
ifdef MOZ_DEBUG
|
||||
MOZ_DBGRINFO_MODULES += ALL_MODULES
|
||||
pattern := ALL_MODULES ^ALL_MODULES
|
||||
else
|
||||
MOZ_DBGRINFO_MODULES += ^ALL_MODULES
|
||||
pattern := ALL_MODULES ^ALL_MODULES
|
||||
endif
|
||||
|
||||
ifdef MODULE
|
||||
# our current Makefile specifies a module name - add it to our pattern
|
||||
pattern += $(MODULE) ^$(MODULE)
|
||||
endif
|
||||
|
||||
# start by finding the first relevant module name
|
||||
# (remember that the order of the module names in MOZ_DBGRINFO_MODULES
|
||||
# is reversed from the order the user specified to configure -
|
||||
# this allows the user to put general names at the beginning
|
||||
# of the list, and to override them with explicit module names later
|
||||
# in the list)
|
||||
|
||||
first_match:=$(firstword $(filter $(pattern), $(MOZ_DBGRINFO_MODULES)))
|
||||
|
||||
ifeq ($(first_match), $(MODULE))
|
||||
# the user specified explicitly that
|
||||
# this module should be compiled with -g
|
||||
_DEBUG_CFLAGS += $(MOZ_DEBUG_FLAGS)
|
||||
_DEBUG_LDFLAGS += $(MOZ_DEBUG_LDFLAGS)
|
||||
else
|
||||
ifeq ($(first_match), ^$(MODULE))
|
||||
# the user specified explicitly that this module
|
||||
# should not be compiled with -g (nothing to do)
|
||||
else
|
||||
ifeq ($(first_match), ALL_MODULES)
|
||||
# the user didn't mention this module explicitly,
|
||||
# but wanted all modules to be compiled with -g
|
||||
_DEBUG_CFLAGS += $(MOZ_DEBUG_FLAGS)
|
||||
_DEBUG_LDFLAGS += $(MOZ_DEBUG_LDFLAGS)
|
||||
else
|
||||
ifeq ($(first_match), ^ALL_MODULES)
|
||||
# the user didn't mention this module explicitly,
|
||||
# but wanted all modules to be compiled without -g (nothing to do)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
# append debug flags
|
||||
# (these might have been above when processing MOZ_DBGRINFO_MODULES)
|
||||
OS_CFLAGS += $(_DEBUG_CFLAGS)
|
||||
OS_CXXFLAGS += $(_DEBUG_CFLAGS)
|
||||
OS_LDFLAGS += $(_DEBUG_LDFLAGS)
|
||||
|
||||
# MOZ_PROFILE & MOZ_COVERAGE equivs for win32
|
||||
ifeq ($(OS_ARCH)_$(GNU_CC),WINNT_)
|
||||
ifdef MOZ_DEBUG
|
||||
ifneq (,$(MOZ_BROWSE_INFO)$(MOZ_BSCFILE))
|
||||
OS_CFLAGS += /FR
|
||||
OS_CXXFLAGS += /FR
|
||||
endif
|
||||
else
|
||||
# if MOZ_DEBUG is not set and MOZ_PROFILE is set, then we generate
|
||||
# an optimized build with debugging symbols. Useful for debugging
|
||||
# compiler optimization bugs, as well as running with Quantify.
|
||||
ifdef MOZ_PROFILE
|
||||
MOZ_OPTIMIZE_FLAGS=-Zi -O1 -UDEBUG -DNDEBUG
|
||||
OS_LDFLAGS = /DEBUG /DEBUGTYPE:CV /PDB:NONE /OPT:REF /OPT:nowin98
|
||||
WIN32_EXE_LDFLAGS=/FIXED:NO
|
||||
endif
|
||||
|
||||
# if MOZ_COVERAGE is set, we handle pdb files slightly differently
|
||||
ifdef MOZ_COVERAGE
|
||||
MOZ_OPTIMIZE_FLAGS=-Zi -O1 -UDEBUG -DNDEBUG
|
||||
OS_LDFLAGS = /DEBUG /DEBUGTYPE:CV /PDB:NONE /OPT:REF /OPT:nowin98
|
||||
_ORDERFILE := $(wildcard $(srcdir)/win32.order)
|
||||
ifneq (,$(_ORDERFILE))
|
||||
OS_LDFLAGS += /ORDER:@$(srcdir)/win32.order
|
||||
endif
|
||||
endif
|
||||
# MOZ_COVERAGE
|
||||
|
||||
#
|
||||
# Handle trace-malloc in optimized builds.
|
||||
# No opt to give sane callstacks.
|
||||
#
|
||||
ifdef NS_TRACE_MALLOC
|
||||
MOZ_OPTIMIZE_FLAGS=-Zi -Od -UDEBUG -DNDEBUG
|
||||
OS_LDFLAGS = /DEBUG /DEBUGTYPE:CV /PDB:NONE /OPT:REF /OPT:nowin98
|
||||
endif
|
||||
# NS_TRACE_MALLOC
|
||||
|
||||
endif # MOZ_DEBUG
|
||||
endif # WINNT && !GNU_CC
|
||||
|
||||
|
||||
#
|
||||
# -ffunction-sections is needed to reorder functions using a GNU ld
|
||||
# script.
|
||||
#
|
||||
ifeq ($(MOZ_REORDER),1)
|
||||
OS_CFLAGS += -ffunction-sections
|
||||
OS_CXXFLAGS += -ffunction-sections
|
||||
endif
|
||||
|
||||
#
|
||||
# List known meta modules and their dependent libs
|
||||
#
|
||||
_ALL_META_COMPONENTS=mail crypto
|
||||
|
||||
MOZ_META_COMPONENTS_mail = \
|
||||
IMAP_factory \
|
||||
mime_services \
|
||||
nsMsgNewsModule \
|
||||
nsImportServiceModule \
|
||||
nsAbModule \
|
||||
nsTextImportModule \
|
||||
nsVCardModule \
|
||||
nsMsgDBModule \
|
||||
nsMsgMdnModule \
|
||||
nsMsgMailViewModule \
|
||||
nsBayesianFilterModule \
|
||||
$(NULL)
|
||||
|
||||
MOZ_META_COMPONENTS_mail_comps = \
|
||||
msgimap \
|
||||
mime \
|
||||
msgnews \
|
||||
import \
|
||||
addrbook \
|
||||
impText \
|
||||
vcard \
|
||||
msgdb \
|
||||
msgmdn \
|
||||
mailview \
|
||||
offline-startup \
|
||||
bayesflt \
|
||||
$(NULL)
|
||||
|
||||
MOZ_META_COMPONENTS_mail_libs = mimecthglue_s
|
||||
ifdef USE_SHORT_LIBNAME
|
||||
MOZ_META_COMPONENTS_mail_libs += msgbsutl
|
||||
else
|
||||
MOZ_META_COMPONENTS_mail_libs += msgbaseutil
|
||||
endif
|
||||
|
||||
ifeq ($(OS_ARCH),WINNT)
|
||||
MOZ_META_COMPONENTS_mail += \
|
||||
nsMsgBaseModule \
|
||||
nsEudoraImportModule \
|
||||
nsOEImport \
|
||||
nsOutlookImport \
|
||||
msgMapiModule \
|
||||
$(NULL)
|
||||
MOZ_META_COMPONENTS_mail_comps += \
|
||||
msgbase \
|
||||
impEudra \
|
||||
importOE \
|
||||
impOutlk \
|
||||
msgMapi \
|
||||
$(NULL)
|
||||
else
|
||||
MOZ_META_COMPONENTS_mail += nsMsgBaseModule
|
||||
MOZ_META_COMPONENTS_mail_comps += mailnews
|
||||
endif
|
||||
|
||||
MOZ_META_COMPONENTS_mail += \
|
||||
nsMimeEmitterModule \
|
||||
nsMsgComposeModule \
|
||||
local_mail_services \
|
||||
nsComm4xMailImportModule \
|
||||
$(NULL)
|
||||
|
||||
ifdef USE_SHORT_LIBNAME
|
||||
MOZ_META_COMPONENTS_mail_comps += emitter msgcompo msglocal
|
||||
ifeq ($(OS_ARCH),WINNT)
|
||||
MOZ_META_COMPONENTS_mail_comps += impComm4xMail
|
||||
else
|
||||
MOZ_META_COMPONENTS_mail_comps += imp4Mail
|
||||
endif
|
||||
else
|
||||
MOZ_META_COMPONENTS_mail_comps += mimeemitter msgcompose localmail impComm4xMail
|
||||
endif
|
||||
|
||||
ifdef MOZ_PSM
|
||||
MOZ_META_COMPONENTS_mail += nsMsgSMIMEModule
|
||||
MOZ_META_COMPONENTS_mail_comps += msgsmime
|
||||
else
|
||||
MOZ_META_COMPONENTS_mail += nsSMIMEModule
|
||||
MOZ_META_COMPONENTS_mail_comps += smimestb
|
||||
endif
|
||||
|
||||
MOZ_META_COMPONENTS_crypto = BOOT PKI NSS
|
||||
MOZ_META_COMPONENTS_crypto_comps = pipboot pippki pipnss
|
||||
|
||||
#
|
||||
# Build using PIC by default
|
||||
# Do not use PIC if not building a shared lib (see exceptions below)
|
||||
#
|
||||
ifneq (,$(BUILD_SHARED_LIBS)$(FORCE_SHARED_LIB)$(FORCE_USE_PIC))
|
||||
_ENABLE_PIC=1
|
||||
endif
|
||||
|
||||
# If module is going to be merged into the nsStaticModule,
|
||||
# make sure that the entry points are translated and
|
||||
# the module is built static.
|
||||
|
||||
ifdef IS_COMPONENT
|
||||
ifneq (,$(MOZ_STATIC_COMPONENT_LIBS)$(findstring $(LIBRARY_NAME), $(MOZ_STATIC_COMPONENTS)))
|
||||
ifdef MODULE_NAME
|
||||
DEFINES += -DXPCOM_TRANSLATE_NSGM_ENTRY_POINT=1
|
||||
FORCE_STATIC_LIB=1
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
# Determine if module being compiled is destined
|
||||
# to be merged into a meta module in the future
|
||||
|
||||
ifneq (, $(findstring $(META_COMPONENT), $(MOZ_META_COMPONENTS)))
|
||||
ifdef IS_COMPONENT
|
||||
ifdef MODULE_NAME
|
||||
DEFINES += -DXPCOM_TRANSLATE_NSGM_ENTRY_POINT=1
|
||||
endif
|
||||
endif
|
||||
EXPORT_LIBRARY=
|
||||
FORCE_STATIC_LIB=1
|
||||
_ENABLE_PIC=1
|
||||
endif
|
||||
|
||||
#
|
||||
# Force PIC if we're generating the mozcomps meta module
|
||||
#
|
||||
|
||||
ifneq (,$(findstring mozcomps, $(MOZ_META_COMPONENTS)))
|
||||
_ENABLE_PIC=1
|
||||
endif
|
||||
|
||||
#
|
||||
# Disable PIC if necessary
|
||||
#
|
||||
|
||||
ifndef _ENABLE_PIC
|
||||
DSO_CFLAGS=
|
||||
ifeq ($(OS_ARCH)_$(HAVE_GCC3_ABI),Darwin_1)
|
||||
DSO_PIC_CFLAGS=-mdynamic-no-pic
|
||||
else
|
||||
DSO_PIC_CFLAGS=
|
||||
endif
|
||||
MKSHLIB=
|
||||
endif
|
||||
|
||||
# Force _all_ exported methods to be |_declspec(dllexport)| when we're
|
||||
# building them into the executable.
|
||||
ifeq ($(OS_ARCH),WINNT)
|
||||
ifdef MOZ_STATIC_COMPONENT_LIBS
|
||||
DEFINES += \
|
||||
-D_IMPL_NS_GFX \
|
||||
-D_IMPL_NS_MSG_BASE \
|
||||
-D_IMPL_NS_PICS \
|
||||
-D_IMPL_NS_WIDGET \
|
||||
$(NULL)
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
#
|
||||
# Personal makefile customizations go in these optional make include files.
|
||||
#
|
||||
MY_CONFIG := $(DEPTH)/config/myconfig.mk
|
||||
MY_RULES := $(DEPTH)/config/myrules.mk
|
||||
|
||||
#
|
||||
# Default command macros; can be overridden in <arch>.mk.
|
||||
#
|
||||
CCC = $(CXX)
|
||||
NFSPWD = $(CONFIG_TOOLS)/nfspwd
|
||||
PURIFY = purify $(PURIFYOPTIONS)
|
||||
QUANTIFY = quantify $(QUANTIFYOPTIONS)
|
||||
ifdef CROSS_COMPILE
|
||||
XPIDL_COMPILE = $(CYGWIN_WRAPPER) $(DIST)/host/bin/host_xpidl$(BIN_SUFFIX)
|
||||
XPIDL_LINK = $(CYGWIN_WRAPPER) $(DIST)/host/bin/host_xpt_link$(BIN_SUFFIX)
|
||||
else
|
||||
XPIDL_COMPILE = $(CYGWIN_WRAPPER) $(DIST)/bin/xpidl$(BIN_SUFFIX)
|
||||
XPIDL_LINK = $(CYGWIN_WRAPPER) $(DIST)/bin/xpt_link$(BIN_SUFFIX)
|
||||
endif
|
||||
|
||||
REQ_INCLUDES = $(foreach d,$(REQUIRES),-I$(DIST)/include/$d)
|
||||
|
||||
INCLUDES = $(LOCAL_INCLUDES) $(REQ_INCLUDES) -I$(PUBLIC) -I$(DIST)/include $(OS_INCLUDES)
|
||||
|
||||
CFLAGS = $(OS_CFLAGS)
|
||||
CXXFLAGS = $(OS_CXXFLAGS)
|
||||
LDFLAGS = $(OS_LDFLAGS)
|
||||
|
||||
# Allow each module to override the *default* optimization settings
|
||||
# by setting MODULE_OPTIMIZE_FLAGS iff the developer has not given
|
||||
# arguments to --enable-optimize
|
||||
ifdef MOZ_OPTIMIZE
|
||||
ifeq (1,$(MOZ_OPTIMIZE))
|
||||
ifdef MODULE_OPTIMIZE_FLAGS
|
||||
CFLAGS += $(MODULE_OPTIMIZE_FLAGS)
|
||||
CXXFLAGS += $(MODULE_OPTIMIZE_FLAGS)
|
||||
else
|
||||
CFLAGS += $(MOZ_OPTIMIZE_FLAGS)
|
||||
CXXFLAGS += $(MOZ_OPTIMIZE_FLAGS)
|
||||
endif # MODULE_OPTIMIZE_FLAGS
|
||||
else
|
||||
CFLAGS += $(MOZ_OPTIMIZE_FLAGS)
|
||||
CXXFLAGS += $(MOZ_OPTIMIZE_FLAGS)
|
||||
endif # MOZ_OPTIMIZE == 1
|
||||
LDFLAGS += $(MOZ_OPTIMIZE_LDFLAGS)
|
||||
endif # MOZ_OPTIMIZE
|
||||
|
||||
ifdef CROSS_COMPILE
|
||||
HOST_CFLAGS += $(HOST_OPTIMIZE_FLAGS)
|
||||
else
|
||||
ifdef MOZ_OPTIMIZE
|
||||
ifeq (1,$(MOZ_OPTIMIZE))
|
||||
ifdef MODULE_OPTIMIZE_FLAGS
|
||||
HOST_CFLAGS += $(MODULE_OPTIMIZE_FLAGS)
|
||||
else
|
||||
HOST_CFLAGS += $(MOZ_OPTIMIZE_FLAGS)
|
||||
endif # MODULE_OPTIMIZE_FLAGS
|
||||
else
|
||||
HOST_CFLAGS += $(MOZ_OPTIMIZE_FLAGS)
|
||||
endif # MOZ_OPTIMIZE == 1
|
||||
endif # MOZ_OPTIMIZE
|
||||
endif # CROSS_COMPILE
|
||||
|
||||
ifeq ($(MOZ_OS2_TOOLS),VACPP)
|
||||
ifdef USE_STATIC_LIBS
|
||||
RTL_FLAGS += /Gd-
|
||||
else # !USE_STATIC_LIBS
|
||||
RTL_FLAGS += /Gd+
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
ifeq ($(OS_ARCH)_$(GNU_CC),WINNT_)
|
||||
#// Currently, unless USE_STATIC_LIBS is defined, the multithreaded
|
||||
#// DLL version of the RTL is used...
|
||||
#//
|
||||
#//------------------------------------------------------------------------
|
||||
ifdef USE_STATIC_LIBS
|
||||
RTL_FLAGS=-MT # Statically linked multithreaded RTL
|
||||
ifneq (,$(MOZ_DEBUG)$(NS_TRACE_MALLOC))
|
||||
RTL_FLAGS=-MTd # Statically linked multithreaded MSVC4.0 debug RTL
|
||||
endif # MOZ_DEBUG || NS_TRACE_MALLOC
|
||||
|
||||
else # !USE_STATIC_LIBS
|
||||
|
||||
ifdef USE_NON_MT_LIBS
|
||||
RTL_FLAGS=-ML # Statically linked non-multithreaded LIBC RTL
|
||||
ifneq (,$(MOZ_DEBUG)$(NS_TRACE_MALLOC))
|
||||
RTL_FLAGS=-MLd # Statically linked non-multithreaded LIBC debug RTL
|
||||
endif # MOZ_DEBUG || NS_TRACE_MALLOC
|
||||
|
||||
else # ! USE_NON_MT_LIBS
|
||||
|
||||
RTL_FLAGS=-MD # Dynamically linked, multithreaded RTL
|
||||
ifneq (,$(MOZ_DEBUG)$(NS_TRACE_MALLOC))
|
||||
ifndef MOZ_NO_DEBUG_RTL
|
||||
RTL_FLAGS=-MDd # Dynamically linked, multithreaded MSVC4.0 debug RTL
|
||||
endif
|
||||
endif # MOZ_DEBUG || NS_TRACE_MALLOC
|
||||
endif # USE_NON_MT_LIBS
|
||||
endif # USE_STATIC_LIBS
|
||||
endif # WINNT && !GNU_CC
|
||||
|
||||
|
||||
COMPILE_CFLAGS = $(DEFINES) $(INCLUDES) $(XCFLAGS) $(PROFILER_CFLAGS) $(DSO_CFLAGS) $(DSO_PIC_CFLAGS) $(CFLAGS) $(RTL_FLAGS) $(OS_COMPILE_CFLAGS)
|
||||
COMPILE_CXXFLAGS = $(DEFINES) $(INCLUDES) $(XCFLAGS) $(PROFILER_CFLAGS) $(DSO_CFLAGS) $(DSO_PIC_CFLAGS) $(CXXFLAGS) $(RTL_FLAGS) $(OS_COMPILE_CXXFLAGS)
|
||||
|
||||
#
|
||||
# Name of the binary code directories
|
||||
#
|
||||
# Override defaults
|
||||
|
||||
# We need to know where to find the libraries we
|
||||
# put on the link line for binaries, and should
|
||||
# we link statically or dynamic? Assuming dynamic for now.
|
||||
|
||||
ifneq ($(MOZ_OS2_TOOLS),VACPP)
|
||||
ifneq (WINNT_,$(OS_ARCH)_$(GNU_CC))
|
||||
LIBS_DIR = -L$(DIST)/bin -L$(DIST)/lib
|
||||
endif
|
||||
endif
|
||||
|
||||
# Default location of include files
|
||||
IDL_DIR = $(DIST)/idl
|
||||
ifdef MODULE
|
||||
PUBLIC = $(DIST)/include/$(MODULE)
|
||||
else
|
||||
PUBLIC = $(DIST)/include
|
||||
endif
|
||||
|
||||
# Location of packaging manifest files
|
||||
ifdef MODULE
|
||||
PACKAGE_DIR = $(DIST)/packages/$(MODULE)
|
||||
else
|
||||
PACKAGE_DIR = $(DIST)/packages
|
||||
endif
|
||||
|
||||
SDK_PUBLIC = $(DIST)/sdk/$(MODULE)/include
|
||||
SDK_IDL_DIR = $(DIST)/sdk/$(MODULE)/idl
|
||||
SDK_BIN_DIR = $(DIST)/sdk/$(MODULE)/bin
|
||||
|
||||
DEPENDENCIES = .md
|
||||
|
||||
MOZ_COMPONENT_LIBS=$(MOZ_COMPONENT_XPCOM_LIBS) $(MOZ_COMPONENT_NSPR_LIBS)
|
||||
|
||||
ifdef GC_LEAK_DETECTOR
|
||||
MOZ_COMPONENT_XPCOM_LIBS += -lboehm
|
||||
XPCOM_LIBS += -lboehm
|
||||
endif
|
||||
|
||||
ifdef MOZ_DEMANGLE_SYMBOLS
|
||||
MOZ_COMPONENT_XPCOM_LIBS += -liberty
|
||||
XPCOM_LIBS += -liberty
|
||||
endif
|
||||
|
||||
ifeq (xpconnect, $(findstring xpconnect, $(BUILD_MODULES)))
|
||||
DEFINES += -DXPCONNECT_STANDALONE
|
||||
endif
|
||||
|
||||
ifeq ($(OS_ARCH),OS2)
|
||||
ELF_DYNSTR_GC = echo
|
||||
else
|
||||
ELF_DYNSTR_GC = :
|
||||
endif
|
||||
|
||||
ifndef CROSS_COMPILE
|
||||
ifdef USE_ELF_DYNSTR_GC
|
||||
ifdef MOZ_COMPONENTS_VERSION_SCRIPT_LDFLAGS
|
||||
ELF_DYNSTR_GC = $(DIST)/bin/elf-dynstr-gc
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(OS_ARCH),Darwin)
|
||||
ifdef USE_PREBINDING
|
||||
export LD_PREBIND=1
|
||||
export LD_SEG_ADDR_TABLE=$(shell cd $(topsrcdir); pwd)/config/prebind-address-table
|
||||
endif
|
||||
endif
|
||||
|
||||
ifdef MOZ_NATIVE_MAKEDEPEND
|
||||
MKDEPEND_DIR =
|
||||
MKDEPEND = $(CYGWIN_WRAPPER) $(MOZ_NATIVE_MAKEDEPEND)
|
||||
else
|
||||
MKDEPEND_DIR = $(CONFIG_TOOLS)/mkdepend
|
||||
MKDEPEND = $(CYGWIN_WRAPPER) $(MKDEPEND_DIR)/mkdepend$(BIN_SUFFIX)
|
||||
endif
|
||||
|
||||
# Set link flags according to whether we want a console.
|
||||
ifdef MOZ_WINCONSOLE
|
||||
ifeq ($(MOZ_WINCONSOLE),1)
|
||||
ifeq ($(MOZ_OS2_TOOLS),EMX)
|
||||
BIN_FLAGS += -Zlinker /PM:VIO
|
||||
endif
|
||||
ifeq ($(OS_ARCH),WINNT)
|
||||
WIN32_EXE_LDFLAGS += /SUBSYSTEM:CONSOLE
|
||||
endif
|
||||
else # MOZ_WINCONSOLE
|
||||
ifeq ($(MOZ_OS2_TOOLS),VACPP)
|
||||
LDFLAGS += /PM:PM
|
||||
endif
|
||||
ifeq ($(MOZ_OS2_TOOLS),EMX)
|
||||
BIN_FLAGS += -Zlinker /PM:PM
|
||||
endif
|
||||
ifeq ($(OS_ARCH),WINNT)
|
||||
WIN32_EXE_LDFLAGS += /SUBSYSTEM:WINDOWS
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
# Flags needed to link against the component library
|
||||
ifdef MOZ_COMPONENTLIB
|
||||
MOZ_COMPONENTLIB_EXTRA_DSO_LIBS = mozcomps xpcom_compat
|
||||
|
||||
# Tell the linker where NSS is, if we're building crypto
|
||||
ifeq ($(OS_ARCH),Darwin)
|
||||
ifeq (,$(findstring crypto,$(MOZ_META_COMPONENTS)))
|
||||
MOZ_COMPONENTLIB_EXTRA_LIBS = $(foreach library, $(patsubst -l%, $(LIB_PREFIX)%$(DLL_SUFFIX), $(filter -l%, $(NSS_LIBS))), -dylib_file @executable_path/$(library):$(DIST)/bin/$(library))
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
#
|
||||
# Include any personal overrides the user might think are needed.
|
||||
#
|
||||
-include $(MY_CONFIG)
|
||||
|
||||
######################################################################
|
||||
# Now test variables that might have been set or overridden by $(MY_CONFIG).
|
||||
|
||||
DEFINES += -DOSTYPE=\"$(OS_CONFIG)\"
|
||||
DEFINES += -DOSARCH=\"$(OS_ARCH)\"
|
||||
|
||||
# For profiling
|
||||
ifdef ENABLE_EAZEL_PROFILER
|
||||
ifndef INTERNAL_TOOLS
|
||||
ifneq ($(LIBRARY_NAME), xpt)
|
||||
ifneq (, $(findstring $(shell $(topsrcdir)/build/unix/print-depth-path.sh | awk -F/ '{ print $$2; }'), $(MOZ_PROFILE_MODULES)))
|
||||
PROFILER_CFLAGS = $(EAZEL_PROFILER_CFLAGS) -DENABLE_EAZEL_PROFILER
|
||||
PROFILER_LIBS = $(EAZEL_PROFILER_LIBS)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
######################################################################
|
||||
|
||||
GARBAGE += $(DEPENDENCIES) $(MKDEPENDENCIES) $(MKDEPENDENCIES).bak core $(wildcard core.[0-9]*) $(wildcard *.err) $(wildcard *.pure) $(wildcard *_pure_*.o) Templates.DB
|
||||
|
||||
ifeq ($(OS_ARCH),Darwin)
|
||||
ifndef NSDISTMODE
|
||||
NSDISTMODE=absolute_symlink
|
||||
endif
|
||||
PWD := $(shell pwd)
|
||||
endif
|
||||
|
||||
ifeq (,$(filter-out WINNT OS2, $(OS_ARCH)))
|
||||
ifeq ($(OS_ARCH),WINNT)
|
||||
NSINSTALL = $(CYGWIN_WRAPPER) $(MOZ_TOOLS_DIR)/bin/nsinstall
|
||||
else
|
||||
NSINSTALL = $(MOZ_TOOLS_DIR)/nsinstall
|
||||
endif
|
||||
INSTALL = $(NSINSTALL)
|
||||
else
|
||||
NSINSTALL = $(CONFIG_TOOLS)/nsinstall
|
||||
|
||||
ifeq ($(NSDISTMODE),copy)
|
||||
# copy files, but preserve source mtime
|
||||
INSTALL = $(NSINSTALL) -t
|
||||
else
|
||||
ifeq ($(NSDISTMODE),absolute_symlink)
|
||||
# install using absolute symbolic links
|
||||
ifeq ($(OS_ARCH),Darwin)
|
||||
INSTALL = $(NSINSTALL) -L $(PWD)
|
||||
else
|
||||
INSTALL = $(NSINSTALL) -L `$(NFSPWD)`
|
||||
endif
|
||||
else
|
||||
# install using relative symbolic links
|
||||
INSTALL = $(NSINSTALL) -R
|
||||
endif
|
||||
endif
|
||||
endif # WINNT
|
||||
|
||||
# Use nsinstall in copy mode to install files on the system
|
||||
SYSINSTALL = $(NSINSTALL) -t
|
||||
|
||||
ifeq ($(OS_ARCH),WINNT)
|
||||
ifneq (,$(CYGDRIVE_MOUNT))
|
||||
export CYGDRIVE_MOUNT
|
||||
endif
|
||||
endif
|
||||
File diff suppressed because it is too large
Load Diff
16297
mozilla/configure
vendored
16297
mozilla/configure
vendored
File diff suppressed because it is too large
Load Diff
5495
mozilla/configure.in
5495
mozilla/configure.in
File diff suppressed because it is too large
Load Diff
@@ -1,91 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = content
|
||||
XPIDL_MODULE = content_base
|
||||
GRE_MODULE = 1
|
||||
|
||||
EXPORTS = \
|
||||
nsIContent.h \
|
||||
nsIAnonymousContent.h \
|
||||
nsIAttribute.h \
|
||||
nsIContentIterator.h \
|
||||
nsContentErrors.h \
|
||||
nsContentPolicyUtils.h \
|
||||
nsContentUtils.h \
|
||||
nsIDocument.h \
|
||||
nsIDocumentEncoder.h \
|
||||
nsIDocumentObserver.h \
|
||||
nsIDocumentViewer.h \
|
||||
nsIElementFactory.h \
|
||||
nsINameSpace.h \
|
||||
nsINameSpaceManager.h \
|
||||
nsINodeInfo.h \
|
||||
nsIRangeUtils.h \
|
||||
nsIStyledContent.h \
|
||||
nsIStyleRule.h \
|
||||
nsIStyleRuleSupplier.h \
|
||||
nsIStyleSheet.h \
|
||||
nsIStyleSheetLinkingElement.h \
|
||||
nsIStyleRuleProcessor.h \
|
||||
nsITextContent.h \
|
||||
nsIPrivateDOMImplementation.h \
|
||||
nsIContentSerializer.h \
|
||||
nsIHTMLToTextSink.h \
|
||||
nsIXPathEvaluatorInternal.h \
|
||||
mozISanitizingSerializer.h \
|
||||
nsIContentList.h \
|
||||
nsIFrameLoader.h \
|
||||
nsContentCID.h \
|
||||
$(NULL)
|
||||
|
||||
SDK_XPIDLSRCS = \
|
||||
nsISelection.idl \
|
||||
$(NULL)
|
||||
|
||||
XPIDLSRCS = \
|
||||
nsIChromeRegistry.idl \
|
||||
nsIContentPolicy.idl \
|
||||
nsISelectionController.idl \
|
||||
nsISelectionDisplay.idl \
|
||||
nsISelectionListener.idl \
|
||||
nsISelectionPrivate.idl \
|
||||
nsIScriptLoader.idl \
|
||||
nsIScriptLoaderObserver.idl \
|
||||
nsISyncLoadDOMService.idl \
|
||||
nsIPrintProgress.idl \
|
||||
nsIPrintProgressParams.idl \
|
||||
nsIPrintStatusFeedback.idl \
|
||||
nsIDragDropHandler.idl \
|
||||
nsIScriptEventHandler.idl \
|
||||
nsIScriptEventManager.idl \
|
||||
nsIImageLoadingContent.idl \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
@@ -1,171 +0,0 @@
|
||||
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
||||
*
|
||||
* The contents of this file are subject to the Mozilla Public
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
* the License at http://www.mozilla.org/MPL/
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
* implied. See the License for the specific language governing
|
||||
* rights and limitations under the License.
|
||||
*
|
||||
* The Original Code is the Mozilla browser.
|
||||
*
|
||||
* The Initial Developer of the Original Code is Netscape
|
||||
* Communications Corporation. Portions created by Netscape are
|
||||
* Copyright (C) 1999 Netscape Communications Corporation. All
|
||||
* Rights Reserved.
|
||||
*
|
||||
* Original Author: David W. Hyatt (hyatt@netscape.com)
|
||||
*
|
||||
* Contributor(s): pav
|
||||
* Blake Ross (blaker@netscape.com)
|
||||
*/
|
||||
|
||||
#include "nsISupports.idl"
|
||||
#include "nsIURL.idl"
|
||||
#include "nsISimpleEnumerator.idl"
|
||||
#include "nsISupportsArray.idl"
|
||||
interface nsIDocShell;
|
||||
|
||||
[scriptable, uuid(D8C7D8A1-E84C-11d2-BF87-00105A1B0627)]
|
||||
interface nsIChromeRegistry : nsISupports
|
||||
{
|
||||
const PRInt32 NONE = 0;
|
||||
const PRInt32 PARTIAL = 1;
|
||||
const PRInt32 FULL = 2;
|
||||
|
||||
/**
|
||||
* Convert a chrome URL into a canonical representation; specifically,
|
||||
*
|
||||
* chrome://package/provider/file
|
||||
*
|
||||
* Chrome URLs are allowed to be specified in "shorthand", leaving the
|
||||
* "file" portion off. In that case, the URL is expanded to:
|
||||
*
|
||||
* chrome://package/provider/package.ext
|
||||
*
|
||||
* where "ext" is:
|
||||
*
|
||||
* "xul" for a "content" package,
|
||||
* "css" for a "skin" package, and
|
||||
* "dtd" for a "locale" package.
|
||||
*
|
||||
* @param aChromeURL the URL that is to be canonified.
|
||||
*/
|
||||
void canonify(in nsIURI aChromeURL);
|
||||
|
||||
/**
|
||||
* Convert a chrome URL to a "real" using the information in the registry.
|
||||
* Does not modify aChromeURL.
|
||||
*
|
||||
* @param aChromeURL the URL that is to be converted.
|
||||
*/
|
||||
AUTF8String convertChromeURL(in nsIURI aChromeURL);
|
||||
|
||||
/**
|
||||
* get the style sheets for a specific chrome URL
|
||||
*/
|
||||
nsISupportsArray getStyleSheets(in nsIURI aChromeURL);
|
||||
|
||||
/**
|
||||
* get the user-specified style sheets
|
||||
*/
|
||||
nsISupportsArray getUserSheets(in boolean useChromeSheets);
|
||||
|
||||
/**
|
||||
* get the style sheets required for a specific running docshell
|
||||
*/
|
||||
nsISupportsArray getAgentSheets(in nsIDocShell docShell);
|
||||
|
||||
/**
|
||||
* refresh the chrome list at runtime, looking for new packages/etc
|
||||
*/
|
||||
void checkForNewChrome();
|
||||
};
|
||||
|
||||
[scriptable, uuid(a9f92623-5982-4afe-9d90-619cf5b0c39f)]
|
||||
interface nsIXULChromeRegistry : nsIChromeRegistry {
|
||||
|
||||
/* Applies a skin or locale to all possible packages */
|
||||
void selectSkin(in ACString skinName, in boolean useProfile);
|
||||
void selectLocale(in ACString localeName, in boolean useProfile);
|
||||
void deselectSkin(in ACString skinName, in boolean useProfile);
|
||||
void deselectLocale(in ACString localeName, in boolean useProfile);
|
||||
PRInt32 isSkinSelected(in ACString skinName, in boolean useProfile);
|
||||
PRInt32 isLocaleSelected(in ACString localeName, in boolean useProfile);
|
||||
|
||||
// Special additional APIs for locales only.
|
||||
void selectLocaleForProfile(in ACString localeName, in wstring profilePath);
|
||||
|
||||
/* Should be called when locales change to reload all chrome (including XUL). */
|
||||
void reloadChrome();
|
||||
|
||||
/* runtimeProvider == true: don't assert the runtime change */
|
||||
void setRuntimeProvider(in boolean runtimeProvider);
|
||||
|
||||
boolean checkThemeVersion(in ACString skinName);
|
||||
boolean checkLocaleVersion(in ACString localeName);
|
||||
|
||||
/* Apply skin/locale to a specific package */
|
||||
void selectSkinForPackage(in ACString skinName,
|
||||
in wstring packageName,
|
||||
in boolean useProfile);
|
||||
|
||||
void selectLocaleForPackage(in ACString localeName,
|
||||
in wstring packageName,
|
||||
in boolean useProfile);
|
||||
|
||||
void deselectSkinForPackage(in ACString skinName,
|
||||
in wstring packageName,
|
||||
in boolean useProfile);
|
||||
|
||||
void deselectLocaleForPackage(in ACString localeName,
|
||||
in wstring packageName,
|
||||
in boolean useProfile);
|
||||
|
||||
boolean isSkinSelectedForPackage(in ACString skinName,
|
||||
in wstring packageName,
|
||||
in boolean useProfile);
|
||||
|
||||
boolean isLocaleSelectedForPackage(in ACString localeName,
|
||||
in wstring packageName,
|
||||
in boolean useProfile);
|
||||
|
||||
ACString getSelectedLocale(in ACString packageName);
|
||||
ACString getSelectedSkin(in ACString packageName);
|
||||
|
||||
nsISimpleEnumerator getOverlays(in nsIURI aChromeURL);
|
||||
|
||||
/* Should be called when skins change. Reloads only stylesheets. */
|
||||
void refreshSkins();
|
||||
|
||||
boolean allowScriptsForSkin(in nsIURI url);
|
||||
|
||||
/* Whether or not an addon package can dynamically overlay another package.
|
||||
You can use these APIs to effectively disable a chrome add-on without
|
||||
uninstalling it. */
|
||||
void setAllowOverlaysForPackage(in wstring packageName, in boolean allowOverlays);
|
||||
boolean overlaysAllowedForPackage(in wstring packageName);
|
||||
boolean isOverlayAllowed(in nsIURI aChromeURL);
|
||||
|
||||
/* Installation APIs */
|
||||
void installSkin(in string baseURL,
|
||||
in boolean useProfile,
|
||||
in boolean allowScripts);
|
||||
|
||||
void uninstallSkin(in ACString skinName, in boolean useProfile);
|
||||
|
||||
void installLocale(in string baseURL, in boolean useProfile);
|
||||
void uninstallLocale(in ACString localeName, in boolean useProfile);
|
||||
|
||||
void installPackage(in string baseURL, in boolean useProfile);
|
||||
void uninstallPackage(in wstring packageName, in boolean useProfile);
|
||||
};
|
||||
|
||||
%{ C++
|
||||
|
||||
#define NS_CHROMEREGISTRY_CONTRACTID \
|
||||
"@mozilla.org/chrome/chrome-registry;1"
|
||||
%}
|
||||
@@ -1,55 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
srcdir = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = mork
|
||||
LIBRARY_NAME = mork
|
||||
EXPORT_LIBRARY = 1
|
||||
IS_COMPONENT = 1
|
||||
MODULE_NAME = nsMorkModule
|
||||
|
||||
PACKAGE_FILE = mork.pkg
|
||||
|
||||
REQUIRES = xpcom \
|
||||
$(NULL)
|
||||
|
||||
CPPSRCS = nsMorkFactory.cpp
|
||||
|
||||
EXPORTS = \
|
||||
nsMorkCID.h \
|
||||
nsIMdbFactoryFactory.h \
|
||||
$(NULL)
|
||||
|
||||
SHARED_LIBRARY_LIBS = $(DIST)/lib/$(LIB_PREFIX)msgmork_s.$(LIB_SUFFIX)
|
||||
|
||||
EXTRA_DSO_LDOPTS = \
|
||||
$(LIBS_DIR) \
|
||||
$(MOZ_COMPONENT_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
[xpfe-browser browser]
|
||||
#if SHARED_LIBRARY
|
||||
dist/bin/components/@SHARED_LIBRARY@
|
||||
#else
|
||||
!staticcomp @LIBRARY@ @MODULE_NAME@
|
||||
#endif
|
||||
@@ -1,46 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
DEPTH = ../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = dbm
|
||||
|
||||
PACKAGE_FILE = dbmtest.pkg
|
||||
|
||||
PROGRAM = lots$(BIN_SUFFIX)
|
||||
|
||||
CSRCS = lots.c
|
||||
|
||||
ifeq ($(OS_ARCH),WINNT)
|
||||
EXTRA_DSO_LIBS = dbm$(MOZ_BITS)
|
||||
else
|
||||
EXTRA_DSO_LIBS = mozdbm_s
|
||||
endif
|
||||
|
||||
LIBS = $(EXTRA_DSO_LIBS)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
[gecko-tests]
|
||||
dist/bin/lots@BINS@
|
||||
@@ -1,90 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is the mozilla.org LDAP XPCOM SDK.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 2000 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s): Dan Mosedale <dmose@mozilla.org>
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the
|
||||
# terms of the GNU General Public License Version 2 or later (the
|
||||
# "GPL"), in which case the provisions of the GPL are applicable
|
||||
# instead of those above. If you wish to allow use of your
|
||||
# version of this file only under the terms of the GPL and not to
|
||||
# allow others to use your version of this file under the MPL,
|
||||
# indicate your decision by deleting the provisions above and
|
||||
# replace them with the notice and other provisions required by
|
||||
# the GPL. If you do not delete the provisions above, a recipient
|
||||
# may use your version of this file under either the MPL or the
|
||||
# GPL.
|
||||
#
|
||||
|
||||
DEPTH = ../../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = mozldap
|
||||
LIBRARY_NAME = mozldap
|
||||
SHORT_LIBNAME = mozldap
|
||||
EXPORT_LIBRARY = 1
|
||||
IS_COMPONENT = 1
|
||||
MODULE_NAME = nsLDAPProtocolModule
|
||||
|
||||
PACKAGE_FILE = mozldap.pkg
|
||||
|
||||
REQUIRES = xpcom \
|
||||
string \
|
||||
necko \
|
||||
$(NULL)
|
||||
|
||||
|
||||
CPPSRCS = \
|
||||
nsLDAPProtocolModule.cpp \
|
||||
nsLDAPMessage.cpp \
|
||||
nsLDAPConnection.cpp \
|
||||
nsLDAPOperation.cpp \
|
||||
nsLDAPURL.cpp \
|
||||
nsLDAPServer.cpp \
|
||||
nsLDAPService.cpp \
|
||||
nsLDAPBERValue.cpp \
|
||||
$(NULL)
|
||||
|
||||
ifdef MOZ_LDAP_XPCOM_EXPERIMENTAL
|
||||
DEFINES += -DMOZ_LDAP_XPCOM_EXPERIMENTAL
|
||||
|
||||
CPPSRCS += \
|
||||
nsLDAPProtocolHandler.cpp \
|
||||
nsLDAPChannel.cpp \
|
||||
$(NULL)
|
||||
|
||||
REQUIRES += mimetype
|
||||
endif
|
||||
|
||||
ifdef MOZ_PSM
|
||||
DEFINES += -DMOZ_PSM
|
||||
CPPSRCS += \
|
||||
nsLDAPSecurityGlue.cpp \
|
||||
$(NULL)
|
||||
endif
|
||||
|
||||
EXTRA_DSO_LDOPTS += $(MOZ_COMPONENT_LIBS) $(LDAP_LIBS)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
LOCAL_INCLUDES = $(LDAP_CFLAGS)
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
# xpfe-browser instead of xpfe-mailnews for autoconfig
|
||||
|
||||
[xpfe-browser mail]
|
||||
#if OS_ARCH==WINNT
|
||||
dist/bin/nsldap32v50.dll
|
||||
dist/bin/nsldappr32v50.dll
|
||||
#else
|
||||
dist/bin/@DLLP@ldap50@DLLS@
|
||||
dist/bin/@DLLP@prldap50@DLLS@
|
||||
#endif
|
||||
|
||||
#if SHARED_LIBRARY
|
||||
dist/bin/components/@SHARED_LIBRARY@
|
||||
#else
|
||||
!staticcomp @LIBRARY@ @MODULE_NAME@
|
||||
#endif
|
||||
!xpt dist/bin/components/mozldap.xpt
|
||||
|
||||
[unpackaged-files]
|
||||
!optional dist/bin/dirver@BINS@
|
||||
|
||||
@@ -1,114 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is the Mozilla browser.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications, Inc. Portions created by Netscape are
|
||||
# Copyright (C) 1999, Mozilla. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# Stuart Parmenter <pavlov@netscape.com>
|
||||
|
||||
DEPTH = ../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
MODULE = docshell
|
||||
IS_COMPONENT = 1
|
||||
MODULE_NAME = docshell_provider
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
LIBRARY_NAME = docshell
|
||||
EXPORT_LIBRARY = 1
|
||||
GRE_MODULE = 1
|
||||
|
||||
PACKAGE_FILE = docshell.pkg
|
||||
|
||||
REQUIRES = xpcom \
|
||||
string \
|
||||
dom \
|
||||
js \
|
||||
shistory \
|
||||
necko \
|
||||
gfx \
|
||||
layout \
|
||||
webshell \
|
||||
widget \
|
||||
pref \
|
||||
view \
|
||||
intl \
|
||||
htmlparser \
|
||||
chardet \
|
||||
find \
|
||||
composer \
|
||||
editor \
|
||||
commandhandler \
|
||||
history \
|
||||
uriloader \
|
||||
exthandler \
|
||||
helperAppDlg \
|
||||
mimetype \
|
||||
rdf \
|
||||
prefetch \
|
||||
$(NULL)
|
||||
|
||||
ifeq ($(OS_ARCH),WINNT)
|
||||
EXTRA_DSO_LIBS = gkgfx
|
||||
endif
|
||||
|
||||
CPPSRCS = \
|
||||
nsDocShellModule.cpp \
|
||||
$(NULL)
|
||||
|
||||
SHARED_LIBRARY_LIBS= \
|
||||
$(DIST)/lib/$(LIB_PREFIX)basedocshell_s.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)uriloaderbase_s.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)exthandler_s.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)prefetch_s.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)shistory_s.$(LIB_SUFFIX) \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DSO_LDOPTS= \
|
||||
$(LIBS_DIR) \
|
||||
$(EXTRA_DSO_LIBS) \
|
||||
$(MOZ_JS_LIBS) \
|
||||
$(MOZ_UNICHARUTIL_LIBS) \
|
||||
$(MOZ_COMPONENT_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
LOCAL_INCLUDES = \
|
||||
-I$(srcdir) \
|
||||
-I$(srcdir)/../base \
|
||||
-I$(topsrcdir)/uriloader/base \
|
||||
-I$(topsrcdir)/uriloader/prefetch \
|
||||
-I$(topsrcdir)/uriloader/exthandler \
|
||||
-I$(topsrcdir)/xpfe/components/shistory/src \
|
||||
$(NULL)
|
||||
|
||||
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
||||
LOCAL_INCLUDES += -I$(topsrcdir)/uriloader/exthandler/mac
|
||||
EXTRA_DSO_LDOPTS += \
|
||||
$(TK_LIBS) \
|
||||
$(NULL)
|
||||
endif
|
||||
|
||||
ifeq ($(OS_ARCH),WINNT)
|
||||
OS_LIBS += $(call EXPAND_LIBNAME, shell32)
|
||||
endif
|
||||
|
||||
ifeq ($(MOZ_WIDGET_TOOLKIT),gtk2)
|
||||
EXTRA_DSO_LDOPTS += $(TK_LIBS)
|
||||
endif
|
||||
@@ -1,18 +0,0 @@
|
||||
[gecko]
|
||||
#if SHARED_LIBRARY
|
||||
dist/bin/components/@SHARED_LIBRARY@
|
||||
#else
|
||||
!staticcomp @LIBRARY@ @MODULE_NAME@
|
||||
#endif
|
||||
|
||||
#if OS_ARCH==WINNT
|
||||
# WTF?
|
||||
!xpt dist/bin/components/docshell_base.xpt
|
||||
#else
|
||||
!xpt dist/bin/components/docshell.xpt
|
||||
#endif
|
||||
|
||||
!xpt dist/bin/components/uriloader.xpt
|
||||
!xpt dist/bin/components/exthandler.xpt
|
||||
!xpt dist/bin/components/shistory.xpt
|
||||
!xpt dist/bin/components/prefetch.xpt
|
||||
@@ -1,87 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = dom
|
||||
LIBRARY_NAME = jsdom
|
||||
EXPORT_LIBRARY = 1
|
||||
|
||||
PACKAGE_FILE = dom.pkg
|
||||
|
||||
REQUIRES = xpcom \
|
||||
string \
|
||||
js \
|
||||
xpconnect \
|
||||
widget \
|
||||
gfx \
|
||||
layout \
|
||||
content \
|
||||
caps \
|
||||
webbrwsr \
|
||||
commandhandler \
|
||||
xuldoc \
|
||||
docshell \
|
||||
plugin \
|
||||
necko \
|
||||
jsurl \
|
||||
uconv \
|
||||
$(NULL)
|
||||
|
||||
IS_COMPONENT=1
|
||||
MODULE_NAME = DOM_components
|
||||
|
||||
ifeq ($(OS_ARCH),WINNT)
|
||||
EXTRA_DSO_LIBS = gkgfx
|
||||
endif
|
||||
|
||||
ifdef NS_TRACE_MALLOC
|
||||
EXTRA_DSO_LIBS += tracemalloc
|
||||
endif
|
||||
|
||||
CPPSRCS = \
|
||||
nsDOMFactory.cpp \
|
||||
nsScriptNameSpaceManager.cpp \
|
||||
$(NULL)
|
||||
|
||||
SHARED_LIBRARY_LIBS = \
|
||||
$(DIST)/lib/$(LIB_PREFIX)jsdombase_s.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)jsdomevents_s.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)jsurl_s.$(LIB_SUFFIX) \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DSO_LDOPTS = \
|
||||
$(LIBS_DIR) \
|
||||
$(EXTRA_DSO_LIBS) \
|
||||
$(MOZ_UNICHARUTIL_LIBS) \
|
||||
$(MOZ_COMPONENT_LIBS) \
|
||||
$(MOZ_JS_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
INCLUDES += -I$(srcdir)/../base
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
[gecko]
|
||||
#if SHARED_LIBRARY
|
||||
dist/bin/components/@SHARED_LIBRARY@
|
||||
#else
|
||||
!staticcomp @LIBRARY@ @MODULE_NAME@
|
||||
#endif
|
||||
!xpt dist/bin/components/dom.xpt
|
||||
!xpt dist/bin/components/dom_base.xpt
|
||||
!xpt dist/bin/components/dom_core.xpt
|
||||
!xpt dist/bin/components/dom_css.xpt
|
||||
!xpt dist/bin/components/dom_events.xpt
|
||||
!xpt dist/bin/components/dom_html.xpt
|
||||
!xpt dist/bin/components/dom_range.xpt
|
||||
!xpt dist/bin/components/dom_stylesheets.xpt
|
||||
!xpt dist/bin/components/dom_traversal.xpt
|
||||
!xpt dist/bin/components/dom_views.xpt
|
||||
!xpt dist/bin/components/dom_xbl.xpt
|
||||
!xpt dist/bin/components/dom_xul.xpt
|
||||
!xpt dist/bin/components/dom_xpath.xpt
|
||||
!xpt dist/bin/components/jsurl.xpt
|
||||
@@ -1,107 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = editor
|
||||
LIBRARY_NAME = composer
|
||||
EXPORT_LIBRARY = 1
|
||||
IS_COMPONENT = 1
|
||||
MODULE_NAME = nsComposerModule
|
||||
|
||||
PACKAGE_FILE = composer.pkg
|
||||
|
||||
REQUIRES = xpcom \
|
||||
string \
|
||||
dom \
|
||||
js \
|
||||
layout \
|
||||
content \
|
||||
uriloader \
|
||||
txmgr \
|
||||
necko \
|
||||
pref \
|
||||
webshell \
|
||||
docshell \
|
||||
gfx \
|
||||
widget \
|
||||
xuldoc \
|
||||
txtsvc \
|
||||
imglib2 \
|
||||
commandhandler \
|
||||
composer \
|
||||
appshell \
|
||||
$(NULL)
|
||||
|
||||
CPPSRCS = \
|
||||
nsComposeTxtSrvFilter.cpp \
|
||||
nsComposerController.cpp \
|
||||
nsComposerCommands.cpp \
|
||||
nsComposerDocumentCommands.cpp \
|
||||
nsComposerRegistration.cpp \
|
||||
nsEditingSession.cpp \
|
||||
nsComposerCommandsUpdater.cpp \
|
||||
nsEditorService.cpp \
|
||||
nsEditorSpellCheck.cpp \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
INCLUDES += -I../../libeditor/base/src
|
||||
|
||||
EXTRA_DSO_LDOPTS += \
|
||||
$(MOZ_UNICHARUTIL_LIBS) \
|
||||
$(MOZ_COMPONENT_LIBS)
|
||||
|
||||
_FILES = \
|
||||
$(srcdir)/res/EditorOverride.css \
|
||||
$(srcdir)/res/grabber.gif \
|
||||
$(srcdir)/res/table-add-column-after-active.gif \
|
||||
$(srcdir)/res/table-add-column-after-hover.gif \
|
||||
$(srcdir)/res/table-add-column-after.gif \
|
||||
$(srcdir)/res/table-add-column-before-active.gif \
|
||||
$(srcdir)/res/table-add-column-before-hover.gif \
|
||||
$(srcdir)/res/table-add-column-before.gif \
|
||||
$(srcdir)/res/table-add-row-after-active.gif \
|
||||
$(srcdir)/res/table-add-row-after-hover.gif \
|
||||
$(srcdir)/res/table-add-row-after.gif \
|
||||
$(srcdir)/res/table-add-row-before-active.gif \
|
||||
$(srcdir)/res/table-add-row-before-hover.gif \
|
||||
$(srcdir)/res/table-add-row-before.gif \
|
||||
$(srcdir)/res/table-remove-column-active.gif \
|
||||
$(srcdir)/res/table-remove-column-hover.gif \
|
||||
$(srcdir)/res/table-remove-column.gif \
|
||||
$(srcdir)/res/table-remove-row-active.gif \
|
||||
$(srcdir)/res/table-remove-row-hover.gif \
|
||||
$(srcdir)/res/table-remove-row.gif \
|
||||
$(NULL)
|
||||
|
||||
libs::
|
||||
$(INSTALL) $(_FILES) $(DIST)/bin/res
|
||||
|
||||
install::
|
||||
$(SYSINSTALL) $(IFLAGS1) $(_FILES) $(DESTDIR)$(mozappdir)/res
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
[xpfe-browser]
|
||||
#if SHARED_LIBRARY
|
||||
dist/bin/components/@SHARED_LIBRARY@
|
||||
#else
|
||||
!staticcomp @LIBRARY@ @MODULE_NAME@
|
||||
#endif
|
||||
!xpt dist/bin/components/composer.xpt
|
||||
|
||||
dist/bin/res/EditorOverride.css
|
||||
dist/bin/res/grabber.gif
|
||||
dist/bin/res/table-add-column-after-active.gif
|
||||
dist/bin/res/table-add-column-after-hover.gif
|
||||
dist/bin/res/table-add-column-after.gif
|
||||
dist/bin/res/table-add-column-before-active.gif
|
||||
dist/bin/res/table-add-column-before-hover.gif
|
||||
dist/bin/res/table-add-column-before.gif
|
||||
dist/bin/res/table-add-row-after-active.gif
|
||||
dist/bin/res/table-add-row-after-hover.gif
|
||||
dist/bin/res/table-add-row-after.gif
|
||||
dist/bin/res/table-add-row-before-active.gif
|
||||
dist/bin/res/table-add-row-before-hover.gif
|
||||
dist/bin/res/table-add-row-before.gif
|
||||
dist/bin/res/table-remove-column-active.gif
|
||||
dist/bin/res/table-remove-column-hover.gif
|
||||
dist/bin/res/table-remove-column.gif
|
||||
dist/bin/res/table-remove-row-active.gif
|
||||
dist/bin/res/table-remove-row-hover.gif
|
||||
dist/bin/res/table-remove-row.gif
|
||||
@@ -1,103 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
# BUILD_DATE = gbdate.h
|
||||
|
||||
MODULE = editor
|
||||
LIBRARY_NAME = editor
|
||||
EXPORT_LIBRARY = 1
|
||||
IS_COMPONENT = 1
|
||||
MODULE_NAME = nsEditorModule
|
||||
GRE_MODULE = 1
|
||||
|
||||
PACKAGE_FILE = editor.pkg
|
||||
|
||||
EXTRA_DSO_LIBS = gkgfx
|
||||
|
||||
EXTRA_DSO_LDOPTS = \
|
||||
$(LIBS_DIR) \
|
||||
$(EXTRA_DSO_LIBS) \
|
||||
$(MOZ_UNICHARUTIL_LIBS) \
|
||||
$(MOZ_COMPONENT_LIBS) \
|
||||
$(MOZ_JS_LIBS) \
|
||||
$(NULL)
|
||||
REQUIRES = xpcom \
|
||||
string \
|
||||
dom \
|
||||
layout \
|
||||
content \
|
||||
txmgr \
|
||||
htmlparser \
|
||||
necko \
|
||||
xuldoc \
|
||||
commandhandler \
|
||||
gfx \
|
||||
widget \
|
||||
txtsvc \
|
||||
$(NULL)
|
||||
|
||||
CPPSRCS = nsEditorRegistration.cpp
|
||||
|
||||
ifdef MOZ_PLAINTEXT_EDITOR_ONLY
|
||||
ifeq ($(OS_ARCH),WINNT)
|
||||
LIBRARY_NAME = texteditor
|
||||
endif
|
||||
SHARED_LIBRARY_LIBS = $(NULL)
|
||||
DEFINES += -DMOZILLA_PLAINTEXT_EDITOR_ONLY
|
||||
|
||||
else
|
||||
# We're building both plain and html editing
|
||||
SHARED_LIBRARY_LIBS = \
|
||||
../html/$(LIB_PREFIX)htmleditor_s.$(LIB_SUFFIX) \
|
||||
../../txtsvc/src/$(LIB_PREFIX)txtsvc_s.$(LIB_SUFFIX) \
|
||||
$(NULL)
|
||||
# ../composer/src/$(LIB_PREFIX)composer_s.$(LIB_SUFFIX)
|
||||
endif
|
||||
|
||||
#ifndef MKSHLIB_FORCE_ALL
|
||||
#CPPSRCS += dlldeps.cpp
|
||||
#endif
|
||||
|
||||
# These libraries always get built:
|
||||
SHARED_LIBRARY_LIBS += \
|
||||
../text/$(LIB_PREFIX)texteditor_s.$(LIB_SUFFIX) \
|
||||
../base/$(LIB_PREFIX)editorbase_s.$(LIB_SUFFIX) \
|
||||
$(NULL)
|
||||
|
||||
ifdef ENABLE_EDITOR_API_LOG
|
||||
DEFINES += -DENABLE_EDITOR_API_LOG
|
||||
endif
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
INCLUDES += -I$(topsrcdir)/editor/libeditor/base \
|
||||
-I$(topsrcdir)/editor/libeditor/text \
|
||||
-I$(topsrcdir)/editor/libeditor/html \
|
||||
-I$(topsrcdir)/editor/txtsvc/src \
|
||||
-I$(topsrcdir)/editor/composer/src
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
[gecko]
|
||||
#if SHARED_LIBRARY
|
||||
dist/bin/components/@SHARED_LIBRARY@
|
||||
#else
|
||||
!staticcomp @LIBRARY@ @MODULE_NAME@
|
||||
#endif
|
||||
!xpt dist/bin/components/editor.xpt
|
||||
!xpt dist/bin/components/txtsvc.xpt
|
||||
@@ -1,54 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = txmgr
|
||||
LIBRARY_NAME = txmgr
|
||||
EXPORT_LIBRARY = 1
|
||||
IS_COMPONENT = 1
|
||||
MODULE_NAME = nsTransactionManagerModule
|
||||
|
||||
PACKAGE_FILE = txmgr.pkg
|
||||
|
||||
REQUIRES = xpcom \
|
||||
string \
|
||||
$(NULL)
|
||||
|
||||
CPPSRCS = \
|
||||
nsTransactionItem.cpp \
|
||||
nsTransactionList.cpp \
|
||||
nsTransactionManager.cpp \
|
||||
nsTransactionManagerFactory.cpp \
|
||||
nsTransactionStack.cpp \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DSO_LDOPTS = \
|
||||
$(MOZ_COMPONENT_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
[xpfe-browser browser]
|
||||
#if SHARED_LIBRARY
|
||||
dist/bin/components/@SHARED_LIBRARY@
|
||||
#else
|
||||
!staticcomp @LIBRARY@ @MODULE_NAME@
|
||||
#endif
|
||||
!xpt dist/bin/components/txmgr.xpt
|
||||
|
||||
#if ENABLE_TESTS
|
||||
[gecko-tests]
|
||||
dist/bin/TestTXMgr@BINS@
|
||||
#endif
|
||||
@@ -1,33 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is the Mozilla browser.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications, Inc. Portions created by Netscape are
|
||||
# Copyright (C) 1999, Mozilla. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# Travis Bogard <travis@netscape.com>
|
||||
|
||||
DEPTH = ..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = embed
|
||||
PACKAGE_FILE = embed.pkg
|
||||
|
||||
DIRS = base components browser lite
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
@@ -1,43 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is the Mozilla browser.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications, Inc. Portions created by Netscape are
|
||||
# Copyright (C) 2001, Mozilla. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
|
||||
DEPTH = ../../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = activex
|
||||
PACKAGE_FILE = activex.pkg
|
||||
|
||||
DIRS = $(NULL)
|
||||
|
||||
# Common
|
||||
DIRS += common
|
||||
|
||||
# ActiveX control
|
||||
DIRS += control control_kicker
|
||||
|
||||
# ActiveX plugin
|
||||
ifdef MOZ_ACTIVEX_SCRIPTING_SUPPORT
|
||||
DIRS += plugin
|
||||
endif
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
@@ -1,3 +0,0 @@
|
||||
[gecko]
|
||||
dist/bin/mozctl.dll
|
||||
dist/bin/mozctlx.dll
|
||||
@@ -1,412 +0,0 @@
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
|
||||
###############################################################################
|
||||
# CUSTOMISE SETTINGS IN THIS SECTION AS APPROPRIATE FOR YOUR BUILD SYSTEM!
|
||||
|
||||
DEPTH = ../../../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = npmozax
|
||||
LIBRARY_NAME = npmozax
|
||||
RESFILE = MozActiveX.res
|
||||
DEFFILE = npmozax.def
|
||||
GRE_MODULE = 1
|
||||
|
||||
REQUIRES = \
|
||||
xpcom \
|
||||
java \
|
||||
plugin \
|
||||
string \
|
||||
dom \
|
||||
content \
|
||||
widget \
|
||||
gfx \
|
||||
js \
|
||||
pref \
|
||||
xpconnect \
|
||||
docshell \
|
||||
webshell \
|
||||
necko \
|
||||
windowwatcher \
|
||||
ax_common \
|
||||
$(NULL)
|
||||
|
||||
ifdef XPC_IDISPATCH_SUPPORT
|
||||
REQUIRES += \
|
||||
caps \
|
||||
embedstring \
|
||||
$(NULL)
|
||||
endif
|
||||
XPIFILE = mozactivex.xpi
|
||||
|
||||
FORCE_SHARED_LIB = 1
|
||||
NO_DIST_INSTALL = 1
|
||||
NO_INSTALL = 1
|
||||
|
||||
# Path to the Mozilla ActiveX common dir (some files are copied from there)
|
||||
AXCOMMONSRC=$(srcdir)/../common
|
||||
|
||||
############
|
||||
# LiveConnect settings
|
||||
|
||||
# MOZ_ACTIVEX_PLUGIN_LIVECONNECT = 1
|
||||
|
||||
# Settings that specify where the PluginSDK, Java compiler (javac or oldjavac),
|
||||
# Java header file generator (javah) and classes live.
|
||||
#
|
||||
# You need the Netscape PluginSDK:
|
||||
#
|
||||
# http://home.netscape.com/comprod/development_partners/plugin_api/index.html
|
||||
#
|
||||
# You also need a JDK with the old java compiler. Anything from 1.3
|
||||
# downwards should do. See here for various JDK releases:
|
||||
#
|
||||
# http://java.sun.com/products/archive/index.html
|
||||
#
|
||||
# You should use the javah found in the plugin SDK because this generates
|
||||
# the JRI stubs.
|
||||
|
||||
ifdef MOZ_ACTIVEX_PLUGIN_LIVECONNECT
|
||||
PLUGINSDK = c:/m/PluginSDK
|
||||
SDK_JAVADIR = c:/jdk1.02
|
||||
SDK_JAVAH = $(PLUGINSDK)/bin/win32/javah
|
||||
SDK_JAVAC = $(SDK_JAVADIR)/bin/javac
|
||||
SDK_CLASSES = $(PLUGINSDK)/classes/java_30.zip
|
||||
SDK_CLASSPATH = "$(subst /,\,$(SDK_CLASSES));."
|
||||
endif
|
||||
|
||||
############
|
||||
# XPConnect settings
|
||||
|
||||
MOZ_ACTIVEX_PLUGIN_XPCONNECT = 1
|
||||
|
||||
# XPConnect support in (Netscape 6.1+/Mozilla)
|
||||
|
||||
# Uncomment this line to install the plugin & policy
|
||||
# MOZ_USE_ACTIVEX_PLUGIN = 1
|
||||
|
||||
# Settings will also be read from this supplemental file if it exists
|
||||
-include $(srcdir)/plugin.mk
|
||||
|
||||
###############################################################################
|
||||
|
||||
ifdef MOZ_ACTIVEX_PLUGIN_XPCONNECT
|
||||
XPIDLSRCS = \
|
||||
./nsIMozAxPlugin.idl \
|
||||
$(NULL)
|
||||
endif
|
||||
|
||||
GARBAGE += $(DEFFILE)
|
||||
|
||||
CPPSRCS = \
|
||||
StdAfx.cpp \
|
||||
LegacyPlugin.cpp \
|
||||
MozActiveX.cpp \
|
||||
npwin.cpp \
|
||||
$(NULL)
|
||||
|
||||
ifdef MOZ_ACTIVEX_PLUGIN_XPCONNECT
|
||||
CPPSRCS += XPConnect.cpp XPCDocument.cpp XPCBrowser.cpp
|
||||
endif
|
||||
|
||||
ifdef MOZ_ACTIVEX_PLUGIN_LIVECONNECT
|
||||
_AXCOMMON_CPPSRCS = \
|
||||
ActiveScriptSite.cpp \
|
||||
ControlEventSink.cpp \
|
||||
ControlSite.cpp \
|
||||
ControlSiteIPFrame.cpp \
|
||||
ItemContainer.cpp \
|
||||
PropertyBag.cpp \
|
||||
$(NULL)
|
||||
CPPSRCS += LiveConnect.cpp $(_AXCOMMON_CPPSRCS)
|
||||
CSRCS += javastubs.c
|
||||
endif
|
||||
|
||||
ifdef XPC_IDISPATCH_SUPPORT
|
||||
CPPSRCS += PrefObserver.cpp
|
||||
endif
|
||||
|
||||
LOCAL_INCLUDES = -I$(srcdir) -I$(AXCOMMONSRC)
|
||||
|
||||
ifdef MOZ_ACTIVEX_PLUGIN_LIVECONNECT
|
||||
LOCAL_INCLUDES += -I./_java
|
||||
endif
|
||||
|
||||
ifdef MOZ_ACTIVEX_PLUGIN_XPCONNECT
|
||||
LOCAL_INCLUDES += -I$(XPIDL_GEN_DIR)
|
||||
endif
|
||||
|
||||
OS_LIBS += \
|
||||
comdlg32.lib \
|
||||
ole32.lib \
|
||||
oleaut32.lib \
|
||||
uuid.lib \
|
||||
shell32.lib \
|
||||
$(NULL)
|
||||
|
||||
ifdef MOZ_ACTIVEX_PLUGIN_LIVECONNECT
|
||||
DEFINES += -DMOZ_ACTIVEX_PLUGIN_LIVECONNECT -DXPCOM_GLUE
|
||||
endif
|
||||
|
||||
ifdef MOZ_ACTIVEX_PLUGIN_XPCONNECT
|
||||
DEFINES += -DMOZ_ACTIVEX_PLUGIN_XPCONNECT
|
||||
endif
|
||||
|
||||
ifdef XPC_IDISPATCH_SUPPORT
|
||||
DEFINES += -DXPC_IDISPATCH_SUPPORT
|
||||
endif
|
||||
|
||||
EXTRA_DSO_LDOPTS = \
|
||||
$(MOZ_COMPONENT_LIBS) \
|
||||
$(NSPR_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
LIBS = \
|
||||
$(NSPR_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
# LiveConnect links to XPCOM glue
|
||||
ifdef MOZ_ACTIVEX_PLUGIN_LIVECONNECT
|
||||
EXTRA_DSO_LDOPTS += \
|
||||
$(DIST)/lib/$(LIB_PREFIX)embedstring_s.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)string_s.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)string_obsolete_s.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)xpcomglue.$(LIB_SUFFIX)
|
||||
LIBS += \
|
||||
$(DIST)/lib/$(LIB_PREFIX)embedstring_s.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)string_s.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)string_obsolete_s.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)xpcomglue.$(LIB_SUFFIX)
|
||||
endif
|
||||
|
||||
# XPConnect links to XPCOM and the shared activex lib
|
||||
ifdef XPC_IDISPATCH_SUPPORT
|
||||
EXTRA_DSO_LDOPTS += \
|
||||
$(DIST)/lib/$(LIB_PREFIX)ax_common_s.$(LIB_SUFFIX) \
|
||||
$(MOZ_JS_LIBS) \
|
||||
$(XPCOM_LIBS) \
|
||||
$(NULL)
|
||||
endif
|
||||
|
||||
|
||||
|
||||
SRCS_IN_OBJDIR = 1
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
CXXFLAGS += -GX
|
||||
|
||||
ifdef MOZ_ACTIVEX_PLUGIN_LIVCONNECT
|
||||
copy-sources: $(addprefix $(MOZCTLSRC)/,$(_CONTROL_CPPSRCS))
|
||||
$(INSTALL) $^ .
|
||||
|
||||
export:: copy-sources
|
||||
endif
|
||||
|
||||
install-plugin: $(SHARED_LIBRARY)
|
||||
ifdef SHARED_LIBRARY
|
||||
$(INSTALL) $< $(DIST)/bin/plugins
|
||||
endif
|
||||
|
||||
install-class: MozAxPlugin.class
|
||||
$(INSTALL) $< $(DIST)/bin/plugins
|
||||
|
||||
install-typelib: $(XPIDL_GEN_DIR)/nsIMozAxPlugin.xpt
|
||||
$(INSTALL) $< $(DIST)/bin/plugins
|
||||
|
||||
install-securitypolicy: nsAxSecurityPolicy.js
|
||||
$(INSTALL) $< $(DIST)/bin/components
|
||||
|
||||
install-prefs: activex.js
|
||||
$(INSTALL) $< $(DIST)/bin/defaults/pref
|
||||
|
||||
ifdef MOZ_USE_ACTIVEX_PLUGIN
|
||||
PACKAGE_FILE = axplugin.pkg
|
||||
PACKAGE_VARS += \
|
||||
MOZ_ACTIVEX_PLUGIN_LIVECONNECT \
|
||||
MOZ_ACTIVEX_PLUGIN_XPCONNECT \
|
||||
XPC_IDISPATCH_SUPPORT \
|
||||
$(NULL)
|
||||
|
||||
libs:: install-plugin install-prefs
|
||||
|
||||
ifdef MOZ_ACTIVEX_PLUGIN_LIVECONNECT
|
||||
libs:: install-class
|
||||
endif
|
||||
|
||||
ifdef MOZ_ACTIVEX_PLUGIN_XPCONNECT
|
||||
libs:: install-typelib
|
||||
endif
|
||||
|
||||
ifdef XPC_IDISPATCH_SUPPORT
|
||||
libs:: install-securitypolicy
|
||||
endif
|
||||
endif
|
||||
|
||||
## Note: Ensure you create the redist dir containing the correct runtime dlls
|
||||
|
||||
xpi:: install.js $(SHARED_LIBRARY)
|
||||
$(ZIP) -9 -j $(DIST)/bin/$(XPIFILE) $<
|
||||
$(ZIP) -9 -j $(DIST)/bin/$(XPIFILE) $(SHARED_LIBRARY)
|
||||
$(ZIP) -9 -j $(DIST)/bin/$(XPIFILE) $(topsrcdir)/../redist/microsoft/system/msvcrt.dll
|
||||
$(ZIP) -9 -j $(DIST)/bin/$(XPIFILE) $(topsrcdir)/../redist/microsoft/system/msvcp60.dll
|
||||
ifdef MOZ_ACTIVEX_PLUGIN_LIVECONNECT
|
||||
$(ZIP) -9 -j $(DIST)/bin/$(XPIFILE) MozAxPlugin.class
|
||||
endif
|
||||
ifdef MOZ_ACTIVEX_PLUGIN_XPCONNECT
|
||||
$(ZIP) -9 -j $(DIST)/bin/$(XPIFILE) $(XPIDL_GEN_DIR)/nsIMozAxPlugin.xpt
|
||||
endif
|
||||
ifdef XPC_IDISPATCH_SUPPORT
|
||||
$(ZIP) -9 -j $(DIST)/bin/$(XPIFILE) activex.js
|
||||
$(ZIP) -9 -j $(DIST)/bin/$(XPIFILE) nsAxSecurityPolicy.js
|
||||
endif
|
||||
|
||||
$(SHARED_LIBRARY) : $(DEFFILE)
|
||||
|
||||
$(DEFFILE):
|
||||
-rm -f $@
|
||||
@echo "; npmozax.def : Declares the module parameters." >> $@
|
||||
@echo "; This file was autogenerated by mkctldef.bat!" >> $@
|
||||
@echo "" >> $@
|
||||
@echo "LIBRARY "npmozax.DLL"" >> $@
|
||||
@echo "EXPORTS" >> $@
|
||||
@echo "; Plugin exports" >> $@
|
||||
@echo "NP_GetEntryPoints @1" >> $@
|
||||
@echo "NP_Initialize @2" >> $@
|
||||
@echo "NP_Shutdown @3" >> $@
|
||||
|
||||
ifdef MOZ_ACTIVEX_PLUGIN_LIVECONNECT
|
||||
./MozAxPlugin.class: ./MozAxPlugin.java
|
||||
$(SDK_JAVAC) -classpath $(SDK_CLASSPATH) MozAxPlugin.java
|
||||
|
||||
./_java/MozAxPlugin.h \
|
||||
./_java/MozAxPlugin.c: ./MozAxPlugin.class
|
||||
$(SDK_JAVAH) -classpath $(SDK_CLASSPATH) -jri -d _java MozAxPlugin
|
||||
$(SDK_JAVAH) -classpath $(SDK_CLASSPATH) -jri -stubs -d _java MozAxPlugin
|
||||
|
||||
./_java/java_lang_Object.h \
|
||||
./_java/java_lang_Object.c : $(SDK_CLASSES)
|
||||
$(SDK_JAVAH) -classpath $(SDK_CLASSPATH) -jri -d _java java.lang.Object
|
||||
$(SDK_JAVAH) -classpath $(SDK_CLASSPATH) -jri -stubs -d _java java.lang.Object
|
||||
|
||||
./_java/java_lang_Error.h \
|
||||
./_java/java_lang_Error.c : $(SDK_CLASSES)
|
||||
$(SDK_JAVAH) -classpath $(SDK_CLASSPATH) -jri -d _java java.lang.Error
|
||||
$(SDK_JAVAH) -classpath $(SDK_CLASSPATH) -jri -stubs -d _java java.lang.Error
|
||||
|
||||
./_java/java_lang_Throwable.h \
|
||||
./_java/java_lang_Throwable.c : $(SDK_CLASSES)
|
||||
$(SDK_JAVAH) -classpath $(SDK_CLASSPATH) -jri -d _java java.lang.Throwable
|
||||
$(SDK_JAVAH) -classpath $(SDK_CLASSPATH) -jri -stubs -d _java java.lang.Throwable
|
||||
|
||||
./_java/java_lang_String.h \
|
||||
./_java/java_lang_String.c : $(SDK_CLASSES)
|
||||
$(SDK_JAVAH) -classpath $(SDK_CLASSPATH) -jri -d _java java.lang.String
|
||||
$(SDK_JAVAH) -classpath $(SDK_CLASSPATH) -jri -stubs -d _java java.lang.String
|
||||
|
||||
./_java/java_lang_Boolean.h \
|
||||
./_java/java_lang_Boolean.c : $(SDK_CLASSES)
|
||||
$(SDK_JAVAH) -classpath $(SDK_CLASSPATH) -jri -d _java java.lang.Boolean
|
||||
$(SDK_JAVAH) -classpath $(SDK_CLASSPATH) -jri -stubs -d _java java.lang.Boolean
|
||||
|
||||
./_java/java_lang_Number.h \
|
||||
./_java/java_lang_Number.c : $(SDK_CLASSES)
|
||||
$(SDK_JAVAH) -classpath $(SDK_CLASSPATH) -jri -d _java java.lang.Number
|
||||
$(SDK_JAVAH) -classpath $(SDK_CLASSPATH) -jri -stubs -d _java java.lang.Number
|
||||
|
||||
./_java/java_lang_Integer.h \
|
||||
./_java/java_lang_Integer.c : $(SDK_CLASSES)
|
||||
$(SDK_JAVAH) -classpath $(SDK_CLASSPATH) -jri -d _java java.lang.Integer
|
||||
$(SDK_JAVAH) -classpath $(SDK_CLASSPATH) -jri -stubs -d _java java.lang.Integer
|
||||
|
||||
./_java/java_lang_Short.h \
|
||||
./_java/java_lang_Short.c : $(SDK_CLASSES)
|
||||
$(SDK_JAVAH) -classpath $(SDK_CLASSPATH) -jri -d _java java.lang.Short
|
||||
$(SDK_JAVAH) -classpath $(SDK_CLASSPATH) -jri -stubs -d _java java.lang.Short
|
||||
|
||||
./_java/java_lang_Long.h \
|
||||
./_java/java_lang_Long.c : $(SDK_CLASSES)
|
||||
$(SDK_JAVAH) -classpath $(SDK_CLASSPATH) -jri -d _java java.lang.Long
|
||||
$(SDK_JAVAH) -classpath $(SDK_CLASSPATH) -jri -stubs -d _java java.lang.Long
|
||||
|
||||
./_java/java_lang_Double.h \
|
||||
./_java/java_lang_Double.c : $(SDK_CLASSES)
|
||||
$(SDK_JAVAH) -classpath $(SDK_CLASSPATH) -jri -d _java java.lang.Double
|
||||
$(SDK_JAVAH) -classpath $(SDK_CLASSPATH) -jri -stubs -d _java java.lang.Double
|
||||
|
||||
./_java/java_lang_Float.h \
|
||||
./_java/java_lang_Float.c : $(SDK_CLASSES)
|
||||
$(SDK_JAVAH) -classpath $(SDK_CLASSPATH) -jri -d _java java.lang.Float
|
||||
$(SDK_JAVAH) -classpath $(SDK_CLASSPATH) -jri -stubs -d _java java.lang.Float
|
||||
|
||||
./_java/java_lang_Byte.h \
|
||||
./_java/java_lang_Byte.c : $(SDK_CLASSES)
|
||||
$(SDK_JAVAH) -classpath $(SDK_CLASSPATH) -jri -d _java java.lang.Byte
|
||||
$(SDK_JAVAH) -classpath $(SDK_CLASSPATH) -jri -stubs -d _java java.lang.Byte
|
||||
|
||||
./_java/java_lang_Character.h \
|
||||
./_java/java_lang_Character.c : $(SDK_CLASSES)
|
||||
$(SDK_JAVAH) -classpath $(SDK_CLASSPATH) -jri -d _java java.lang.Character
|
||||
$(SDK_JAVAH) -classpath $(SDK_CLASSPATH) -jri -stubs -d _java java.lang.Character
|
||||
|
||||
./_java/netscape_plugin_Plugin.h \
|
||||
./_java/netscape_plugin_Plugin.c : $(SDK_CLASSES)
|
||||
$(SDK_JAVAH) -classpath $(SDK_CLASSPATH) -jri -d _java netscape.plugin.Plugin
|
||||
$(SDK_JAVAH) -classpath $(SDK_CLASSPATH) -jri -stubs -d _java netscape.plugin.Plugin
|
||||
|
||||
javastubs.c : \
|
||||
./MozAxPlugin.class \
|
||||
./_java/MozAxPlugin.c \
|
||||
./_java/netscape_plugin_Plugin.c \
|
||||
./_java/java_lang_Object.c \
|
||||
./_java/java_lang_Throwable.c \
|
||||
./_java/java_lang_Error.c \
|
||||
./_java/java_lang_String.c \
|
||||
./_java/java_lang_Boolean.c \
|
||||
./_java/java_lang_Number.c \
|
||||
./_java/java_lang_Integer.c \
|
||||
./_java/java_lang_Long.c \
|
||||
./_java/java_lang_Double.c \
|
||||
./_java/java_lang_Float.c \
|
||||
./_java/java_lang_Character.c \
|
||||
$(NULL)
|
||||
|
||||
LiveConnect.cpp: StdAfx.h \
|
||||
./MozAxPlugin.class \
|
||||
./_java/MozAxPlugin.h \
|
||||
./_java/netscape_plugin_Plugin.h \
|
||||
./_java/java_lang_Object.h \
|
||||
./_java/java_lang_Throwable.h \
|
||||
./_java/java_lang_Error.h \
|
||||
./_java/java_lang_String.h \
|
||||
./_java/java_lang_Boolean.h \
|
||||
./_java/java_lang_Number.h \
|
||||
./_java/java_lang_Integer.h \
|
||||
./_java/java_lang_Long.h \
|
||||
./_java/java_lang_Double.h \
|
||||
./_java/java_lang_Float.h \
|
||||
./_java/java_lang_Character.h \
|
||||
$(NULL)
|
||||
endif
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
# XXXbsmedberg: god help me, this makefile is bizarre
|
||||
[gecko]
|
||||
dist/plugins/@SHARED_LIBRARY@
|
||||
dist/bin/defaults/pref/activex.js
|
||||
#if MOZ_ACTIVEX_PLUGIN_XPCONNECT
|
||||
!xpt dist/bin/plugins/nsIMozAxPlugin.xpt
|
||||
#endif
|
||||
#if MOZ_ACTIVEX_PLUGIN_LIVECONNECT
|
||||
dist/bin/plugins/MozAxPlugin.class
|
||||
#endif
|
||||
#if XPC_IDISPATCH_SUPPORT
|
||||
dist/bin/components/nsAxSecurityPolicy.js
|
||||
#endif
|
||||
@@ -1,83 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is the Mozilla browser.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications, Inc. Portions created by Netscape are
|
||||
# Copyright (C) 1999, Mozilla. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# Travis Bogard <travis@netscape.com>
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
MODULE = webbrwsr
|
||||
|
||||
IS_COMPONENT = 1
|
||||
MODULE_NAME = Browser_Embedding_Module
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
LIBRARY_NAME = webbrwsr
|
||||
EXPORT_LIBRARY = 1
|
||||
GRE_MODULE = 1
|
||||
|
||||
PACKAGE_FILE = webbrowser.pkg
|
||||
|
||||
REQUIRES = xpcom \
|
||||
string \
|
||||
docshell \
|
||||
dom \
|
||||
widget \
|
||||
gfx \
|
||||
layout \
|
||||
content \
|
||||
necko \
|
||||
uriloader \
|
||||
shistory \
|
||||
windowwatcher \
|
||||
webbrowserpersist \
|
||||
$(NULL)
|
||||
|
||||
ifeq ($(OS_ARCH),WINNT)
|
||||
EXTRA_DSO_LIBS = gkgfx
|
||||
endif
|
||||
|
||||
CPPSRCS = \
|
||||
nsWebBrowserModule.cpp \
|
||||
$(NULL)
|
||||
|
||||
SHARED_LIBRARY_LIBS= \
|
||||
$(DIST)/lib/$(LIB_PREFIX)nsWebBrowser_s.$(LIB_SUFFIX) \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DSO_LDOPTS= \
|
||||
$(LIBS_DIR) \
|
||||
$(EXTRA_DSO_LIBS) \
|
||||
$(MOZ_UNICHARUTIL_LIBS) \
|
||||
$(MOZ_COMPONENT_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
ifeq (mac,$(MOZ_WIDGET_TOOLKIT))
|
||||
EXTRA_DSO_LDOPTS += $(TK_LIBS)
|
||||
endif
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
INCLUDES += \
|
||||
-I$(srcdir) \
|
||||
-I$(srcdir)/../webBrowser \
|
||||
-I$(srcdir)/../setup \
|
||||
$(NULL)
|
||||
@@ -1,7 +0,0 @@
|
||||
[gecko]
|
||||
#if SHARED_LIBRARY
|
||||
dist/bin/components/@SHARED_LIBRARY@
|
||||
#else
|
||||
!staticcomp @LIBRARY@ @MODULE_NAME@
|
||||
#endif
|
||||
!xpt dist/bin/components/webBrowser_core.xpt
|
||||
@@ -1,33 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is the Mozilla browser.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Christopher
|
||||
# Blizzard. Portions created by Christopher Blizzard are
|
||||
# Copyright (C) 1999, Mozilla. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# Christopher Blizzard <blizzard@mozilla.org>
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = gtkembedmoz
|
||||
DIRS=src tests
|
||||
|
||||
PACKAGE_FILE = gtkembed.pkg
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
@@ -1,9 +0,0 @@
|
||||
[gtkembed]
|
||||
dist/bin/@DLLP@gtkembedmoz@DLLS@
|
||||
dist/bin/TestGtkEmbed
|
||||
|
||||
#if ENABLE_TESTS
|
||||
dist/bin/TestGtkEmbedNotebook@BINS@
|
||||
dist/bin/TestGtkEmbedSocket@BINS@
|
||||
dist/bin/TestGtkEmbedChild@BINS@
|
||||
#endif
|
||||
@@ -1,163 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is the Mozilla browser.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Christopher
|
||||
# Blizzard. Portions created by Christopher Blizzard are
|
||||
# Copyright (C) 1999, Mozilla. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# Christopher Blizzard <blizzard@mozilla.org>
|
||||
|
||||
DEPTH = ../../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = gtkembedmoz
|
||||
LIBRARY_NAME = gtkembedmoz
|
||||
REQUIRES = xpcom \
|
||||
string \
|
||||
docshell \
|
||||
webshell \
|
||||
necko \
|
||||
widget \
|
||||
dom \
|
||||
js \
|
||||
gfx \
|
||||
layout \
|
||||
content \
|
||||
uriloader \
|
||||
webbrwsr \
|
||||
shistory \
|
||||
embed_base \
|
||||
pref \
|
||||
windowwatcher \
|
||||
profdirserviceprovider \
|
||||
$(NULL)
|
||||
|
||||
ifdef ACCESSIBILITY
|
||||
REQUIRES += accessibility
|
||||
endif
|
||||
|
||||
CPPSRCS = \
|
||||
gtkmozembed2.cpp \
|
||||
EmbedPrivate.cpp \
|
||||
EmbedWindow.cpp \
|
||||
EmbedProgress.cpp \
|
||||
EmbedContentListener.cpp \
|
||||
EmbedEventListener.cpp \
|
||||
EmbedWindowCreator.cpp \
|
||||
EmbedStream.cpp
|
||||
|
||||
ifdef MOZ_ENABLE_GTK2
|
||||
CSRCS = \
|
||||
gtkmozembedmarshal.c
|
||||
CPPSRCS += \
|
||||
EmbedPrompter.cpp \
|
||||
GtkPromptService.cpp
|
||||
endif
|
||||
|
||||
# Force applications to be built non-statically
|
||||
# when building the mozcomps meta component
|
||||
ifneq (,$(filter mozcomps,$(MOZ_META_COMPONENTS)))
|
||||
BUILD_STATIC_LIBS=
|
||||
BUILD_SHARED_LIBS=1
|
||||
endif
|
||||
|
||||
ifdef BUILD_STATIC_LIBS
|
||||
# Static build stuff
|
||||
DEFINES += -D_BUILD_STATIC_BIN=1
|
||||
CPPSRCS += EmbedComponents.cpp
|
||||
|
||||
XP_LIBS += \
|
||||
$(PNG_LIBS) \
|
||||
$(JPEG_LIBS) \
|
||||
$(ZLIB_LIBS) \
|
||||
$(MOZ_GDK_PIXBUF_LIBS) \
|
||||
$(MOZ_XIE_LIBS) \
|
||||
$(MOZ_XPRINT_LDFLAGS) \
|
||||
$(NULL)
|
||||
|
||||
ifdef MOZ_PSM
|
||||
XP_LIBS += \
|
||||
$(NSS_LIBS) \
|
||||
$(NULL)
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
SHARED_LIBRARY_LIBS= \
|
||||
$(DIST)/lib/libembed_base_s.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/libprofdirserviceprovider_s.$(LIB_SUFFIX) \
|
||||
$(NULL)
|
||||
|
||||
EXPORTS = \
|
||||
gtkmozembed.h \
|
||||
gtkmozembed_internal.h
|
||||
|
||||
ifdef MOZ_ENABLE_GTK
|
||||
EXTRA_DSO_LDOPTS = \
|
||||
$(MOZ_COMPONENT_LIBS) \
|
||||
$(XPCOM_GLUE_LIBS) \
|
||||
-lgtksuperwin \
|
||||
$(NULL)
|
||||
endif
|
||||
|
||||
ifdef MOZ_ENABLE_GTK2
|
||||
EXTRA_DSO_LDOPTS = \
|
||||
$(MOZ_COMPONENT_LIBS) \
|
||||
$(NULL)
|
||||
endif
|
||||
|
||||
EXTRA_DSO_LDOPTS += $(MOZ_GTK_LDFLAGS) $(MOZ_GTK2_LIBS)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
ifeq ($(OS_ARCH), SunOS)
|
||||
ifndef GNU_CC
|
||||
# When using Sun's WorkShop compiler, including
|
||||
# /wherever/workshop-5.0/SC5.0/include/CC/std/time.h
|
||||
# causes most of these compiles to fail with:
|
||||
# line 29: Error: Multiple declaration for std::tm.
|
||||
# So, this gets around the problem.
|
||||
DEFINES += -D_TIME_H=1
|
||||
endif
|
||||
endif
|
||||
|
||||
CXXFLAGS += $(MOZ_GTK_CFLAGS) $(MOZ_GTK2_CFLAGS)
|
||||
CFLAGS += $(MOZ_GTK_CFLAGS) $(MOZ_GTK2_CFLAGS)
|
||||
|
||||
ifdef BUILD_STATIC_LIBS
|
||||
|
||||
ifdef MOZ_FAT_EMBED
|
||||
EMBED_LINK_COMP_NAMES=$(FINAL_LINK_COMP_NAMES)
|
||||
else
|
||||
EMBED_LINK_COMP_NAMES=embed-link-comp-names
|
||||
endif
|
||||
|
||||
# We need to get a list of modules to include as static components,
|
||||
# from the packaging system.
|
||||
embed-link-comp-names:
|
||||
$(PERL) $(topsrcdir)/build/package/static-comps.pl -o $(DEPTH) -l $(topsrcdir)/build/package/packages.list -vv -m $@ -i embed-link-comps gtkembed
|
||||
sed -i -e 's/^$(LIB_PREFIX)//' -e 's/\.$(LIB_SUFFIX)$$//' embed-link-comps
|
||||
|
||||
EmbedComponents.cpp: EmbedComponents.cpp.in Makefile Makefile.in $(EMBED_LINK_COMP_NAMES)
|
||||
cat $< | \
|
||||
sed -e "s|%DECL_NSGETMODULES%|$(foreach m,$(shell cat $(EMBED_LINK_COMP_NAMES)),DECL_NSGETMODULE($(m)))|" | \
|
||||
sed -e "s|%MODULE_LIST%|$(foreach m, $(shell cat $(EMBED_LINK_COMP_NAMES)),MODULE($(m)),)|" \
|
||||
> $@
|
||||
|
||||
GARBAGE += EmbedComponents.cpp embed-link-comp-names
|
||||
endif
|
||||
@@ -1,141 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is the Mozilla browser.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Christopher
|
||||
# Blizzard. Portions created by Christopher Blizzard are
|
||||
# Copyright (C) 1999, Mozilla. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# Christopher Blizzard <blizzard@mozilla.org>
|
||||
|
||||
DEPTH = ../../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = gtkembedmoz
|
||||
REQUIRES = xpcom \
|
||||
string \
|
||||
dom \
|
||||
$(NULL)
|
||||
|
||||
ifdef NS_TRACE_MALLOC
|
||||
REQUIRES += tracemalloc
|
||||
endif
|
||||
|
||||
ifdef MOZ_JPROF
|
||||
REQUIRES += jprof
|
||||
endif
|
||||
|
||||
CPPSRCS = TestGtkEmbed.cpp
|
||||
|
||||
ifdef ENABLE_TESTS
|
||||
CPPSRCS += \
|
||||
TestGtkEmbedNotebook.cpp \
|
||||
TestGtkEmbedSocket.cpp \
|
||||
TestGtkEmbedChild.cpp
|
||||
endif
|
||||
|
||||
SIMPLE_PROGRAMS = $(CPPSRCS:.cpp=)
|
||||
|
||||
# ENABLE_GNOME=1
|
||||
|
||||
ifdef ENABLE_GNOME
|
||||
ifdef ENABLE_TESTS
|
||||
CPPSRCS += TestGtkEmbedMDI.cpp
|
||||
endif
|
||||
endif
|
||||
|
||||
ifdef MOZ_ENABLE_GTK
|
||||
LIBS += \
|
||||
-lgtkembedmoz \
|
||||
-lgtksuperwin \
|
||||
$(NULL)
|
||||
endif
|
||||
|
||||
ifdef MOZ_ENABLE_GTK2
|
||||
LIBS += \
|
||||
-lgtkembedmoz \
|
||||
$(XLDFLAGS) \
|
||||
$(XLIBS) \
|
||||
$(NULL)
|
||||
endif
|
||||
|
||||
include $(topsrcdir)/config/config.mk
|
||||
|
||||
# Force applications to be built non-statically
|
||||
# when building the mozcomps meta component
|
||||
ifneq (,$(filter mozcomps,$(MOZ_META_COMPONENTS)))
|
||||
BUILD_STATIC_LIBS=
|
||||
BUILD_SHARED_LIBS=1
|
||||
endif
|
||||
|
||||
ifdef BUILD_STATIC_LIBS
|
||||
|
||||
ifndef MOZ_FAT_EMBED
|
||||
FINAL_LINK_COMPS=../src/embed-link-comps
|
||||
endif
|
||||
|
||||
include $(topsrcdir)/config/static-config.mk
|
||||
|
||||
EXTRA_DEPS += $(STATIC_EXTRA_DEPS)
|
||||
EXTRA_DSO_LIBS += $(STATIC_EXTRA_DSO_LIBS)
|
||||
EXTRA_LIBS += -L$(DEPTH)/dist/lib/components
|
||||
EXTRA_LIBS += $(EXTRA_DSO_LIBS) $(STATIC_EXTRA_LIBS)
|
||||
|
||||
endif
|
||||
|
||||
ifdef NS_TRACE_MALLOC
|
||||
EXTRA_LIBS += -ltracemalloc
|
||||
endif
|
||||
|
||||
ifdef MOZ_PERF_METRICS
|
||||
EXTRA_LIBS += -lmozutil_s
|
||||
endif
|
||||
|
||||
ifdef MOZ_JPROF
|
||||
EXTRA_LIBS += -ljprof
|
||||
endif
|
||||
|
||||
EXTRA_LIBS += $(MOZ_JS_LIBS)
|
||||
EXTRA_LIBS += $(MOZ_COMPONENT_LIBS)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
CXXFLAGS += $(MOZ_GTK_CFLAGS) $(MOZ_GTK2_CFLAGS)
|
||||
|
||||
ifdef ENABLE_GNOME
|
||||
CXXFLAGS += `gnome-config --cflags gnomeui`
|
||||
EXTRA_LIBS += `gnome-config --libs gnomeui`
|
||||
endif
|
||||
|
||||
EXTRA_LIBS += \
|
||||
$(TK_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
ifeq ($(OS_ARCH), SunOS)
|
||||
ifndef GNU_CC
|
||||
# When using Sun's WorkShop compiler, including
|
||||
# /wherever/workshop-5.0/SC5.0/include/CC/std/time.h
|
||||
# causes most of these compiles to fail with:
|
||||
# line 29: Error: Multiple declaration for std::tm.
|
||||
# So, this gets around the problem.
|
||||
DEFINES += -D_TIME_H=1
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(OS_ARCH), OpenVMS)
|
||||
DEFINES += -DGENERIC_MOTIF_REDEFINES
|
||||
endif
|
||||
@@ -1,96 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is the Mozilla browser.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications, Inc. Portions created by Netscape are
|
||||
# Copyright (C) 1999, Mozilla. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# Travis Bogard <travis@netscape.com>
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = webbrwsr
|
||||
XPIDL_MODULE = webBrowser_core
|
||||
LIBRARY_NAME = nsWebBrowser_s
|
||||
GRE_MODULE = 1
|
||||
|
||||
REQUIRES = xpcom \
|
||||
string \
|
||||
docshell \
|
||||
widget \
|
||||
gfx \
|
||||
layout \
|
||||
content \
|
||||
dom \
|
||||
js \
|
||||
necko \
|
||||
uriloader \
|
||||
shistory \
|
||||
webshell \
|
||||
windowwatcher \
|
||||
history \
|
||||
webbrowserpersist \
|
||||
unicharutil \
|
||||
imglib2 \
|
||||
locale \
|
||||
$(NULL)
|
||||
|
||||
ifdef MOZ_PHOENIX
|
||||
REQUIRES += toolkitcomps
|
||||
endif
|
||||
|
||||
EXPORTS = \
|
||||
nsCTooltipTextProvider.h \
|
||||
$(NULL)
|
||||
|
||||
SDK_XPIDLSRCS = \
|
||||
nsIContextMenuListener.idl \
|
||||
nsIEmbeddingSiteWindow.idl \
|
||||
nsITooltipListener.idl \
|
||||
nsITooltipTextProvider.idl \
|
||||
nsIWebBrowser.idl \
|
||||
nsIWebBrowserChrome.idl \
|
||||
nsIWebBrowserChromeFocus.idl \
|
||||
nsIWebBrowserFocus.idl \
|
||||
nsIWebBrowserPrint.idl \
|
||||
nsIWebBrowserSetup.idl \
|
||||
$(NULL)
|
||||
|
||||
XPIDLSRCS = \
|
||||
nsCWebBrowser.idl \
|
||||
nsICommandHandler.idl \
|
||||
nsIEmbeddingSiteWindow2.idl \
|
||||
nsIContextMenuListener2.idl \
|
||||
nsIPrintingPrompt.idl \
|
||||
nsIPrintingPromptService.idl \
|
||||
$(NULL)
|
||||
|
||||
CPPSRCS = \
|
||||
nsDocShellTreeOwner.cpp \
|
||||
nsWebBrowser.cpp \
|
||||
nsCommandHandler.cpp \
|
||||
nsWebBrowserContentPolicy.cpp \
|
||||
nsContextMenuInfo.cpp \
|
||||
$(NULL)
|
||||
|
||||
# we don't want the shared lib, but we want to force the creation of a
|
||||
# static lib.
|
||||
FORCE_STATIC_LIB = 1
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
@@ -1,132 +0,0 @@
|
||||
# The contents of this file are subject to the Mozilla Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications, Inc. Portions created by Netscape are
|
||||
# Copyright (C) 2001, Mozilla. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = embedcomponents
|
||||
LIBRARY_NAME = embedcomponents
|
||||
EXPORT_LIBRARY = 1
|
||||
ifneq ($(OS_ARCH),WINNT)
|
||||
SHORT_LIBNAME = embedcmp
|
||||
endif
|
||||
IS_COMPONENT = 1
|
||||
MODULE_NAME = embedcomponents
|
||||
GRE_MODULE = 1
|
||||
|
||||
ifdef MOZ_PERF_METRICS
|
||||
EXTRA_DSO_LIBS = mozutil_s
|
||||
endif
|
||||
|
||||
PACKAGE_FILE = embedcomponents.pkg
|
||||
PACKAGE_VARS += MOZ_PROFILESHARING
|
||||
|
||||
REQUIRES = js \
|
||||
xpcom \
|
||||
string \
|
||||
windowwatcher \
|
||||
webbrwsr \
|
||||
gfx \
|
||||
webbrowserpersist \
|
||||
jsconsole \
|
||||
find \
|
||||
htmlparser \
|
||||
embed_base \
|
||||
dom \
|
||||
lwbrk \
|
||||
mimetype \
|
||||
content \
|
||||
uriloader \
|
||||
necko \
|
||||
commandhandler \
|
||||
xuldoc \
|
||||
$(NULL)
|
||||
|
||||
ifdef MOZ_PROFILESHARING
|
||||
REQUIRES += profilesharingsetup
|
||||
endif
|
||||
|
||||
CPPSRCS = nsModule.cpp
|
||||
|
||||
SHARED_LIBRARY_LIBS = \
|
||||
$(DIST)/lib/$(LIB_PREFIX)windowwatcher_s.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)appstartupnotifier_s.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)find_s.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)webbrowserpersist_s.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)commandhandler_s.$(LIB_SUFFIX) \
|
||||
$(NULL)
|
||||
|
||||
ifdef MOZ_XUL
|
||||
SHARED_LIBRARY_LIBS += \
|
||||
$(DIST)/lib/$(LIB_PREFIX)printingui_s.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)jsconsole_s.$(LIB_SUFFIX) \
|
||||
$(NULL)
|
||||
endif
|
||||
|
||||
LOCAL_INCLUDES = \
|
||||
-I$(srcdir)/../windowwatcher/src \
|
||||
-I$(srcdir)/../appstartup/src \
|
||||
-I$(srcdir)/../jsconsole/src \
|
||||
-I$(srcdir)/../find/src \
|
||||
-I$(srcdir)/../webbrowserpersist/src \
|
||||
-I$(srcdir)/../commandhandler/src \
|
||||
$(NULL)
|
||||
|
||||
ifdef MOZ_PROFILESHARING
|
||||
SHARED_LIBRARY_LIBS += $(DIST)/lib/$(LIB_PREFIX)profilesharingsetup_s.$(LIB_SUFFIX)
|
||||
LOCAL_INCLUDES += -I$(srcdir)/../profilesharingsetup/src
|
||||
endif
|
||||
|
||||
ifeq ($(MOZ_GFX_TOOLKIT),os2)
|
||||
LOCAL_INCLUDES += -I$(srcdir)/../printingui/src/os2
|
||||
endif
|
||||
|
||||
ifneq (,$(filter gtk gtk2 xlib beos photon qt, $(MOZ_WIDGET_TOOLKIT)))
|
||||
LOCAL_INCLUDES += -I$(srcdir)/../printingui/src/unixshared
|
||||
endif
|
||||
|
||||
ifeq ($(MOZ_GFX_TOOLKIT),windows)
|
||||
LOCAL_INCLUDES += -I$(srcdir)/../printingui/src/win
|
||||
OS_LIBS += $(call EXPAND_LIBNAME,winspool comdlg32)
|
||||
endif
|
||||
|
||||
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
||||
LOCAL_INCLUDES += -I$(srcdir)/../printingui/src/mac
|
||||
endif
|
||||
|
||||
EXTRA_DSO_LIBS = gkgfx
|
||||
|
||||
EXTRA_DSO_LDOPTS = \
|
||||
$(LIBS_DIR) \
|
||||
$(EXTRA_DSO_LIBS) \
|
||||
$(MOZ_UNICHARUTIL_LIBS) \
|
||||
$(MOZ_COMPONENT_LIBS) \
|
||||
$(MOZ_JS_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
||||
EXTRA_DSO_LDOPTS += \
|
||||
$(TK_LIBS) \
|
||||
$(NULL)
|
||||
endif
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
@@ -1,23 +0,0 @@
|
||||
[gecko]
|
||||
#if SHARED_LIBRARY
|
||||
dist/bin/components/@SHARED_LIBRARY@
|
||||
#else
|
||||
!staticcomp @LIBRARY@ @MODULE_NAME@
|
||||
#endif
|
||||
!xpt dist/bin/components/commandhandler.xpt
|
||||
!xpt dist/bin/components/find.xpt
|
||||
!xpt dist/bin/components/jsconsole.xpt
|
||||
!xpt dist/bin/components/helperAppDlg.xpt
|
||||
!xpt dist/bin/components/progressDlg.xpt
|
||||
!xpt dist/bin/components/webbrowserpersist.xpt
|
||||
!xpt dist/bin/components/windowwatcher.xpt
|
||||
!xpt dist/bin/components/embed_base.xpt
|
||||
#if MOZ_PROFILESHARING
|
||||
!xpt dist/bin/components/profilesharingsetup.xpt
|
||||
#endif
|
||||
|
||||
# embedders may want to ship these components also
|
||||
[xpfe-browser browser]
|
||||
dist/bin/components/nsHelperAppDlg.js
|
||||
dist/bin/components/nsProgressDialog.js
|
||||
!xpt dist/bin/components/helperAppDlg.xpt
|
||||
@@ -1,70 +0,0 @@
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications.
|
||||
# Portions created by the Initial Developer are Copyright (C) 2001
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
DEPTH = ../../../../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
ifdef MOZ_DEBUG
|
||||
BUILDSTYLE = Development
|
||||
else
|
||||
BUILDSTYLE = Deployment
|
||||
endif
|
||||
|
||||
MODULE = printpde
|
||||
PACKAGE_FILE = printpde.pkg
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
ABS_topsrcdir := $(shell cd $(topsrcdir); pwd)
|
||||
ifneq ($(ABS_topsrcdir),$(MOZ_BUILD_ROOT))
|
||||
export::
|
||||
rsync -a --exclude .DS_Store --exclude "CVS/" $(srcdir)/PrintPDE.pbproj .
|
||||
ln -fs $(srcdir)/src
|
||||
ln -fs $(srcdir)/res
|
||||
ln -fs $(srcdir)/public
|
||||
endif
|
||||
|
||||
libs::
|
||||
$(PBBUILD) -buildstyle $(BUILDSTYLE) install
|
||||
mkdir -p $(DIST)/package
|
||||
cp -R build/UninstalledProducts/PrintPDE.plugin $(DIST)/package/
|
||||
|
||||
clean clobber::
|
||||
rm -rf build
|
||||
@@ -1,7 +0,0 @@
|
||||
[xpfe-browser]
|
||||
dist/package/PrintPDE.plugin/Contents/Info.plist approot/Plug-Ins/PrintPDE.plugin/Contents/Info.plist
|
||||
dist/package/PrintPDE.plugin/Contents/MacOS/PrintPDE approot/Plug-Ins/PrintPDE.plugin/Contents/MacOS/PrintPDE
|
||||
dist/package/PrintPDE.plugin/Contents/Resources/English.lproj/Localizable.strings approot/Plug-Ins/PrintPDE.plugin/Contents/Resources/English.lproj/Localizable.strings
|
||||
dist/package/PrintPDE.plugin/Contents/Resources/English.lproj/PrintPDE.nib/classes.nib approot/Plug-Ins/PrintPDE.plugin/Contents/Resources/English.lproj/PrintPDE.nib/classes.nib
|
||||
dist/package/PrintPDE.plugin/Contents/Resources/English.lproj/PrintPDE.nib/info.nib approot/Plug-Ins/PrintPDE.plugin/Contents/Resources/English.lproj/PrintPDE.nib/info.nib
|
||||
dist/package/PrintPDE.plugin/Contents/Resources/English.lproj/PrintPDE.nib/objects.xib approot/Plug-Ins/PrintPDE.plugin/Contents/Resources/English.lproj/PrintPDE.nib/objects.xib
|
||||
@@ -1,46 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is the Mozilla browser.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Christopher
|
||||
# Blizzard. Portions created by Christopher Blizzard
|
||||
# Copyright (C) 1999, Christopher Blizzard. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
DEPTH = ../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
libs:: embed-jar.mn
|
||||
ifneq (jar,$(MOZ_CHROME_FILE_FORMAT))
|
||||
$(PERL) -I$(srcdir) $(srcdir)/gen_mn.pl -manifest $(MOZILLA_DIR)/embedding/config/embed-jar.mn -mozpath $(MOZILLA_DIR) -chrome $(DIST)/bin/chrome > $(MOZILLA_DIR)/embedding/config/embed-tmp.mn
|
||||
$(PERL) -I$(MOZILLA_DIR)/config $(MOZILLA_DIR)/config/make-jars.pl -a -v -f $(MOZ_CHROME_FILE_FORMAT) -d $(DIST)/bin/chrome -s $(DIST)/bin/chrome < $(MOZILLA_DIR)/embedding/config/embed-tmp.mn
|
||||
-$(RM) -f $(MOZILLA_DIR)/embedding/config/embed-tmp.mn
|
||||
else
|
||||
-$(RM) -rf $(DIST)/Embed/tmpchrome
|
||||
for f in $(DIST)/bin/chrome/*.jar; do \
|
||||
b=`basename $$f | sed -e 's|.jar$$||'` ; \
|
||||
echo "$$b" ; \
|
||||
$(NSINSTALL) -D $(DIST)/Embed/tmpchrome/$$b ;\
|
||||
$(UNZIP) -q -o -d $(DIST)/Embed/tmpchrome/$$b $$f ; \
|
||||
done
|
||||
$(PERL) -I$(srcdir) $(srcdir)/gen_mn.pl -manifest $(MOZILLA_DIR)/embedding/config/embed-jar.mn -mozpath $(MOZILLA_DIR) -chrome $(DIST)/Embed/tmpchrome > $(MOZILLA_DIR)/embedding/config/embed-tmp.mn
|
||||
$(PERL) -I$(MOZILLA_DIR)/config $(MOZILLA_DIR)/config/make-jars.pl -a -v -f $(MOZ_CHROME_FILE_FORMAT) -d $(DIST)/bin/chrome -s $(DIST)/Embed/tmpchrome -z $(ZIP) < $(MOZILLA_DIR)/embedding/config/embed-tmp.mn
|
||||
-$(RM) -f $(MOZILLA_DIR)/embedding/config/embed-tmp.mn
|
||||
-$(RM) -rf $(DIST)/Embed/tmpchrome
|
||||
endif
|
||||
@@ -1,13 +0,0 @@
|
||||
# gre-support is also included by various embedding packages
|
||||
[gre-support]
|
||||
dist/bin/chrome/embed.jar
|
||||
@topsrcdir@/embedding/config/installed-chrome.txt dist/bin/chrome/installed-chrome.txt
|
||||
|
||||
[gtkembed mfcembed winembed minimo]
|
||||
!touch dist/bin/.autoreg
|
||||
@topsrcdir@/embedding/config/readme.html dist/bin/readme.html
|
||||
!optional @topsrcdir@/embedding/config/all.js dist/bin/defaults/pref/all.js
|
||||
@topsrcdir@/embedding/config/installed-chrome.txt dist/bin/chrome/installed-chrome.txt
|
||||
|
||||
[unpackaged-files]
|
||||
dist/bin/chrome/embed-sample.jar
|
||||
@@ -1,61 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is the Mozilla browser.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Christopher
|
||||
# Blizzard. Portions created by Christopher Blizzard
|
||||
# Copyright (C) 1999, Christopher Blizzard. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
DEPTH = ../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
MODULE = embed_lite
|
||||
LIBRARY_NAME = embed_lite
|
||||
IS_COMPONENT = 1
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
PACKAGE_FILE = embedlite.pkg
|
||||
|
||||
REQUIRES = xpcom \
|
||||
string \
|
||||
content \
|
||||
necko \
|
||||
pref \
|
||||
history \
|
||||
$(NULL)
|
||||
|
||||
CPPSRCS = \
|
||||
nsEmbedChromeRegistry.cpp \
|
||||
nsEmbedGlobalHistory.cpp \
|
||||
nsEmbedLiteModule.cpp \
|
||||
$(NULL)
|
||||
|
||||
# bring in the chrome protocol handler
|
||||
# LOBJS = $(topsrcdir)/rdf/chrome/src/nsChromeProtocolHandler.$(OBJ_SUFFIX)
|
||||
|
||||
|
||||
LOCAL_INCLUDES = -I$(topsrcdir)/rdf/chrome/src
|
||||
|
||||
EXTRA_DSO_LDOPTS = \
|
||||
$(MOZ_COMPONENT_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
NO_DIST_INSTALL = 1
|
||||
NO_INSTALL = 1
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
@@ -1,6 +0,0 @@
|
||||
[winembed]
|
||||
#if SHARED_LIBRARY
|
||||
embedding/lite/@SHARED_LIBRARY@ dist/bin/components/@SHARED_LIBRARY@
|
||||
#else
|
||||
!staticcomp @LIBRARY@ @MODULE_NAME@
|
||||
#endif
|
||||
@@ -1,73 +0,0 @@
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is Minimo.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Doug Turner <dougt@meer.net>.
|
||||
# Portions created by the Initial Developer are Copyright (C) 2003
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE_NAME = chromelite
|
||||
MODULE = chrmlite
|
||||
LIBRARY_NAME = chrmlite
|
||||
|
||||
IS_COMPONENT = 1
|
||||
EXPORT_LIBRARY = 1
|
||||
|
||||
REQUIRES = \
|
||||
layout \
|
||||
content \
|
||||
necko \
|
||||
xpcom \
|
||||
string \
|
||||
uconv \
|
||||
$(NULL)
|
||||
|
||||
CPPSRCS = \
|
||||
nsSimpleChromeHandler.cpp \
|
||||
nsSimpleChromeRegistry.cpp \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DSO_LDOPTS += $(MOZ_COMPONENT_LIBS) -L$(DIST)/bin/components -lnecko
|
||||
|
||||
LOCAL_INCLUDES = \
|
||||
-I$(topsrcdir)/netwerk/base/src \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
@@ -1,207 +0,0 @@
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: Mozilla-sample-code 1.0
|
||||
#
|
||||
# Copyright (c) 2002 Netscape Communications Corporation and
|
||||
# other contributors
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
# copy of this Mozilla sample software and associated documentation files
|
||||
# (the "Software"), to deal in the Software without restriction, including
|
||||
# without limitation the rights to use, copy, modify, merge, publish,
|
||||
# distribute, sublicense, and/or sell copies of the Software, and to permit
|
||||
# persons to whom the Software is furnished to do so, subject to the
|
||||
# following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be included
|
||||
# in all copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
# DEALINGS IN THE SOFTWARE.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
PROGRAM = mfcembed$(BIN_SUFFIX)
|
||||
RESFILE = MfcEmbed.res
|
||||
|
||||
MODULE = mfcEmbed
|
||||
PACKAGE_FILE = mfcembed.pkg
|
||||
|
||||
# comment this out if for some reason you want to link against xpcom
|
||||
# directly instead of using the standalone glue
|
||||
ifndef BUILD_STATIC_LIBS
|
||||
GRE_BUILD = 1
|
||||
endif
|
||||
|
||||
ifdef GRE_BUILD
|
||||
DEFINES += -DXPCOM_GLUE
|
||||
endif
|
||||
|
||||
REQUIRES = \
|
||||
xpcom_obsolete \
|
||||
xpcom \
|
||||
string \
|
||||
necko \
|
||||
webbrwsr \
|
||||
widget \
|
||||
docshell \
|
||||
dom \
|
||||
uriloader \
|
||||
embed_base \
|
||||
webshell \
|
||||
shistory \
|
||||
pref \
|
||||
profile \
|
||||
profdirserviceprovider \
|
||||
find \
|
||||
gfx \
|
||||
windowwatcher \
|
||||
layout \
|
||||
webbrowserpersist \
|
||||
composer \
|
||||
commandhandler \
|
||||
imglib2 \
|
||||
webbrwsr \
|
||||
editor \
|
||||
$(NULL)
|
||||
|
||||
ifdef NS_TRACE_MALLOC
|
||||
REQUIRES += tracemalloc
|
||||
endif
|
||||
|
||||
ifdef MOZ_PROFILESHARING
|
||||
REQUIRES += profilesharingsetup
|
||||
endif
|
||||
|
||||
CPPSRCS = \
|
||||
CCustomPromptDialog.cpp \
|
||||
CMarginHeaderFooter.cpp \
|
||||
CFormatOptionTab.cpp \
|
||||
CPageSetupPropSheet.cpp \
|
||||
MfcEmbed.cpp \
|
||||
BrowserFrm.cpp \
|
||||
EditorFrm.cpp \
|
||||
BrowserFrameGlue.cpp \
|
||||
BrowserView.cpp \
|
||||
BrowserImpl.cpp \
|
||||
BrowserImplWebPrgrsLstnr.cpp \
|
||||
BrowserImplCtxMenuLstnr.cpp \
|
||||
BrowserToolTip.cpp \
|
||||
Dialogs.cpp \
|
||||
ProfileMgr.cpp \
|
||||
ProfilesDlg.cpp \
|
||||
winEmbedFileLocProvider.cpp \
|
||||
MostRecentUrls.cpp \
|
||||
Preferences.cpp \
|
||||
StdAfx.cpp \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DSO_LIBS = embed_base_s profdirserviceprovider_s
|
||||
|
||||
ifdef NS_TRACE_MALLOC
|
||||
EXTRA_DSO_LIBS += tracemalloc
|
||||
endif
|
||||
|
||||
LIBS = \
|
||||
$(EXTRA_DSO_LIBS) \
|
||||
$(MOZ_UNICHARUTIL_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
ifdef GRE_BUILD
|
||||
LIBS += \
|
||||
$(DIST)/lib/$(LIB_PREFIX)string_s.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)string_obsolete_s.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)xpcomglue.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)embedstring_s.$(LIB_SUFFIX) \
|
||||
$(NULL)
|
||||
else
|
||||
LIBS += $(XPCOM_LIBS)
|
||||
ifdef BUILD_STATIC_LIBS
|
||||
LIBS += $(MOZ_JS_LIBS)
|
||||
endif
|
||||
endif
|
||||
|
||||
LIBS += $(NSPR_LIBS)
|
||||
|
||||
OS_LIBS += \
|
||||
ole32.lib \
|
||||
comdlg32.lib \
|
||||
shell32.lib \
|
||||
version.lib \
|
||||
$(NULL)
|
||||
|
||||
LOCAL_INCLUDES = -I$(srcdir)/components
|
||||
|
||||
#
|
||||
# Control the default heap size.
|
||||
# This is the heap returned by GetProcessHeap().
|
||||
# As we use the CRT heap, the default size is too large and wastes VM.
|
||||
#
|
||||
# The default heap size is 1MB on Win32.
|
||||
# The heap will grow if need be.
|
||||
#
|
||||
# Set it to 256k. See bug 127069.
|
||||
#
|
||||
LDFLAGS += /HEAP:0x40000
|
||||
|
||||
|
||||
include $(topsrcdir)/config/config.mk
|
||||
|
||||
# Force applications to be built non-statically
|
||||
# when building the mozcomps meta component
|
||||
ifneq (,$(filter mozcomps,$(MOZ_META_COMPONENTS)))
|
||||
BUILD_STATIC_LIBS=
|
||||
BUILD_SHARED_LIBS=1
|
||||
endif
|
||||
|
||||
ifdef BUILD_STATIC_LIBS
|
||||
|
||||
include $(topsrcdir)/config/static-config.mk
|
||||
|
||||
EXTRA_DEPS += $(STATIC_EXTRA_DEPS)
|
||||
EXTRA_DSO_LIBS += $(STATIC_EXTRA_DSO_LIBS)
|
||||
ifneq ($(OS_ARCH),WINNT)
|
||||
EXTRA_LIBS += -L$(DEPTH)/dist/lib/components
|
||||
endif # !WINNT
|
||||
EXTRA_LIBS += $(EXTRA_DSO_LIBS) $(STATIC_EXTRA_LIBS)
|
||||
DEFINES += $(STATIC_DEFINES)
|
||||
CPPSRCS += $(STATIC_CPPSRCS)
|
||||
|
||||
endif # BUILD_STATIC_LIBS
|
||||
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
|
||||
ifdef BUILD_STATIC_LIBS
|
||||
include $(topsrcdir)/config/static-rules.mk
|
||||
endif # BUILD_STATIC_LIBS
|
||||
|
||||
# UNICODE
|
||||
ifdef BUILD_UNICODE_MFCEMBED
|
||||
CXXFLAGS += /D "_UNICODE"
|
||||
LDFLAGS += /ENTRY:wWinMainCRTStartup
|
||||
endif
|
||||
|
||||
CXXFLAGS += /D "_AFXDLL" /D "USE_SINGLE_SIGN_ON" -DMOZILLA_VERSION=\"$(MOZILLA_VERSION)\"
|
||||
LDFLAGS += /SUBSYSTEM:windows
|
||||
|
||||
libs:: mfcembed.htm
|
||||
$(INSTALL) $^ $(DIST)/bin
|
||||
|
||||
install:: mfcembed.htm
|
||||
$(SYSINSTALL) $(IFLAGS1) $^ $(DESTDIR)$(mozappdir)
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
[mfcembed]
|
||||
dist/bin/mfcembed.exe
|
||||
dist/bin/mfcEmbedComponents.dll
|
||||
dist/bin/mfcembed.htm
|
||||
@@ -1,130 +0,0 @@
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: Mozilla-sample-code 1.0
|
||||
#
|
||||
# Copyright (c) 2002 Netscape Communications Corporation and
|
||||
# other contributors
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
# copy of this Mozilla sample software and associated documentation files
|
||||
# (the "Software"), to deal in the Software without restriction, including
|
||||
# without limitation the rights to use, copy, modify, merge, publish,
|
||||
# distribute, sublicense, and/or sell copies of the Software, and to permit
|
||||
# persons to whom the Software is furnished to do so, subject to the
|
||||
# following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be included
|
||||
# in all copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
# DEALINGS IN THE SOFTWARE.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
PROGRAM = winEmbed$(BIN_SUFFIX)
|
||||
RESFILE = winEmbed.res
|
||||
|
||||
MODULE = winEmbed
|
||||
|
||||
PACKAGE_FILE = winembed.pkg
|
||||
|
||||
REQUIRES = xpcom \
|
||||
string \
|
||||
embed_base \
|
||||
webbrwsr \
|
||||
webshell \
|
||||
windowwatcher \
|
||||
profile \
|
||||
necko \
|
||||
docshell \
|
||||
dom \
|
||||
widget \
|
||||
uriloader \
|
||||
shistory \
|
||||
webbrowserpersist \
|
||||
gfx \
|
||||
profdirserviceprovider \
|
||||
$(NULL)
|
||||
|
||||
CPPSRCS = \
|
||||
winEmbed.cpp \
|
||||
WebBrowserChrome.cpp \
|
||||
WindowCreator.cpp \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DSO_LIBS = embed_base_s profdirserviceprovider_s gkgfx
|
||||
|
||||
LIBS = \
|
||||
$(EXTRA_DSO_LIBS) \
|
||||
$(MOZ_UNICHARUTIL_LIBS) \
|
||||
$(XPCOM_LIBS) \
|
||||
$(NSPR_LIBS) \
|
||||
$(MOZ_JS_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
LOCAL_INCLUDES = -I$(srcdir)
|
||||
|
||||
OS_LIBS += $(call EXPAND_LIBNAME,ole32 comdlg32 shell32 version)
|
||||
|
||||
include $(topsrcdir)/config/config.mk
|
||||
|
||||
# Force applications to be built non-statically
|
||||
# when building the mozcomps meta component
|
||||
ifneq (,$(filter mozcomps,$(MOZ_META_COMPONENTS)))
|
||||
BUILD_STATIC_LIBS=
|
||||
BUILD_SHARED_LIBS=1
|
||||
endif
|
||||
|
||||
ifdef BUILD_STATIC_LIBS
|
||||
|
||||
include $(topsrcdir)/config/static-config.mk
|
||||
|
||||
EXTRA_DEPS += $(STATIC_EXTRA_DEPS)
|
||||
EXTRA_DSO_LIBS += $(STATIC_EXTRA_DSO_LIBS)
|
||||
ifneq ($(OS_ARCH),WINNT)
|
||||
EXTRA_LIBS += -L$(DEPTH)/dist/lib/components
|
||||
endif # !WINNT
|
||||
EXTRA_LIBS += $(EXTRA_DSO_LIBS) $(STATIC_EXTRA_LIBS)
|
||||
DEFINES += $(STATIC_DEFINES)
|
||||
CPPSRCS += $(STATIC_CPPSRCS)
|
||||
|
||||
endif # BUILD_STATIC_LIBS
|
||||
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
#
|
||||
# Control the default heap size.
|
||||
# This is the heap returned by GetProcessHeap().
|
||||
# As we use the CRT heap, the default size is too large and wastes VM.
|
||||
#
|
||||
# The default heap size is 1MB on Win32.
|
||||
# The heap will grow if need be.
|
||||
#
|
||||
# Set it to 256k. See bug 127069.
|
||||
#
|
||||
ifndef GNU_CC
|
||||
LDFLAGS += /HEAP:0x40000
|
||||
endif
|
||||
|
||||
# Get rid of console window
|
||||
ifdef GNU_CC
|
||||
LDFLAGS += -mwindows
|
||||
endif
|
||||
|
||||
ifdef BUILD_STATIC_LIBS
|
||||
include $(topsrcdir)/config/static-rules.mk
|
||||
endif # BUILD_STATIC_LIBS
|
||||
@@ -1,2 +0,0 @@
|
||||
[winembed]
|
||||
dist/bin/winEmbed.exe
|
||||
@@ -1,35 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
DEPTH = ../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = content-packs
|
||||
PACKAGE_FILE = content-packs.pkg
|
||||
|
||||
DIRS = resources
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
[xpfe-browser]
|
||||
dist/bin/chrome/content-packs.jar
|
||||
@@ -1,73 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
DEPTH = ../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = cookie
|
||||
LIBRARY_NAME = cookie
|
||||
EXPORT_LIBRARY = 1
|
||||
IS_COMPONENT = 1
|
||||
MODULE_NAME = nsCookieModule
|
||||
GRE_MODULE = 1
|
||||
|
||||
PACKAGE_FILE = cookie.pkg
|
||||
|
||||
REQUIRES = xpcom \
|
||||
string \
|
||||
necko \
|
||||
dom \
|
||||
widget \
|
||||
content \
|
||||
pref \
|
||||
uriloader \
|
||||
windowwatcher \
|
||||
docshell \
|
||||
appshell \
|
||||
$(NULL)
|
||||
|
||||
CPPSRCS = \
|
||||
nsModuleFactory.cpp \
|
||||
nsPermission.cpp \
|
||||
nsImgManager.cpp \
|
||||
nsPermissionManager.cpp \
|
||||
nsPopupWindowManager.cpp \
|
||||
nsCookiePromptService.cpp \
|
||||
nsCookiePermission.cpp \
|
||||
$(NULL)
|
||||
|
||||
XPIDLSRCS = \
|
||||
nsIImgManager.idl \
|
||||
nsIPermissionManager.idl \
|
||||
nsIPermission.idl \
|
||||
nsICookieAcceptDialog.idl \
|
||||
nsICookiePromptService.idl \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DSO_LDOPTS = \
|
||||
$(MOZ_COMPONENT_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
@@ -1,12 +0,0 @@
|
||||
[xpfe-browser browser gtkembed mfcembed winembed]
|
||||
#if SHARED_LIBRARY
|
||||
dist/bin/components/@SHARED_LIBRARY@
|
||||
#else
|
||||
!staticcomp @LIBRARY@ @MODULE_NAME@
|
||||
#endif
|
||||
!xpt dist/bin/components/cookie.xpt
|
||||
|
||||
#if ENABLE_TESTS
|
||||
[gecko-tests]
|
||||
dist/bin/TestCookie@BINS@
|
||||
#endif
|
||||
@@ -1,34 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
DEPTH = ../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = help
|
||||
PACKAGE_FILE = help.pkg
|
||||
|
||||
DIRS = resources
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
@@ -1,2 +0,0 @@
|
||||
[xpfe-browser]
|
||||
dist/bin/chrome/help.jar
|
||||
@@ -1,71 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 2001 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
DEPTH=../../../..
|
||||
topsrcdir=@top_srcdir@
|
||||
srcdir=@srcdir@
|
||||
VPATH=@srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = inspector
|
||||
LIBRARY_NAME = inspector
|
||||
# Do not set EXPORT_LIBRARY as we do not want inspector in the static libs list
|
||||
#EXPORT_LIBRARY = 1
|
||||
FORCE_SHARED_LIB = 1
|
||||
ifneq ($(OS_ARCH),WINNT)
|
||||
SHORT_LIBNAME = inspectr
|
||||
endif
|
||||
|
||||
PACKAGE_FILE = inspector.pkg
|
||||
|
||||
REQUIRES = xpcom \
|
||||
string \
|
||||
gfx \
|
||||
layout \
|
||||
content \
|
||||
dom \
|
||||
widget \
|
||||
locale \
|
||||
necko \
|
||||
$(NULL)
|
||||
IS_COMPONENT = 1
|
||||
|
||||
CPPSRCS = \
|
||||
nsInspectorModule.cpp \
|
||||
$(NULL)
|
||||
|
||||
LOCAL_INCLUDES = -I$(srcdir)/../../base/src
|
||||
|
||||
EXTRA_DSO_LIBS = gkgfx
|
||||
|
||||
SHARED_LIBRARY_LIBS = \
|
||||
$(DIST)/lib/$(LIB_PREFIX)inspector_s.$(LIB_SUFFIX) \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DSO_LDOPTS += \
|
||||
$(LIBS_DIR) \
|
||||
$(EXTRA_DSO_LIBS) \
|
||||
$(MOZ_UNICHARUTIL_LIBS) \
|
||||
$(MOZ_COMPONENT_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
@@ -1,13 +0,0 @@
|
||||
[inspector]
|
||||
dist/bin/components/@SHARED_LIBRARY@
|
||||
dist/bin/components/inspector-cmdline.js
|
||||
!xpt dist/bin/components/inspector.xpt
|
||||
dist/bin/chrome/inspector.jar
|
||||
dist/bin/res/inspector/viewer-registry.rdf
|
||||
dist/bin/res/inspector/search-registry.rdf
|
||||
|
||||
[inspector-xpi]
|
||||
@topsrcdir@/extensions/inspector/build/install.js xpiroot/install.js
|
||||
|
||||
[inspector xpfe-browser]
|
||||
dist/bin/defaults/pref/inspector.js
|
||||
@@ -1,42 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License
|
||||
# Version 1.1 (the "License"); you may not use this file except in
|
||||
# compliance with the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is Mozilla IRC Extentions, including Basic Socket Library,
|
||||
# and JSIRC Library.
|
||||
#
|
||||
# The Initial Developer of the Original Code is New Dimensions Consulting,
|
||||
# Inc. Portions created by New Dimensions Consulting, Inc. Copyright (C) 1999
|
||||
# New Dimenstions Consulting, Inc. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# Robert Ginda, rginda@ndcico.com, original author
|
||||
#
|
||||
# Large LED icons (green-*, red-*, yellow-*) and Marble background (xtal.jpg)
|
||||
# Copyright (C) 1996, 1997 Jim Evins.
|
||||
# http://www.clark.net/pub/evins/Icons/
|
||||
#
|
||||
# Other Icons came from "Anthony's WWW Images"
|
||||
# http://www.cit.gu.edu.au/images/Images.html
|
||||
#
|
||||
|
||||
DEPTH = ../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = chatzilla
|
||||
PACKAGE_FILE = chatzilla.pkg
|
||||
|
||||
EXTRA_COMPONENTS = js/lib/chatzilla-service.js
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
@@ -1,6 +0,0 @@
|
||||
[chatzilla]
|
||||
dist/bin/chrome/chatzilla.jar
|
||||
dist/bin/components/chatzilla-service.js
|
||||
|
||||
[chatzilla-xpi]
|
||||
!preprocess xpiroot/install.js -E -Fsubstitution @topsrcdir@/xpinstall/packager/common/share.t @topsrcdir@/extensions/irc/install.jst
|
||||
@@ -1,28 +0,0 @@
|
||||
var err = initInstall("Chatzilla v0.5", "Chatzilla", "@XPI_VERSION@");
|
||||
logComment("initInstall: " + err);
|
||||
|
||||
addFile("Chatzilla service",
|
||||
"bin/components/chatzilla-service.js",
|
||||
getFolder("Components"),
|
||||
"");
|
||||
|
||||
addFile("Chatzilla Chrome",
|
||||
"bin/chrome/chatzilla.jar", // jar source folder
|
||||
getFolder("Chrome"), // target folder
|
||||
""); // target subdir
|
||||
|
||||
addDirectory("Chatzilla Icons",
|
||||
"bin/chrome/icons", // jar source folder
|
||||
getFolder("Chrome", "icons"), // target folder
|
||||
""); // target subdir
|
||||
|
||||
registerChrome(PACKAGE | DELAYED_CHROME, getFolder("Chrome","chatzilla.jar"), "content/chatzilla/");
|
||||
registerChrome(SKIN | DELAYED_CHROME, getFolder("Chrome","chatzilla.jar"), "skin/modern/chatzilla/");
|
||||
registerChrome(LOCALE | DELAYED_CHROME, getFolder("Chrome","chatzilla.jar"), "locale/en-US/chatzilla/");
|
||||
|
||||
err = getLastError();
|
||||
if (err==SUCCESS)
|
||||
performInstall();
|
||||
else
|
||||
cancelInstall(err);
|
||||
|
||||
@@ -1,70 +0,0 @@
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is the Platform for Privacy Preferences.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications Corporation.
|
||||
# Portions created by the Initial Developer are Copyright (C) 2002
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s): Harish Dhurvasula <harishd@netscape.com>
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = p3p
|
||||
LIBRARY_NAME = p3p
|
||||
EXPORT_LIBRARY = 1
|
||||
IS_COMPONENT = 1
|
||||
MODULE_NAME = nsP3PModule
|
||||
|
||||
PACKAGE_FILE = p3p.pkg
|
||||
|
||||
REQUIRES = xpcom \
|
||||
string \
|
||||
necko \
|
||||
xmlextras \
|
||||
dom \
|
||||
pref \
|
||||
$(NULL)
|
||||
|
||||
CPPSRCS = \
|
||||
nsP3PService.cpp \
|
||||
nsP3PUtils.cpp \
|
||||
nsPolicyReference.cpp \
|
||||
nsCompactPolicy.cpp \
|
||||
nsP3PModule.cpp \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DSO_LDOPTS += $(MOZ_COMPONENT_LIBS)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
@@ -1,9 +0,0 @@
|
||||
# I don't think that this should be gecko, we should let apps ship
|
||||
# this if they want it --BDS
|
||||
[gecko]
|
||||
#if SHARED_LIBRARY
|
||||
dist/bin/components/@SHARED_LIBRARY@
|
||||
#else
|
||||
!staticcomp @LIBRARY@ @MODULE_NAME@
|
||||
#endif
|
||||
!xpt dist/bin/components/p3p.xpt
|
||||
@@ -1,100 +0,0 @@
|
||||
# Version: NPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public License
|
||||
# Version 1.1 (the "License"); you may not use this file except in
|
||||
# compliance with the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications Corporation.
|
||||
# Portions created by the Initial Developer are Copyright (C) 1998
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# Mitesh Shah <mitesh@netscape.com>
|
||||
# Brian Nesse <bnesse@netscape.com>
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the NPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the NPL, the GPL or the LGPL.
|
||||
|
||||
DEPTH = ../../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = autoconfig
|
||||
LIBRARY_NAME = autoconfig
|
||||
ifneq ($(OS_ARCH),WINNT)
|
||||
SHORT_LIBNAME = autocfg
|
||||
endif
|
||||
EXPORT_LIBRARY = 1
|
||||
IS_COMPONENT = 1
|
||||
MODULE_NAME = nsAutoConfigModule
|
||||
|
||||
PACKAGE_FILE = autoconfig.pkg
|
||||
|
||||
REQUIRES = xpcom string intl js xpconnect necko profile pref appshell embedcomponents windowwatcher
|
||||
|
||||
include $(topsrcdir)/config/config.mk
|
||||
|
||||
CPPSRCS = nsReadConfig.cpp \
|
||||
nsAutoConfig.cpp \
|
||||
nsConfigFactory.cpp \
|
||||
nsJSConfigTriggers.cpp \
|
||||
$(NULL)
|
||||
|
||||
ifdef MOZ_LDAP_XPCOM
|
||||
REQUIRES += mozldap
|
||||
DEFINES += -DMOZ_LDAP_XPCOM
|
||||
CPPSRCS += nsLDAPSyncQuery.cpp
|
||||
endif
|
||||
|
||||
|
||||
EXTRA_DSO_LDOPTS = \
|
||||
$(LIBS_DIR) \
|
||||
$(MOZ_JS_LIBS) \
|
||||
$(MOZ_COMPONENT_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
AUTOCFG_JS_EXPORTS = \
|
||||
$(srcdir)/prefcalls.js \
|
||||
$(NULL)
|
||||
|
||||
ifneq (,$(filter mac cocoa,$(MOZ_WIDGET_TOOLKIT)))
|
||||
AUTOCFG_JS_EXPORTS += $(srcdir)/mac/platform.js
|
||||
else
|
||||
ifeq ($(MOZ_WIDGET_TOOLKIT), windows)
|
||||
AUTOCFG_JS_EXPORTS += $(srcdir)/win/platform.js
|
||||
else
|
||||
ifeq ($(MOZ_WIDGET_TOOLKIT), os2)
|
||||
AUTOCFG_JS_EXPORTS += $(srcdir)/os2/platform.js
|
||||
else
|
||||
ifeq ($(MOZ_WIDGET_TOOLKIT), beos)
|
||||
AUTOCFG_JS_EXPORTS += $(srcdir)/beos/platform.js
|
||||
else
|
||||
AUTOCFG_JS_EXPORTS += $(srcdir)/unix/platform.js
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
[xpfe-browser]
|
||||
#if SHARED_LIBRARY
|
||||
dist/bin/components/@SHARED_LIBRARY@
|
||||
#else
|
||||
!staticcomp @LIBRARY@ @MODULE_NAME@
|
||||
#endif
|
||||
!xpt dist/bin/components/autoconfig.xpt
|
||||
|
||||
# odd place to put this, but...
|
||||
dist/bin/components/nsProxyAutoConfig.js
|
||||
|
||||
dist/bin/defaults/autoconfig/prefcalls.js
|
||||
dist/bin/defaults/autoconfig/platform.js
|
||||
@@ -1,87 +0,0 @@
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is Mozilla Spellchecker Component.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# David Einstein.
|
||||
# Portions created by the Initial Developer are Copyright (C) 2001
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s): David Einstein <Deinst@world.std.com>
|
||||
# Aleksey Nogin <ayn2@cornell.edu>
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = spellchecker
|
||||
LIBRARY_NAME = spellchecker
|
||||
SHORT_LIBNAME = spellchk
|
||||
# Do not set EXPORT_LIBRARY as we do not want spellcheck in the static libs list
|
||||
#EXPORT_LIBRARY = 1
|
||||
FORCE_SHARED_LIB = 1
|
||||
IS_COMPONENT = 1
|
||||
|
||||
PACKAGE_FILE = spellcheck.pkg
|
||||
|
||||
REQUIRES = xpcom \
|
||||
string \
|
||||
editor \
|
||||
content \
|
||||
layout \
|
||||
dom \
|
||||
necko \
|
||||
widget \
|
||||
pref \
|
||||
gfx \
|
||||
txtsvc \
|
||||
uconv \
|
||||
unicharutil \
|
||||
$(NULL)
|
||||
|
||||
CPPSRCS = \
|
||||
mozSpellCheckerFactory.cpp \
|
||||
mozSpellChecker.cpp \
|
||||
mozPersonalDictionary.cpp \
|
||||
mozEnglishWordUtils.cpp \
|
||||
mozGenericWordUtils.cpp \
|
||||
mozSpellI18NManager.cpp \
|
||||
nsAVLTree.cpp \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DSO_LDOPTS = \
|
||||
$(LIBS_DIR) \
|
||||
$(MOZ_COMPONENT_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
[spellcheck]
|
||||
dist/bin/components/@SHARED_LIBRARY@
|
||||
dist/bin/components/@DLLP@myspell@DLLS@
|
||||
!xpt dist/bin/components/spellchecker.xpt
|
||||
|
||||
[spellcheck-enUS]
|
||||
dist/bin/components/myspell/en-US.aff
|
||||
dist/bin/components/myspell/en-US.dic
|
||||
@@ -1,152 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is Transformiix XSLT Processor.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Axel Hecht.
|
||||
# Portions created by Axel Hecht are Copyright (C) Axel Hecht.
|
||||
# All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
# Axel Hecht <axel@pike.org>
|
||||
#
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = transformiix
|
||||
LIBRARY_NAME = transformiix
|
||||
EXPORT_LIBRARY = 1
|
||||
ifneq ($(OS_ARCH),WINNT)
|
||||
SHORT_LIBNAME = t8iix
|
||||
endif
|
||||
|
||||
PACKAGE_FILE = transformiix.pkg
|
||||
|
||||
REQUIRES = xpcom \
|
||||
string \
|
||||
dom \
|
||||
content \
|
||||
widget \
|
||||
necko \
|
||||
js \
|
||||
xpconnect \
|
||||
caps \
|
||||
locale \
|
||||
unicharutil \
|
||||
htmlparser \
|
||||
webshell \
|
||||
docshell \
|
||||
layout \
|
||||
uconv \
|
||||
windowwatcher \
|
||||
mimetype \
|
||||
intl \
|
||||
$(NULL)
|
||||
IS_COMPONENT = 1
|
||||
MODULE_NAME = TransformiixModule
|
||||
|
||||
|
||||
CPPSRCS = XSLTProcessorModule.cpp
|
||||
LOBJS = ../source/base/Double.$(OBJ_SUFFIX) \
|
||||
../source/base/List.$(OBJ_SUFFIX) \
|
||||
../source/base/SimpleErrorObserver.$(OBJ_SUFFIX) \
|
||||
../source/base/txAtoms.$(OBJ_SUFFIX) \
|
||||
../source/base/txExpandedNameMap.$(OBJ_SUFFIX) \
|
||||
../source/base/txNamespaceMap.$(OBJ_SUFFIX) \
|
||||
../source/base/txURIUtils.$(OBJ_SUFFIX) \
|
||||
../source/xpath/AdditiveExpr.$(OBJ_SUFFIX) \
|
||||
../source/xpath/AttributeValueTemplate.$(OBJ_SUFFIX) \
|
||||
../source/xpath/BooleanExpr.$(OBJ_SUFFIX) \
|
||||
../source/xpath/BooleanFunctionCall.$(OBJ_SUFFIX) \
|
||||
../source/xpath/BooleanResult.$(OBJ_SUFFIX) \
|
||||
../source/xpath/ExprLexer.$(OBJ_SUFFIX) \
|
||||
../source/xpath/ExprParser.$(OBJ_SUFFIX) \
|
||||
../source/xpath/FilterExpr.$(OBJ_SUFFIX) \
|
||||
../source/xpath/FunctionCall.$(OBJ_SUFFIX) \
|
||||
../source/xpath/LocationStep.$(OBJ_SUFFIX) \
|
||||
../source/xpath/MultiplicativeExpr.$(OBJ_SUFFIX) \
|
||||
../source/xpath/NodeSetFunctionCall.$(OBJ_SUFFIX) \
|
||||
../source/xpath/nsXPathEvaluator.$(OBJ_SUFFIX) \
|
||||
../source/xpath/nsXPathException.$(OBJ_SUFFIX) \
|
||||
../source/xpath/nsXPathExpression.$(OBJ_SUFFIX) \
|
||||
../source/xpath/nsXPathNSResolver.$(OBJ_SUFFIX) \
|
||||
../source/xpath/nsXPathResult.$(OBJ_SUFFIX) \
|
||||
../source/xpath/nsXPath1Scheme.$(OBJ_SUFFIX) \
|
||||
../source/xpath/NumberFunctionCall.$(OBJ_SUFFIX) \
|
||||
../source/xpath/NumberResult.$(OBJ_SUFFIX) \
|
||||
../source/xpath/PathExpr.$(OBJ_SUFFIX) \
|
||||
../source/xpath/PredicateList.$(OBJ_SUFFIX) \
|
||||
../source/xpath/RelationalExpr.$(OBJ_SUFFIX) \
|
||||
../source/xpath/RootExpr.$(OBJ_SUFFIX) \
|
||||
../source/xpath/StringFunctionCall.$(OBJ_SUFFIX) \
|
||||
../source/xpath/StringResult.$(OBJ_SUFFIX) \
|
||||
../source/xpath/txLiteralExpr.$(OBJ_SUFFIX) \
|
||||
../source/xpath/txMozillaXPathTreeWalker.$(OBJ_SUFFIX) \
|
||||
../source/xpath/txNameTest.$(OBJ_SUFFIX) \
|
||||
../source/xpath/txNodeSet.$(OBJ_SUFFIX) \
|
||||
../source/xpath/txNodeTypeTest.$(OBJ_SUFFIX) \
|
||||
../source/xpath/txForwardContext.$(OBJ_SUFFIX) \
|
||||
../source/xpath/txNodeSetContext.$(OBJ_SUFFIX) \
|
||||
../source/xpath/txResultRecycler.$(OBJ_SUFFIX) \
|
||||
../source/xpath/UnionExpr.$(OBJ_SUFFIX) \
|
||||
../source/xpath/UnaryExpr.$(OBJ_SUFFIX) \
|
||||
../source/xpath/VariableRefExpr.$(OBJ_SUFFIX) \
|
||||
../source/xml/XMLUtils.$(OBJ_SUFFIX) \
|
||||
../source/xml/parser/txXMLParser.$(OBJ_SUFFIX) \
|
||||
../source/xslt/txBufferingHandler.$(OBJ_SUFFIX) \
|
||||
../source/xslt/txOutputFormat.$(OBJ_SUFFIX) \
|
||||
../source/xslt/txExecutionState.$(OBJ_SUFFIX) \
|
||||
../source/xslt/txInstructions.$(OBJ_SUFFIX) \
|
||||
../source/xslt/txMozillaStylesheetCompiler.$(OBJ_SUFFIX) \
|
||||
../source/xslt/txMozillaTextOutput.$(OBJ_SUFFIX) \
|
||||
../source/xslt/txMozillaXSLTProcessor.$(OBJ_SUFFIX) \
|
||||
../source/xslt/txMozillaXMLOutput.$(OBJ_SUFFIX) \
|
||||
../source/xslt/txRtfHandler.$(OBJ_SUFFIX) \
|
||||
../source/xslt/txStylesheet.$(OBJ_SUFFIX) \
|
||||
../source/xslt/txStylesheetCompileHandlers.$(OBJ_SUFFIX) \
|
||||
../source/xslt/txStylesheetCompiler.$(OBJ_SUFFIX) \
|
||||
../source/xslt/txTextHandler.$(OBJ_SUFFIX) \
|
||||
../source/xslt/txToplevelItems.$(OBJ_SUFFIX) \
|
||||
../source/xslt/txUnknownHandler.$(OBJ_SUFFIX) \
|
||||
../source/xslt/txXSLTNumber.$(OBJ_SUFFIX) \
|
||||
../source/xslt/txXSLTNumberCounters.$(OBJ_SUFFIX) \
|
||||
../source/xslt/txXSLTPatterns.$(OBJ_SUFFIX) \
|
||||
../source/xslt/txXSLTProcessor.$(OBJ_SUFFIX) \
|
||||
../source/xslt/txPatternParser.$(OBJ_SUFFIX) \
|
||||
../source/xslt/functions/CurrentFunctionCall.$(OBJ_SUFFIX) \
|
||||
../source/xslt/functions/DocumentFunctionCall.$(OBJ_SUFFIX) \
|
||||
../source/xslt/functions/ElementAvailableFnCall.$(OBJ_SUFFIX) \
|
||||
../source/xslt/functions/FunctionAvailableFnCall.$(OBJ_SUFFIX) \
|
||||
../source/xslt/functions/GenerateIdFunctionCall.$(OBJ_SUFFIX) \
|
||||
../source/xslt/functions/SystemPropertyFunctionCall.$(OBJ_SUFFIX) \
|
||||
../source/xslt/functions/txFormatNumberFunctionCall.$(OBJ_SUFFIX) \
|
||||
../source/xslt/functions/txKeyFunctionCall.$(OBJ_SUFFIX) \
|
||||
../source/xslt/util/txNodeSorter.$(OBJ_SUFFIX) \
|
||||
../source/xslt/util/txXPathResultComparator.$(OBJ_SUFFIX) \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DSO_LDOPTS += \
|
||||
$(MOZ_UNICHARUTIL_LIBS) \
|
||||
$(MOZ_COMPONENT_LIBS) \
|
||||
$(MOZ_JS_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
INCLUDES += -I$(srcdir)/../source/xslt -I$(srcdir)/../source/base \
|
||||
-I$(srcdir)/../source/xml -I$(srcdir)/../source/xml/parser \
|
||||
-I$(srcdir)/../source/xpath -I$(srcdir)/../source/xslt/util \
|
||||
-I$(srcdir)/../source/xslt/functions
|
||||
@@ -1,12 +0,0 @@
|
||||
# right now this only packages the mozilla component
|
||||
# we can think about standalone too
|
||||
|
||||
# xxxbsmedberg: should this move to the GRE?
|
||||
# currently transformiix is not part of the default firebird
|
||||
# build, but that can be controlled by --enable-extensions
|
||||
[xpfe-browser browser]
|
||||
#if SHARED_LIBRARY
|
||||
dist/bin/components/@SHARED_LIBRARY@
|
||||
#else
|
||||
!staticcomp @LIBRARY@ @MODULE_NAME@
|
||||
#endif
|
||||
@@ -1,72 +0,0 @@
|
||||
# ***** BEGIN LICENSE BLOCK *****
|
||||
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License Version
|
||||
# 1.1 (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications Corporation.
|
||||
# Portions created by the Initial Developer are Copyright (C) 2002
|
||||
# the Initial Developer. All Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the terms of
|
||||
# either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
|
||||
# in which case the provisions of the GPL or the LGPL are applicable instead
|
||||
# of those above. If you wish to allow use of your version of this file only
|
||||
# under the terms of either the GPL or the LGPL, and not to allow others to
|
||||
# use your version of this file under the terms of the MPL, indicate your
|
||||
# decision by deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL or the LGPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this file under
|
||||
# the terms of any one of the MPL, the GPL or the LGPL.
|
||||
#
|
||||
# ***** END LICENSE BLOCK *****
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = tridentprofile
|
||||
LIBRARY_NAME = tridentprofile
|
||||
ifeq ($(OS_ARCH),WIN98)
|
||||
SHORT_LIBNAME = triprof
|
||||
endif
|
||||
EXPORT_LIBRARY = 1
|
||||
IS_COMPONENT = 1
|
||||
MODULE_NAME = nsTridentProfile
|
||||
|
||||
PACKAGE_FILE = tridentprofile.pkg
|
||||
|
||||
REQUIRES = xpcom \
|
||||
necko \
|
||||
string \
|
||||
pref \
|
||||
$(NULL)
|
||||
|
||||
CPPSRCS = \
|
||||
nsTridentProfileMigrator.cpp \
|
||||
nsModule.cpp \
|
||||
$(NULL)
|
||||
|
||||
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
|
||||
CPPSRCS += nsTridentPreferencesWin.cpp
|
||||
endif
|
||||
|
||||
EXTRA_DSO_LDOPTS += $(MOZ_COMPONENT_LIBS)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
@@ -1,7 +0,0 @@
|
||||
[xpfe-browser]
|
||||
#if SHARED_LIBRARY
|
||||
dist/bin/components/@SHARED_LIBRARY@
|
||||
#else
|
||||
!staticcomp @LIBRARY@ @MODULE_NAME@
|
||||
#endif
|
||||
!xpt dist/bin/components/tridentprofile.xpt
|
||||
@@ -1,87 +0,0 @@
|
||||
# The contents of this file are subject to the Mozilla Public License
|
||||
# Version 1.1 (the "License"); you may not use this file except in
|
||||
# compliance with the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
|
||||
# Software distributed under the License is distributed on an "AS IS"
|
||||
# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing rights and limitations
|
||||
# under the License.
|
||||
|
||||
# The Initial Developer of the Original Code is Aaron Leventhal.
|
||||
# Portions created by Aaron Leventhal are Copyright (C) 2001
|
||||
# Aaron Leventhal. All Rights Reserved.
|
||||
|
||||
# Alternatively, the contents of this file may be used under the terms
|
||||
# of the GNU General Public License (the "GPL"), in which case the
|
||||
# provisions of the GPL are applicable instead of those above. If you
|
||||
# wish to allow use of your version of this file only under the terms of
|
||||
# the GPL and not to allow others to use your version of this file under
|
||||
# the MPL, indicate your decision by deleting the provisions above and
|
||||
# replace them with the notice and other provisions required by the
|
||||
# GPL. If you do not delete the provisions above, a recipient may use
|
||||
# your version of this file under either the MPL or the GPL.
|
||||
|
||||
# Contributor(s):
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = typeaheadfind
|
||||
LIBRARY_NAME = typeaheadfind
|
||||
ifneq ($(OS_ARCH),WINNT)
|
||||
SHORT_LIBNAME = typahead
|
||||
endif
|
||||
GRE_MODULE = 1
|
||||
|
||||
PACKAGE_FILE = typeaheadfind.pkg
|
||||
|
||||
REQUIRES = appcomps \
|
||||
embedcomponents \
|
||||
content \
|
||||
docshell \
|
||||
dom \
|
||||
find \
|
||||
intl \
|
||||
gfx \
|
||||
layout \
|
||||
locale \
|
||||
necko \
|
||||
pref \
|
||||
string \
|
||||
unicharutil \
|
||||
uriloader \
|
||||
view \
|
||||
webshell \
|
||||
widget \
|
||||
webbrwsr \
|
||||
windowwatcher \
|
||||
xpcom \
|
||||
xuldoc \
|
||||
$(NULL)
|
||||
|
||||
EXPORT_LIBRARY = 1
|
||||
IS_COMPONENT = 1
|
||||
MODULE_NAME = nsTypeAheadFind
|
||||
|
||||
CPPSRCS = \
|
||||
nsTypeAheadFind.cpp \
|
||||
nsTypeAheadFindRegistration.cpp \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DSO_LIBS = \
|
||||
gkgfx \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DSO_LDOPTS += \
|
||||
$(LIBS_DIR) \
|
||||
$(MOZ_UNICHARUTIL_LIBS) \
|
||||
$(EXTRA_DSO_LIBS) \
|
||||
$(MOZ_COMPONENT_LIBS)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
# why not ship this with GRE/embedding, if we're building it?
|
||||
|
||||
[xpfe-browser browser]
|
||||
#if SHARED_LIBRARY
|
||||
dist/bin/components/@SHARED_LIBRARY@
|
||||
#else
|
||||
!staticcomp @LIBRARY@ @MODULE_NAME@
|
||||
#endif
|
||||
!xpt dist/bin/components/typeaheadfind.xpt
|
||||
@@ -1,83 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = universalchardet
|
||||
LIBRARY_NAME = universalchardet
|
||||
EXPORT_LIBRARY = 1
|
||||
IS_COMPONENT = 1
|
||||
MODULE_NAME = nsUniversalCharDetModule
|
||||
ifneq ($(OS_ARCH),WINNT)
|
||||
SHORT_LIBNAME = ucdet
|
||||
endif
|
||||
REQUIRES = xpcom \
|
||||
string \
|
||||
uconv \
|
||||
chardet \
|
||||
$(NULL)
|
||||
|
||||
PACKAGE_FILE = universalchardet.pkg
|
||||
|
||||
CPPSRCS = \
|
||||
CharDistribution.cpp \
|
||||
JpCntx.cpp \
|
||||
LangBulgarianModel.cpp \
|
||||
LangCyrillicModel.cpp \
|
||||
LangGreekModel.cpp \
|
||||
LangHungarianModel.cpp \
|
||||
nsBig5Prober.cpp \
|
||||
nsEUCJPProber.cpp \
|
||||
nsEUCKRProber.cpp \
|
||||
nsEUCTWProber.cpp \
|
||||
nsEscCharsetProber.cpp \
|
||||
nsEscSM.cpp \
|
||||
nsGB2312Prober.cpp \
|
||||
nsMBCSGroupProber.cpp \
|
||||
nsMBCSSM.cpp \
|
||||
nsSBCSGroupProber.cpp \
|
||||
nsSBCharSetProber.cpp \
|
||||
nsSJISProber.cpp \
|
||||
nsUTF8Prober.cpp \
|
||||
nsLatin1Prober.cpp \
|
||||
nsUniversalCharDetModule.cpp \
|
||||
nsUniversalDetector.cpp \
|
||||
$(NULL)
|
||||
|
||||
# Not built on win32. Not sure why not
|
||||
ifneq ($(OS_ARCH),WINNT)
|
||||
CPPSRCS += LangThaiModel.cpp
|
||||
endif
|
||||
|
||||
EXTRA_DSO_LDOPTS += \
|
||||
$(MOZ_COMPONENT_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
ifeq ($(OS_ARCH),WINNT)
|
||||
DEFINES += -D__STDC__
|
||||
endif
|
||||
@@ -1,14 +0,0 @@
|
||||
# This is not part of embedding, but it is part of the GRE.
|
||||
# Make that make sense.
|
||||
|
||||
[gre]
|
||||
#if SHARED_LIBRARY
|
||||
dist/bin/components/@SHARED_LIBRARY@
|
||||
#else
|
||||
!staticcomp @LIBRARY@ @MODULE_NAME@
|
||||
#endif
|
||||
|
||||
#if ENABLE_TESTS
|
||||
[gecko-tests]
|
||||
dist/bin/UniversalChardetTest@BINS@
|
||||
#endif
|
||||
@@ -1,49 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Mozilla Public License
|
||||
# Version 1.1 (the "License"); you may not use this file except in
|
||||
# compliance with the License. You may obtain a copy of the License at
|
||||
# http://www.mozilla.org/MPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
||||
# for the specific language governing rights and limitations under the
|
||||
# License.
|
||||
#
|
||||
# The Original Code is The JavaScript Debugger
|
||||
#
|
||||
# The Initial Developer of the Original Code is
|
||||
# Netscape Communications Corporation
|
||||
# Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation.
|
||||
#
|
||||
# Alternatively, the contents of this file may be used under the
|
||||
# terms of the GNU Public License (the "GPL"), in which case the
|
||||
# provisions of the GPL are applicable instead of those above.
|
||||
# If you wish to allow use of your version of this file only
|
||||
# under the terms of the GPL and not to allow others to use your
|
||||
# version of this file under the MPL, indicate your decision by
|
||||
# deleting the provisions above and replace them with the notice
|
||||
# and other provisions required by the GPL. If you do not delete
|
||||
# the provisions above, a recipient may use your version of this
|
||||
# file under either the MPL or the GPL.
|
||||
#
|
||||
# Contributor(s):
|
||||
# Robert Ginda, <rginda@netscape.com>, original author
|
||||
#
|
||||
|
||||
DEPTH = ../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = venkman
|
||||
PACKAGE_FILE = venkman.pkg
|
||||
|
||||
DIRS = resources
|
||||
|
||||
EXTRA_COMPONENTS = js/venkman-service.js
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
var err = initInstall("JavaScript Debugger", "Venkman", "$Version$");
|
||||
logComment("initInstall: " + err);
|
||||
|
||||
addFile("Venkman Service",
|
||||
"bin/components/venkman-service.js",
|
||||
getFolder("Components"),
|
||||
"");
|
||||
|
||||
addFile("Venkman Chrome",
|
||||
"bin/chrome/venkman.jar", // jar source folder
|
||||
getFolder("Chrome"), // target folder
|
||||
""); // target subdir
|
||||
|
||||
registerChrome(PACKAGE | DELAYED_CHROME, getFolder("Chrome","venkman.jar"), "content/venkman/");
|
||||
registerChrome(SKIN | DELAYED_CHROME, getFolder("Chrome","venkman.jar"), "skin/modern/venkman/");
|
||||
registerChrome(LOCALE | DELAYED_CHROME, getFolder("Chrome","venkman.jar"), "locale/en-US/venkman/");
|
||||
|
||||
err = getLastError();
|
||||
if (err==SUCCESS)
|
||||
performInstall();
|
||||
else
|
||||
cancelInstall(err);
|
||||
@@ -1,6 +0,0 @@
|
||||
[venkman]
|
||||
dist/bin/components/venkman-service.js
|
||||
dist/bin/chrome/venkman.jar
|
||||
|
||||
[venkman-xpi]
|
||||
!preprocess xpiroot/install.js -E -Fsubstitution @topsrcdir@/xpinstall/packager/common/share.t @topsrcdir@/extensions/venkman/install.jst
|
||||
@@ -1,65 +0,0 @@
|
||||
#
|
||||
# The contents of this file are subject to the Netscape Public
|
||||
# License Version 1.1 (the "License"); you may not use this file
|
||||
# except in compliance with the License. You may obtain a copy of
|
||||
# the License at http://www.mozilla.org/NPL/
|
||||
#
|
||||
# Software distributed under the License is distributed on an "AS
|
||||
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
# implied. See the License for the specific language governing
|
||||
# rights and limitations under the License.
|
||||
#
|
||||
# The Original Code is mozilla.org code.
|
||||
#
|
||||
# The Initial Developer of the Original Code is Netscape
|
||||
# Communications Corporation. Portions created by Netscape are
|
||||
# Copyright (C) 1998 Netscape Communications Corporation. All
|
||||
# Rights Reserved.
|
||||
#
|
||||
# Contributor(s):
|
||||
#
|
||||
|
||||
DEPTH = ../../..
|
||||
topsrcdir = @top_srcdir@
|
||||
srcdir = @srcdir@
|
||||
VPATH = @srcdir@
|
||||
|
||||
include $(DEPTH)/config/autoconf.mk
|
||||
|
||||
MODULE = walletviewers
|
||||
LIBRARY_NAME = walletviewers
|
||||
EXPORT_LIBRARY = 1
|
||||
SHORT_LIBNAME = wlltvwrs
|
||||
IS_COMPONENT = 1
|
||||
MODULE_NAME = nsWalletViewerModule
|
||||
|
||||
PACKAGE_FILE = walletviewer.pkg
|
||||
|
||||
REQUIRES = xpcom \
|
||||
$(NULL)
|
||||
|
||||
CPPSRCS = nsWalletViewerFactory.cpp
|
||||
|
||||
LOCAL_INCLUDES = \
|
||||
-I$(srcdir)/../editor \
|
||||
-I$(srcdir)/../signonviewer \
|
||||
-I$(srcdir)/../walletpreview \
|
||||
$(NULL)
|
||||
|
||||
SHARED_LIBRARY_LIBS = \
|
||||
$(DIST)/lib/$(LIB_PREFIX)signonviewer_s.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)walletpreview_s.$(LIB_SUFFIX) \
|
||||
$(DIST)/lib/$(LIB_PREFIX)walleteditor_s.$(LIB_SUFFIX) \
|
||||
$(NULL)
|
||||
|
||||
EXTRA_DSO_LDOPTS = \
|
||||
$(MOZ_COMPONENT_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
ifeq ($(OS_ARCH),WINNT)
|
||||
OS_LIBS += $(call EXPAND_LIBNAME,shell32)
|
||||
endif
|
||||
|
||||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user