From 77c9a23bfbf748c70b3ab33b06c5b188eaa3bd25 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Tue, 25 May 2010 21:50:46 +0000 Subject: Added build support for Sun C++ git-svn-id: http://pugixml.googlecode.com/svn/trunk@453 99668b35-9821-0410-8761-19e4c4f06640 --- Jamrules.jam | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'Jamrules.jam') diff --git a/Jamrules.jam b/Jamrules.jam index 5837dda..bed6458 100644 --- a/Jamrules.jam +++ b/Jamrules.jam @@ -285,6 +285,43 @@ else if ( $(toolset:I=^bcc) ) { } } +else if ( $(toolset:I=^suncc) ) +{ + CCFLAGS += -D$(defines) ; + + if ( $(configuration) = "debug" ) + { + CCFLAGS += -D_DEBUG ; + } + else + { + CCFLAGS += -DNDEBUG -O ; + } + + if ( PUGIXML_NO_EXCEPTIONS in $(defines) ) + { + CCFLAGS += -noex ; + } + + actions ObjectAction + { + sunCC $(CCFLAGS) +w -xwe -c -o $(<) $(>) + } + + actions LibraryAction + { + ar rcs $(<) $(>) + } + + actions LinkAction + { + sunCC $(>) -o $(<) $(LDFLAGS) + } + + actions CoverageAction + { + } +} else { exit "Unknown toolset $(toolset)!" ; -- cgit v1.2.3