]> git.saurik.com Git - wxWidgets.git/blobdiff - tests/benchmarks/makefile.vc
added wxString benchmark using 2.8's HTML parser
[wxWidgets.git] / tests / benchmarks / makefile.vc
index d6a3a3cf7ba7828c27bdc1b27de81351b5f5c7bd..90e4d8832f1a206d8a0a9f74d1d96d8e04b8c705 100644 (file)
@@ -30,6 +30,8 @@ BENCH_CXXFLAGS = /M$(__RUNTIME_LIBS_8)$(__DEBUGRUNTIME_3) /DWIN32 \
        $(CXXFLAGS)
 BENCH_OBJECTS =  \
        $(OBJS)\bench_bench.obj \
+       $(OBJS)\bench_htmlpars.obj \
+       $(OBJS)\bench_htmltag.obj \
        $(OBJS)\bench_strings.obj \
        $(OBJS)\bench_tls.obj
 
@@ -231,7 +233,7 @@ $(OBJS):
 
 ### Targets: ###
 
-all: $(OBJS)\bench.exe
+all: $(OBJS)\bench.exe data
 
 clean: 
        -if exist $(OBJS)\*.obj del $(OBJS)\*.obj
@@ -246,9 +248,19 @@ $(OBJS)\bench.exe: $(BENCH_OBJECTS)
        $(BENCH_OBJECTS)  $(__WXLIB_BASE_p)  $(__WXLIB_MONO_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXUNICODEFLAG)$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(EXTRALIBS_FOR_BASE) $(__UNICOWS_LIB_p) $(__GDIPLUS_LIB_p) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib
 <<
 
+data: 
+       if not exist $(OBJS) mkdir $(OBJS)
+       for %f in (htmltest.html) do if not exist $(OBJS)\%f copy .\%f $(OBJS)
+
 $(OBJS)\bench_bench.obj: .\bench.cpp
        $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\bench.cpp
 
+$(OBJS)\bench_htmlpars.obj: .\htmlparser\htmlpars.cpp
+       $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\htmlparser\htmlpars.cpp
+
+$(OBJS)\bench_htmltag.obj: .\htmlparser\htmltag.cpp
+       $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\htmlparser\htmltag.cpp
+
 $(OBJS)\bench_strings.obj: .\strings.cpp
        $(CXX) /c /nologo /TP /Fo$@ $(BENCH_CXXFLAGS) .\strings.cpp