зеркало из https://github.com/mozilla/pjs.git
Pulled the DebugRobot out into separate DLL
Moved the test code in the robot/test directory.
This commit is contained in:
Родитель
ebcb2ea1e6
Коммит
5cef8d4242
|
@ -18,6 +18,6 @@
|
||||||
DEPTH=..
|
DEPTH=..
|
||||||
IGNORE_MANIFEST=1
|
IGNORE_MANIFEST=1
|
||||||
|
|
||||||
DIRS = src
|
DIRS = src robot robot\test
|
||||||
|
|
||||||
include <$(DEPTH)\config\rules.mak>
|
include <$(DEPTH)\config\rules.mak>
|
||||||
|
|
|
@ -15,20 +15,13 @@
|
||||||
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||||
# Reserved.
|
# Reserved.
|
||||||
|
|
||||||
DEPTH=..\..
|
|
||||||
IGNORE_MANIFEST=1
|
IGNORE_MANIFEST=1
|
||||||
|
|
||||||
MAKE_OBJ_TYPE = EXE
|
MAKE_OBJ_TYPE = DLL
|
||||||
PROGRAM = .\$(OBJDIR)\htmlrobot.exe
|
|
||||||
|
|
||||||
MISCDEP= \
|
DEPTH=..\..
|
||||||
$(DIST)\lib\raptorhtmlpars.lib \
|
|
||||||
$(DIST)\lib\xpcom32.lib \
|
|
||||||
$(LIBNSPR) \
|
|
||||||
$(DIST)\lib\libplc21.lib \
|
|
||||||
$(NULL)
|
|
||||||
|
|
||||||
MYLIBS= \
|
LLIBS= \
|
||||||
$(DIST)\lib\raptorhtmlpars.lib \
|
$(DIST)\lib\raptorhtmlpars.lib \
|
||||||
$(DIST)\lib\raptorbase.lib \
|
$(DIST)\lib\raptorbase.lib \
|
||||||
$(DIST)\lib\xpcom32.lib \
|
$(DIST)\lib\xpcom32.lib \
|
||||||
|
@ -37,27 +30,25 @@ MYLIBS= \
|
||||||
$(DIST)\lib\netlib.lib \
|
$(DIST)\lib\netlib.lib \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
LLIBS= $(MYLIBS) \
|
LIBNAME = .\$(OBJDIR)\DebugRobot
|
||||||
shell32.lib \
|
DLL = $(LIBNAME).dll
|
||||||
-SUBSYSTEM:CONSOLE
|
|
||||||
|
|
||||||
DEFINES=-D_IMPL_NS_HTMLPARS
|
|
||||||
|
|
||||||
CPPSRCS= \
|
CPPSRCS= \
|
||||||
nsRobotSink.cpp \
|
nsRobotSink.cpp \
|
||||||
RobotMain.cpp \
|
nsDebugRobot.cpp \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
CPP_OBJS= \
|
CPP_OBJS= \
|
||||||
.\$(OBJDIR)\nsRobotSink.obj \
|
.\$(OBJDIR)\nsRobotSink.obj \
|
||||||
.\$(OBJDIR)\RobotMain.obj
|
.\$(OBJDIR)\nsDebugRobot.obj \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
|
MODULE = DebugRobot
|
||||||
|
|
||||||
LINCS=-I$(XPDIST)\public\xpcom -I$(XPDIST)\public\raptor -I$(XPDIST)\public\netlib -I..\src
|
LINCS=-I$(XPDIST)\public\xpcom -I$(XPDIST)\public\raptor -I$(XPDIST)\public\netlib -I..\src
|
||||||
|
|
||||||
include <$(DEPTH)\config\rules.mak>
|
include <$(DEPTH)\config\rules.mak>
|
||||||
|
|
||||||
install:: $(PROGRAM)
|
libs:: $(DLL)
|
||||||
$(MAKE_INSTALL) $(PROGRAM) $(DIST)\bin
|
$(MAKE_INSTALL) $(LIBNAME).$(DLL_SUFFIX) $(DIST)\bin
|
||||||
|
$(MAKE_INSTALL) $(LIBNAME).$(LIB_SUFFIX) $(DIST)\lib
|
||||||
clobber::
|
|
||||||
rm -f $(DIST)\bin\htmlrobot.exe
|
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
#include "nsVoidArray.h"
|
||||||
|
#include "nsString.h"
|
||||||
|
|
||||||
|
extern "C" NS_EXPORT int DebugRobot(nsVoidArray * workList);
|
||||||
|
|
||||||
|
int main(int argc, char **argv)
|
||||||
|
{
|
||||||
|
nsVoidArray * gWorkList = new nsVoidArray();
|
||||||
|
int i;
|
||||||
|
for (i = 1; i < argc; i++) {
|
||||||
|
gWorkList->AppendElement(new nsString(argv[i]));
|
||||||
|
}
|
||||||
|
return DebugRobot(gWorkList);
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,55 @@
|
||||||
|
#!nmake
|
||||||
|
#
|
||||||
|
# The contents of this file are subject to the Netscape Public License
|
||||||
|
# Version 1.0 (the "NPL"); you may not use this file except in
|
||||||
|
# compliance with the NPL. You may obtain a copy of the NPL at
|
||||||
|
# http://www.mozilla.org/NPL/
|
||||||
|
#
|
||||||
|
# Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||||
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||||
|
# for the specific language governing rights and limitations under the
|
||||||
|
# NPL.
|
||||||
|
#
|
||||||
|
# The Initial Developer of this code under the NPL is Netscape
|
||||||
|
# Communications Corporation. Portions created by Netscape are
|
||||||
|
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||||
|
# Reserved.
|
||||||
|
|
||||||
|
DEPTH=..\..\..
|
||||||
|
IGNORE_MANIFEST=1
|
||||||
|
|
||||||
|
MAKE_OBJ_TYPE = EXE
|
||||||
|
PROGRAM = .\$(OBJDIR)\htmlrobot.exe
|
||||||
|
|
||||||
|
MISCDEP= \
|
||||||
|
$(DIST)\lib\DebugRobot.lib \
|
||||||
|
$(DIST)\lib\raptorbase.lib \
|
||||||
|
$(DIST)\lib\xpcom32.lib \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
|
MYLIBS= \
|
||||||
|
$(DIST)\lib\DebugRobot.lib \
|
||||||
|
$(DIST)\lib\raptorbase.lib \
|
||||||
|
$(DIST)\lib\xpcom32.lib \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
|
LLIBS= $(MYLIBS) \
|
||||||
|
shell32.lib \
|
||||||
|
-SUBSYSTEM:CONSOLE
|
||||||
|
|
||||||
|
CPPSRCS= \
|
||||||
|
RobotMain.cpp \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
|
CPP_OBJS= \
|
||||||
|
.\$(OBJDIR)\RobotMain.obj
|
||||||
|
|
||||||
|
LINCS=-I$(XPDIST)\public\xpcom -I$(XPDIST)\public\raptor -I$(XPDIST)\public\netlib -I..
|
||||||
|
|
||||||
|
include <$(DEPTH)\config\rules.mak>
|
||||||
|
|
||||||
|
install:: $(PROGRAM)
|
||||||
|
$(MAKE_INSTALL) $(PROGRAM) $(DIST)\bin
|
||||||
|
|
||||||
|
clobber::
|
||||||
|
rm -f $(DIST)\bin\htmlrobot.exe
|
|
@ -18,6 +18,6 @@
|
||||||
DEPTH=..
|
DEPTH=..
|
||||||
IGNORE_MANIFEST=1
|
IGNORE_MANIFEST=1
|
||||||
|
|
||||||
DIRS = src
|
DIRS = src robot robot\test
|
||||||
|
|
||||||
include <$(DEPTH)\config\rules.mak>
|
include <$(DEPTH)\config\rules.mak>
|
||||||
|
|
|
@ -15,20 +15,13 @@
|
||||||
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||||
# Reserved.
|
# Reserved.
|
||||||
|
|
||||||
DEPTH=..\..
|
|
||||||
IGNORE_MANIFEST=1
|
IGNORE_MANIFEST=1
|
||||||
|
|
||||||
MAKE_OBJ_TYPE = EXE
|
MAKE_OBJ_TYPE = DLL
|
||||||
PROGRAM = .\$(OBJDIR)\htmlrobot.exe
|
|
||||||
|
|
||||||
MISCDEP= \
|
DEPTH=..\..
|
||||||
$(DIST)\lib\raptorhtmlpars.lib \
|
|
||||||
$(DIST)\lib\xpcom32.lib \
|
|
||||||
$(LIBNSPR) \
|
|
||||||
$(DIST)\lib\libplc21.lib \
|
|
||||||
$(NULL)
|
|
||||||
|
|
||||||
MYLIBS= \
|
LLIBS= \
|
||||||
$(DIST)\lib\raptorhtmlpars.lib \
|
$(DIST)\lib\raptorhtmlpars.lib \
|
||||||
$(DIST)\lib\raptorbase.lib \
|
$(DIST)\lib\raptorbase.lib \
|
||||||
$(DIST)\lib\xpcom32.lib \
|
$(DIST)\lib\xpcom32.lib \
|
||||||
|
@ -37,27 +30,25 @@ MYLIBS= \
|
||||||
$(DIST)\lib\netlib.lib \
|
$(DIST)\lib\netlib.lib \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
LLIBS= $(MYLIBS) \
|
LIBNAME = .\$(OBJDIR)\DebugRobot
|
||||||
shell32.lib \
|
DLL = $(LIBNAME).dll
|
||||||
-SUBSYSTEM:CONSOLE
|
|
||||||
|
|
||||||
DEFINES=-D_IMPL_NS_HTMLPARS
|
|
||||||
|
|
||||||
CPPSRCS= \
|
CPPSRCS= \
|
||||||
nsRobotSink.cpp \
|
nsRobotSink.cpp \
|
||||||
RobotMain.cpp \
|
nsDebugRobot.cpp \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
CPP_OBJS= \
|
CPP_OBJS= \
|
||||||
.\$(OBJDIR)\nsRobotSink.obj \
|
.\$(OBJDIR)\nsRobotSink.obj \
|
||||||
.\$(OBJDIR)\RobotMain.obj
|
.\$(OBJDIR)\nsDebugRobot.obj \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
|
MODULE = DebugRobot
|
||||||
|
|
||||||
LINCS=-I$(XPDIST)\public\xpcom -I$(XPDIST)\public\raptor -I$(XPDIST)\public\netlib -I..\src
|
LINCS=-I$(XPDIST)\public\xpcom -I$(XPDIST)\public\raptor -I$(XPDIST)\public\netlib -I..\src
|
||||||
|
|
||||||
include <$(DEPTH)\config\rules.mak>
|
include <$(DEPTH)\config\rules.mak>
|
||||||
|
|
||||||
install:: $(PROGRAM)
|
libs:: $(DLL)
|
||||||
$(MAKE_INSTALL) $(PROGRAM) $(DIST)\bin
|
$(MAKE_INSTALL) $(LIBNAME).$(DLL_SUFFIX) $(DIST)\bin
|
||||||
|
$(MAKE_INSTALL) $(LIBNAME).$(LIB_SUFFIX) $(DIST)\lib
|
||||||
clobber::
|
|
||||||
rm -f $(DIST)\bin\htmlrobot.exe
|
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
#include "nsVoidArray.h"
|
||||||
|
#include "nsString.h"
|
||||||
|
|
||||||
|
extern "C" NS_EXPORT int DebugRobot(nsVoidArray * workList);
|
||||||
|
|
||||||
|
int main(int argc, char **argv)
|
||||||
|
{
|
||||||
|
nsVoidArray * gWorkList = new nsVoidArray();
|
||||||
|
int i;
|
||||||
|
for (i = 1; i < argc; i++) {
|
||||||
|
gWorkList->AppendElement(new nsString(argv[i]));
|
||||||
|
}
|
||||||
|
return DebugRobot(gWorkList);
|
||||||
|
}
|
||||||
|
|
|
@ -0,0 +1,55 @@
|
||||||
|
#!nmake
|
||||||
|
#
|
||||||
|
# The contents of this file are subject to the Netscape Public License
|
||||||
|
# Version 1.0 (the "NPL"); you may not use this file except in
|
||||||
|
# compliance with the NPL. You may obtain a copy of the NPL at
|
||||||
|
# http://www.mozilla.org/NPL/
|
||||||
|
#
|
||||||
|
# Software distributed under the NPL is distributed on an "AS IS" basis,
|
||||||
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
|
||||||
|
# for the specific language governing rights and limitations under the
|
||||||
|
# NPL.
|
||||||
|
#
|
||||||
|
# The Initial Developer of this code under the NPL is Netscape
|
||||||
|
# Communications Corporation. Portions created by Netscape are
|
||||||
|
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
|
||||||
|
# Reserved.
|
||||||
|
|
||||||
|
DEPTH=..\..\..
|
||||||
|
IGNORE_MANIFEST=1
|
||||||
|
|
||||||
|
MAKE_OBJ_TYPE = EXE
|
||||||
|
PROGRAM = .\$(OBJDIR)\htmlrobot.exe
|
||||||
|
|
||||||
|
MISCDEP= \
|
||||||
|
$(DIST)\lib\DebugRobot.lib \
|
||||||
|
$(DIST)\lib\raptorbase.lib \
|
||||||
|
$(DIST)\lib\xpcom32.lib \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
|
MYLIBS= \
|
||||||
|
$(DIST)\lib\DebugRobot.lib \
|
||||||
|
$(DIST)\lib\raptorbase.lib \
|
||||||
|
$(DIST)\lib\xpcom32.lib \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
|
LLIBS= $(MYLIBS) \
|
||||||
|
shell32.lib \
|
||||||
|
-SUBSYSTEM:CONSOLE
|
||||||
|
|
||||||
|
CPPSRCS= \
|
||||||
|
RobotMain.cpp \
|
||||||
|
$(NULL)
|
||||||
|
|
||||||
|
CPP_OBJS= \
|
||||||
|
.\$(OBJDIR)\RobotMain.obj
|
||||||
|
|
||||||
|
LINCS=-I$(XPDIST)\public\xpcom -I$(XPDIST)\public\raptor -I$(XPDIST)\public\netlib -I..
|
||||||
|
|
||||||
|
include <$(DEPTH)\config\rules.mak>
|
||||||
|
|
||||||
|
install:: $(PROGRAM)
|
||||||
|
$(MAKE_INSTALL) $(PROGRAM) $(DIST)\bin
|
||||||
|
|
||||||
|
clobber::
|
||||||
|
rm -f $(DIST)\bin\htmlrobot.exe
|
Загрузка…
Ссылка в новой задаче