0
0
mirror of https://github.com/zeux/pugixml.git synced 2024-12-28 14:48:43 +08:00

unicode: Added Linux build rules, converted Jamrules.jam to Unix file endings

git-svn-id: http://pugixml.googlecode.com/svn/trunk@278 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
arseny.kapoulkine 2010-04-20 20:44:06 +00:00
parent 7fa89486bf
commit 20edc02ff7

View File

@ -1,7 +1,16 @@
# Rules for Jamfile.jam
if ( $(toolset:I=^mingw) )
if ( $(toolset:I=^mingw) || $(toolset) = "gcc" )
{
if ( $(toolset) = "gcc" )
{
GCCPATH = "" ;
}
else
{
GCCPATH = "%$(toolset)_PATH%\bin\\" ;
}
CCFLAGS += -D$(defines) ;
if ( $(configuration) = "debug" )
@ -20,22 +29,22 @@ if ( $(toolset:I=^mingw) )
actions ObjectAction
{
"%$(toolset)_PATH%\bin\gcc" -W -Wall -Wextra -Werror -pedantic -c $(>) -o $(<) $(CCFLAGS)
"$(GCCPATH)gcc" -W -Wall -Wextra -Werror -pedantic -c $(>) -o $(<) $(CCFLAGS)
}
actions LibraryAction
{
"%$(toolset)_PATH%\bin\ar" rc $(<) $(>)
"$(GCCPATH)ar" rc $(<) $(>)
}
actions LinkAction
{
"%$(toolset)_PATH%\bin\g++" $(>) -o $(<) -static-libgcc $(LDFLAGS)
"$(GCCPATH)g++" $(>) -o $(<) -static-libgcc $(LDFLAGS)
}
actions CoverageAction
{
"%$(toolset)_PATH%\bin\gcov" $(>:\\) $(GCOVFLAGS) | perl tests/gcov-filter.pl
"$(GCCPATH)gcov" $(>:\\) $(GCOVFLAGS) | perl tests/gcov-filter.pl
}
}
else if ( $(toolset:I=^msvc) )
@ -256,6 +265,25 @@ else
exit "Unknown toolset $(toolset)!" ;
}
if ( $(UNIX) )
{
actions screenoutput RunAction
{
$(>)
}
actions quietly ignore MakeDirAction
{
mkdir -p $(<)
}
actions quietly ignore DeleteAction
{
rm -f $(>)
}
}
else
{
actions screenoutput RunAction
{
$(>:\\)
@ -270,6 +298,7 @@ actions quietly ignore DeleteAction
{
del /F $(>:\\) >nul 2>&1
}
}
rule MakeFileDir TARGET
{