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:
parent
7fa89486bf
commit
20edc02ff7
53
Jamrules.jam
53
Jamrules.jam
@ -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,19 +265,39 @@ else
|
||||
exit "Unknown toolset $(toolset)!" ;
|
||||
}
|
||||
|
||||
actions screenoutput RunAction
|
||||
if ( $(UNIX) )
|
||||
{
|
||||
actions screenoutput RunAction
|
||||
{
|
||||
$(>)
|
||||
}
|
||||
|
||||
actions quietly ignore MakeDirAction
|
||||
{
|
||||
mkdir -p $(<)
|
||||
}
|
||||
|
||||
actions quietly ignore DeleteAction
|
||||
{
|
||||
rm -f $(>)
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
actions screenoutput RunAction
|
||||
{
|
||||
$(>:\\)
|
||||
}
|
||||
}
|
||||
|
||||
actions quietly ignore MakeDirAction
|
||||
{
|
||||
actions quietly ignore MakeDirAction
|
||||
{
|
||||
mkdir $(<:\\) >nul 2>&1
|
||||
}
|
||||
}
|
||||
|
||||
actions quietly ignore DeleteAction
|
||||
{
|
||||
actions quietly ignore DeleteAction
|
||||
{
|
||||
del /F $(>:\\) >nul 2>&1
|
||||
}
|
||||
}
|
||||
|
||||
rule MakeFileDir TARGET
|
||||
|
Loading…
x
Reference in New Issue
Block a user