mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Add nsFile* to Windows build
This commit is contained in:
parent
a7d859328e
commit
6de1ece277
@ -1,6 +1,11 @@
|
||||
#include "nsFileSpec.h"
|
||||
#include "nsFileStream.h"
|
||||
|
||||
#ifdef NS_USING_STL
|
||||
using std::endl;
|
||||
using std::cout;
|
||||
#endif
|
||||
|
||||
NS_NAMESPACE FileTest
|
||||
{
|
||||
NS_NAMESPACE_PROTOTYPE void WriteStuff(nsOutputFileStream& s);
|
||||
@ -59,7 +64,7 @@ void main()
|
||||
|
||||
// Test of nsOutputFileStream
|
||||
|
||||
nsFilePath myTextFilePath("/Development/iotest.txt");
|
||||
nsFilePath myTextFilePath("iotest.txt");
|
||||
|
||||
{
|
||||
nsOut << "WRITING IDENTICAL OUTPUT TO " << (const char*)myTextFilePath << nsEndl << nsEndl;
|
||||
|
@ -22,15 +22,17 @@ PROG0 = .\$(OBJDIR)\TimerTest.exe
|
||||
PROG1 = .\$(OBJDIR)\TestAtoms.exe
|
||||
PROG2 = .\$(OBJDIR)\CvtURL.exe
|
||||
PROG3 = .\$(OBJDIR)\TestCRT.exe
|
||||
PROG4 = .\$(OBJDIR)\FilesTest.exe
|
||||
RESFILE = timer.res
|
||||
PROGRAMS = $(PROG0) $(PROG1) \
|
||||
!ifdef MODULAR_NETLIB
|
||||
$(PROG2) \
|
||||
$(PROG3) \
|
||||
!endif
|
||||
$(NULL)
|
||||
$(PROG4) \
|
||||
$(NULL)
|
||||
|
||||
LINCS=-I..\src -I$(PUBLIC)\xpcom -I$(PUBLIC)\netlib
|
||||
LINCS=-I..\src -I$(PUBLIC)\xpcom -I$(PUBLIC)\netlib -I$(PUBLIC)\raptor
|
||||
|
||||
LLIBS= \
|
||||
$(DIST)\lib\xpcom32.lib \
|
||||
@ -54,6 +56,7 @@ install:: $(PROGRAMS)
|
||||
$(MAKE_INSTALL) $(PROG2) $(DIST)\bin
|
||||
$(MAKE_INSTALL) $(PROG3) $(DIST)\bin
|
||||
!endif
|
||||
$(MAKE_INSTALL) $(PROG4) $(DIST)\bin
|
||||
|
||||
clobber::
|
||||
rm -f $(DIST)\bin\TimerTest.exe
|
||||
@ -62,6 +65,7 @@ clobber::
|
||||
rm -f $(DIST)\bin\CvtURL.exe
|
||||
rm -f $(DIST)\bin\TestCRT.exe
|
||||
!endif
|
||||
rm -f $(DIST)\bin\FilesTest.exe
|
||||
|
||||
# Move this into config/obj.inc when it's allowed
|
||||
.cpp{.\$(OBJDIR)\}.exe:
|
||||
@ -83,6 +87,8 @@ $(PROG0): $(OBJDIR) TimerTest.cpp $(RESFILE)
|
||||
|
||||
$(PROG1): $(OBJDIR) TestAtoms.cpp
|
||||
|
||||
$(PROG4): $(OBJDIR) FilesTest.cpp
|
||||
|
||||
!ifdef MODULAR_NETLIB
|
||||
$(PROG2): $(OBJDIR) CvtURL.cpp
|
||||
|
||||
|
@ -1,6 +1,11 @@
|
||||
#include "nsFileSpec.h"
|
||||
#include "nsFileStream.h"
|
||||
|
||||
#ifdef NS_USING_STL
|
||||
using std::endl;
|
||||
using std::cout;
|
||||
#endif
|
||||
|
||||
NS_NAMESPACE FileTest
|
||||
{
|
||||
NS_NAMESPACE_PROTOTYPE void WriteStuff(nsOutputFileStream& s);
|
||||
@ -59,7 +64,7 @@ void main()
|
||||
|
||||
// Test of nsOutputFileStream
|
||||
|
||||
nsFilePath myTextFilePath("/Development/iotest.txt");
|
||||
nsFilePath myTextFilePath("iotest.txt");
|
||||
|
||||
{
|
||||
nsOut << "WRITING IDENTICAL OUTPUT TO " << (const char*)myTextFilePath << nsEndl << nsEndl;
|
||||
|
Loading…
Reference in New Issue
Block a user