summaryrefslogtreecommitdiff
path: root/Jamrules.jam
diff options
context:
space:
mode:
authorarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-10-29 21:47:37 +0000
committerarseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640>2009-10-29 21:47:37 +0000
commita70f6b1a70aa1c31cedd3659e070bc46a8722fc1 (patch)
tree949a1d6e9d68786effe1bcc3b3175e5d784dd6d4 /Jamrules.jam
parent1fdd096c8011446935396baf447bfed9331f3ff3 (diff)
tests: CodeWarrior and BCC supported
git-svn-id: http://pugixml.googlecode.com/svn/trunk@195 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'Jamrules.jam')
-rw-r--r--Jamrules.jam78
1 files changed, 76 insertions, 2 deletions
diff --git a/Jamrules.jam b/Jamrules.jam
index 8733b25..307e192 100644
--- a/Jamrules.jam
+++ b/Jamrules.jam
@@ -30,7 +30,7 @@ if ( $(toolset:I=^mingw) )
actions LinkAction
{
- "%$(toolset)_PATH%\bin\g++" $(>) -o $(<) $(LDFLAGS)
+ "%$(toolset)_PATH%\bin\g++" $(>) -o $(<) -static-libgcc $(LDFLAGS)
}
actions CoverageAction
@@ -110,7 +110,7 @@ else if ( $(toolset) = "ic8" )
actions ObjectAction
{
- "%$(toolset)_PATH%\bin\icl.exe" /W4 /WX /Wport /Qwd981,444,280,383,909,304,167 /I"%$(msvc)_PATH%\include" /I"%$(toolset)_PATH%\include" /c $(>) /Fo$(<) /nologo $(CCFLAGS)
+ "%$(toolset)_PATH%\bin\icl.exe" /W4 /WX /Wport /Qwd981,444,280,383,909,304,167,177 /I"%$(msvc)_PATH%\include" /I"%$(toolset)_PATH%\include" /c $(>) /Fo$(<) /nologo $(CCFLAGS)
}
actions LibraryAction
@@ -164,6 +164,80 @@ else if ( $(toolset:I=^dmc) )
{
}
}
+else if ( $(toolset:I=^cw) )
+{
+ cw_bin = "%$(toolset)_PATH%\\Other Metrowerks Tools\\Command Line Tools" ;
+ CCFLAGS += -D$(defines) ;
+
+ if ( $(configuration) = "debug" )
+ {
+ CCFLAGS += -D_DEBUG ;
+ }
+ else
+ {
+ CCFLAGS += -DNDEBUG -O4 ;
+ }
+
+ if ( PUGIXML_NO_EXCEPTIONS in $(defines) )
+ {
+ CCFLAGS += -Cpp_exceptions off ;
+ }
+
+ actions ObjectAction
+ {
+ "$(cw_bin)\mwcc.exe" -c -cwd include -ansi strict -iso_templates on -msext off -w all,cmdline,iserror,nonotused,nonotinlined,noimplicitconv,nounwanted $(>) -o $(<) $(CCFLAGS)
+ }
+
+ actions LibraryAction
+ {
+ "$(cw_bin)\mwld.exe" -library -o $(<) $(>)
+ }
+
+ actions LinkAction
+ {
+ "$(cw_bin)\mwld.exe" -subsystem console -o $(<) $(>) $(LDFLAGS)
+ }
+
+ actions CoverageAction
+ {
+ }
+}
+else if ( $(toolset:I=^bcc) )
+{
+ CCFLAGS += -D$(defines) ;
+
+ if ( $(configuration) = "debug" )
+ {
+ CCFLAGS += -D_DEBUG ;
+ }
+ else
+ {
+ CCFLAGS += -DNDEBUG -Ox ;
+ }
+
+ actions ObjectAction
+ {
+ "%$(toolset)_PATH%\bin\bcc32.exe" $(CCFLAGS) -c -q -Q -fp -w -w! -w-8026 -w-8027 -w-8091 -w-8004 -o $(<) $(>)
+ }
+
+ actions LibraryAction
+ {
+ "%$(toolset)_PATH%\bin\tlib.exe" /C $(<:\\) -+$(>:\\)
+ }
+
+ actions LinkAction
+ {
+ "%$(toolset)_PATH%\bin\ilink32.exe" -L"%$(toolset)_PATH%\lib" -Tpe -ap -Gn -x -c "%$(toolset)_PATH%\lib\c0x32.obj" $(>:\\) , $(<:\\) , , $(LDFLAGS:\\) cw32 import32
+ }
+
+ actions CoverageAction
+ {
+ }
+}
+else
+{
+ exit "Unknown toolset $(toolset)!" ;
+}
actions screenoutput RunAction
{