1998-10-28 06:53:57 +03:00
|
|
|
#
|
1999-11-06 06:43:54 +03:00
|
|
|
# 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/
|
1998-10-28 06:53:57 +03:00
|
|
|
#
|
1999-11-06 06:43:54 +03:00
|
|
|
# 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.
|
1998-10-28 06:53:57 +03:00
|
|
|
#
|
1999-11-06 06:43:54 +03:00
|
|
|
# The Original Code is mozilla.org code.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is Netscape
|
1998-10-28 06:53:57 +03:00
|
|
|
# Communications Corporation. Portions created by Netscape are
|
1999-11-06 06:43:54 +03:00
|
|
|
# Copyright (C) 1998 Netscape Communications Corporation. All
|
|
|
|
# Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
1999-07-28 03:27:44 +04:00
|
|
|
#
|
1998-10-28 06:53:57 +03:00
|
|
|
|
1999-07-28 03:27:44 +04:00
|
|
|
DEPTH = ../../..
|
|
|
|
topsrcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
1998-10-28 06:53:57 +03:00
|
|
|
|
|
|
|
include $(DEPTH)/config/autoconf.mk
|
|
|
|
|
2000-03-02 16:29:03 +03:00
|
|
|
DIRS := public
|
1999-07-28 03:27:44 +04:00
|
|
|
|
2001-04-08 12:33:11 +04:00
|
|
|
MODULE = webshell_tests
|
2001-09-18 17:41:47 +04:00
|
|
|
REQUIRES = xpcom \
|
|
|
|
string \
|
2001-11-06 04:19:39 +03:00
|
|
|
embed_base \
|
2001-09-18 17:41:47 +04:00
|
|
|
webshell \
|
|
|
|
widget \
|
|
|
|
gfx \
|
|
|
|
layout \
|
|
|
|
content \
|
|
|
|
dom \
|
|
|
|
webbrwsr \
|
|
|
|
docshell \
|
|
|
|
util \
|
|
|
|
uriloader \
|
|
|
|
locale \
|
|
|
|
necko \
|
|
|
|
htmlparser \
|
|
|
|
view \
|
|
|
|
pref \
|
|
|
|
intl \
|
|
|
|
editor \
|
|
|
|
cookie \
|
2001-11-06 04:19:39 +03:00
|
|
|
windowwatcher \
|
2001-09-18 17:41:47 +04:00
|
|
|
xpconnect \
|
2001-12-18 12:14:29 +03:00
|
|
|
js \
|
2001-09-18 17:41:47 +04:00
|
|
|
$(NULL)
|
2000-11-20 10:16:06 +03:00
|
|
|
|
2000-07-19 17:58:45 +04:00
|
|
|
PROGRAM := viewer$(BIN_SUFFIX)
|
1999-07-28 03:27:44 +04:00
|
|
|
|
|
|
|
CPPSRCS = \
|
|
|
|
$(TOOLKIT_CPPSRCS) \
|
|
|
|
nsBaseDialog.cpp \
|
|
|
|
nsFindDialog.cpp \
|
|
|
|
nsXPBaseWindow.cpp \
|
|
|
|
nsTableInspectorDialog.cpp \
|
|
|
|
nsImageInspectorDialog.cpp \
|
|
|
|
nsPrintSetupDialog.cpp \
|
|
|
|
nsBrowserWindow.cpp \
|
|
|
|
nsEditorMode.cpp \
|
1999-09-26 00:10:29 +04:00
|
|
|
nsThrobber.cpp \
|
1999-07-28 03:27:44 +04:00
|
|
|
nsViewerApp.cpp \
|
|
|
|
nsWebCrawler.cpp \
|
2000-02-02 05:33:03 +03:00
|
|
|
nsWebBrowserChrome.cpp \
|
2001-11-06 04:19:39 +03:00
|
|
|
nsWindowCreator.cpp \
|
1999-07-28 03:27:44 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2001-12-18 12:14:29 +03:00
|
|
|
ifeq (,$(filter beos os2 photon mac windows,$(MOZ_WIDGET_TOOLKIT)))
|
1999-09-09 05:49:14 +04:00
|
|
|
DIRS += unix
|
2001-12-18 12:14:29 +03:00
|
|
|
VIEWER_TK_LIBS = unix/$(MOZ_WIDGET_TOOLKIT)/libviewer_$(MOZ_WIDGET_TOOLKIT)_s.a
|
1999-09-09 05:49:14 +04:00
|
|
|
else
|
1999-07-02 17:06:48 +04:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),beos)
|
1999-07-28 03:27:44 +04:00
|
|
|
BEOS_PROGRAM_RESOURCE = $(srcdir)/viewer-beos.rsrc
|
1999-09-09 05:49:14 +04:00
|
|
|
TOOLKIT_CPPSRCS = nsBeOSMain.cpp
|
|
|
|
endif
|
2000-07-19 17:58:45 +04:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),os2)
|
|
|
|
TOOLKIT_CPPSRCS = nsOS2Main.cpp
|
|
|
|
endif
|
1999-09-09 05:49:14 +04:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),photon)
|
|
|
|
TOOLKIT_CPPSRCS = nsPhMain.cpp nsPhMenu.cpp
|
|
|
|
endif
|
2000-03-11 06:08:04 +03:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),mac)
|
|
|
|
TOOLKIT_CPPSRCS = nsMacMain.cpp
|
|
|
|
endif
|
2001-12-18 12:14:29 +03:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
|
|
|
|
TOOLKIT_CPPSRCS = nsWinMain.cpp JSConsole.cpp nsWidgetSupport.cpp
|
|
|
|
DIRS += windows
|
|
|
|
VIEWER_TK_LIBS = windows/$(LIB_PREFIX)viewer_windows_s.$(LIB_SUFFIX)
|
|
|
|
endif # windows
|
|
|
|
endif # unix
|
1998-10-28 06:53:57 +03:00
|
|
|
|
1999-11-17 07:05:41 +03:00
|
|
|
ifeq ($(MOZ_WIDGET_TOOLKIT),gtk)
|
|
|
|
GTK_GLUE = -lgtksuperwin
|
|
|
|
endif
|
|
|
|
|
2001-12-18 22:55:59 +03:00
|
|
|
XP_DIST_LIBS = \
|
|
|
|
-lgkgfx \
|
|
|
|
$(NULL)
|
|
|
|
|
2002-01-01 03:03:57 +03:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
RESFILE = viewer.res
|
2002-01-16 08:10:09 +03:00
|
|
|
XP_DIST_LIBS += -lxpwidgets_s -ldbgrobot
|
2002-01-01 03:03:57 +03:00
|
|
|
endif
|
|
|
|
|
1998-11-02 16:31:43 +03:00
|
|
|
ifdef MOZ_OJI
|
2002-01-16 08:10:09 +03:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
XP_DIST_LIBS += -ljsj$(MOZ_BITS)$(VERSION_NUMBER)
|
|
|
|
else
|
2001-12-18 22:55:59 +03:00
|
|
|
XP_DIST_LIBS += -ljsj
|
1998-11-02 16:31:43 +03:00
|
|
|
endif
|
2002-01-16 08:10:09 +03:00
|
|
|
endif
|
2001-12-18 13:52:05 +03:00
|
|
|
ifdef MOZ_PERF_METRICS
|
2001-12-18 22:55:59 +03:00
|
|
|
XP_DIST_LIBS += -lmozutil_s
|
2001-12-18 13:52:05 +03:00
|
|
|
endif
|
1998-11-02 16:31:43 +03:00
|
|
|
|
2001-12-18 22:55:59 +03:00
|
|
|
XP_DIST_LIBS += \
|
2002-01-01 03:03:57 +03:00
|
|
|
$(EXTRA_DSO_LIBS) \
|
2000-04-04 08:46:38 +04:00
|
|
|
$(XPCOM_LIBS) \
|
2001-12-18 22:55:59 +03:00
|
|
|
$(MOZ_JS_LIBS) \
|
1999-08-24 16:37:15 +04:00
|
|
|
$(NULL)
|
|
|
|
|
2001-12-18 12:14:29 +03:00
|
|
|
XP_LIBS = \
|
1999-09-15 06:15:11 +04:00
|
|
|
$(MOZ_WIDGET_SUPPORT_LIBS) \
|
2000-09-01 04:48:22 +04:00
|
|
|
$(XP_DIST_LIBS) \
|
|
|
|
$(NSPR_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
|
1999-09-09 05:49:14 +04:00
|
|
|
LIBS = \
|
2001-12-18 12:14:29 +03:00
|
|
|
$(VIEWER_TK_LIBS) \
|
1999-11-17 07:05:41 +03:00
|
|
|
$(GTK_GLUE) \
|
1999-08-22 18:06:52 +04:00
|
|
|
$(XP_LIBS) \
|
1999-07-28 03:27:44 +04:00
|
|
|
$(TK_LIBS) \
|
2000-10-20 18:59:13 +04:00
|
|
|
$(PROFILER_LIBS) \
|
1999-07-28 03:27:44 +04:00
|
|
|
$(NULL)
|
1998-10-28 06:53:57 +03:00
|
|
|
|
1999-09-09 05:49:14 +04:00
|
|
|
QT_LIBS = -lviewer_qt_s $(XP_LIBS) $(MOZ_QT_LDFLAGS)
|
|
|
|
XLIB_LIBS = -lviewer_xlib_s $(XP_LIBS) $(MOZ_XLIB_LDFLAGS)
|
1999-11-17 07:05:41 +03:00
|
|
|
GTK_LIBS = -lviewer_gtk_s -lgtksuperwin $(XP_LIBS) $(MOZ_GTK_LDFLAGS)
|
1999-09-09 05:49:14 +04:00
|
|
|
|
2000-07-19 17:58:45 +04:00
|
|
|
ifeq ($(MOZ_OS2_TOOLS),VACPP)
|
|
|
|
XP_DIST_DEP_LIBS := $(patsubst -l%,$(DIST)/lib/%.lib,$(XP_DIST_LIBS))
|
|
|
|
else
|
2000-04-04 08:46:38 +04:00
|
|
|
XP_DIST_DEP_LIBS := $(filter-out -L$(DIST)/bin -L$(DIST)/lib, $(XP_DIST_LIBS))
|
2001-12-18 12:14:29 +03:00
|
|
|
XP_DIST_DEP_LIBS := $(wildcard $(addprefix $(DIST)/,$(patsubst -l%,bin/$(LIB_PREFIX)%$(DLL_SUFFIX),$(XP_DIST_DEP_LIBS:-l%_s=lib/lib%_s)))*)
|
2000-07-19 17:58:45 +04:00
|
|
|
endif
|
2000-04-04 08:46:38 +04:00
|
|
|
|
1999-09-09 05:49:14 +04:00
|
|
|
EXTRA_DEPS = \
|
2000-07-19 17:58:45 +04:00
|
|
|
$(XP_DIST_DEP_LIBS) \
|
2001-12-18 12:14:29 +03:00
|
|
|
$(VIEWER_TK_LIBS) \
|
|
|
|
$(MOZ_WIDGET_SUPPORT_LIBS) \
|
1999-09-09 05:49:14 +04:00
|
|
|
$(NULL)
|
|
|
|
|
1999-12-23 02:35:06 +03:00
|
|
|
include $(topsrcdir)/config/config.mk
|
|
|
|
|
2000-03-04 03:07:54 +03:00
|
|
|
# Force a build thru DIRS so that dependencies are updated properly
|
2001-11-21 11:55:59 +03:00
|
|
|
libs::
|
2000-03-04 03:07:54 +03:00
|
|
|
+$(LOOP_OVER_DIRS)
|
|
|
|
|
1998-10-28 06:53:57 +03:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2001-10-27 11:38:18 +04:00
|
|
|
ifeq ($(OS_ARCH),Darwin)
|
|
|
|
LOCAL_INCLUDES += -I$(topsrcdir)/widget/src/mac
|
2000-03-11 06:08:04 +03:00
|
|
|
endif
|
|
|
|
|
1999-07-28 03:27:44 +04:00
|
|
|
CXXFLAGS += $(MOZ_TOOLKIT_REGISTRY_CFLAGS)
|
1999-04-01 12:01:07 +04:00
|
|
|
|
2001-10-13 00:21:31 +04:00
|
|
|
GARBAGE += $(PROGRAM)_gtk $(PROGRAM)_qt $(PROGRAM)_xlib
|
1999-12-23 02:35:06 +03:00
|
|
|
|
2001-12-18 12:14:29 +03:00
|
|
|
ifeq ($(OS_ARCH),WINNT)
|
|
|
|
OS_LIBS += shell32.lib ole32.lib oleaut32.lib oleacc.lib \
|
|
|
|
imm32.lib uuid.lib comdlg32.lib
|
|
|
|
LDFLAGS += -SUBSYSTEM:CONSOLE
|
|
|
|
ifdef MOZ_NO_DEBUG_RTL
|
|
|
|
CXXFLAGS += -DMOZ_NO_DEBUG_RTL
|
|
|
|
endif
|
|
|
|
ifdef NGPREFS
|
|
|
|
CXXFLAGS += -DNGPREFS
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2001-11-21 11:55:59 +03:00
|
|
|
libs:: $(PROGRAM) $(srcdir)/mozilla-viewer.sh
|
2001-05-02 03:53:59 +04:00
|
|
|
ifneq ($(MOZ_WIDGET_TOOLKIT),os2)
|
1999-09-16 04:03:08 +04:00
|
|
|
$(INSTALL) $(srcdir)/mozilla-viewer.sh $(DIST)/bin
|
2001-05-02 03:53:59 +04:00
|
|
|
endif
|
1999-08-22 18:06:52 +04:00
|
|
|
|
2000-03-02 16:29:03 +03:00
|
|
|
unix/gtk/libviewer_gtk_s.a:
|
|
|
|
@$(MAKE) -C $(@D) $(@F)
|
|
|
|
|
|
|
|
unix/qt/libviewer_qt_s.a:
|
|
|
|
@$(MAKE) -C $(@D) $(@F)
|
|
|
|
|
|
|
|
unix/xlib/libviewer_xlib_s.a:
|
|
|
|
@$(MAKE) -C $(@D) $(@F)
|
|
|
|
|
|
|
|
$(PROGRAM)_gtk: $(PROGOBJS) $(EXTRA_DEPS) Makefile Makefile.in unix/gtk/libviewer_gtk_s.a
|
2000-10-20 18:59:13 +04:00
|
|
|
$(CCC) $(CXXFLAGS) -o $@ $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(GTK_LIBS) $(OS_LIBS) $(PROFILER_LIBS)
|
2001-10-26 12:36:28 +04:00
|
|
|
ifdef ENABLE_STRIP
|
|
|
|
$(STRIP) $@
|
|
|
|
endif
|
1999-08-22 18:06:52 +04:00
|
|
|
|
2000-03-02 16:29:03 +03:00
|
|
|
$(PROGRAM)_qt: $(PROGOBJS) $(EXTRA_DEPS) Makefile Makefile.in unix/qt/libviewer_qt_s.a
|
2000-10-20 18:59:13 +04:00
|
|
|
$(CCC) $(CXXFLAGS) -o $@ $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(QT_LIBS) $(OS_LIBS) $(PROFILER_LIBS)
|
2001-10-26 12:36:28 +04:00
|
|
|
ifdef ENABLE_STRIP
|
|
|
|
$(STRIP) $@
|
|
|
|
endif
|
1999-08-22 18:06:52 +04:00
|
|
|
|
2000-03-02 16:29:03 +03:00
|
|
|
$(PROGRAM)_xlib: $(PROGOBJS) $(EXTRA_DEPS) Makefile Makefile.in unix/xlib/libviewer_xlib_s.a
|
2000-10-20 18:59:13 +04:00
|
|
|
$(CCC) $(CXXFLAGS) -o $@ $(PROGOBJS) $(LDFLAGS) $(LIBS_DIR) $(XLIB_LIBS) $(OS_LIBS) $(PROFILER_LIBS)
|
2001-10-26 12:36:28 +04:00
|
|
|
ifdef ENABLE_STRIP
|
|
|
|
$(STRIP) $@
|
|
|
|
endif
|
1999-08-22 18:06:52 +04:00
|
|
|
|
1999-09-09 05:49:14 +04:00
|
|
|
ifdef MOZ_ENABLE_GTK
|
2001-11-21 11:55:59 +03:00
|
|
|
libs:: $(PROGRAM)_gtk
|
1999-09-09 05:49:14 +04:00
|
|
|
$(INSTALL) -m 555 $< $(DIST)/bin
|
|
|
|
endif
|
1999-08-22 18:06:52 +04:00
|
|
|
|
|
|
|
ifdef MOZ_ENABLE_QT
|
2001-11-21 11:55:59 +03:00
|
|
|
libs:: $(PROGRAM)_qt
|
1999-09-09 05:49:14 +04:00
|
|
|
$(INSTALL) -m 555 $< $(DIST)/bin
|
1999-08-22 18:06:52 +04:00
|
|
|
endif
|
|
|
|
|
1999-09-09 05:49:14 +04:00
|
|
|
ifdef MOZ_ENABLE_XLIB
|
2001-11-21 11:55:59 +03:00
|
|
|
libs:: $(PROGRAM)_xlib
|
1999-09-09 05:49:14 +04:00
|
|
|
$(INSTALL) -m 555 $< $(DIST)/bin
|
1999-08-22 18:06:52 +04:00
|
|
|
endif
|
1999-09-15 06:15:11 +04:00
|
|
|
|