Added WinCE building support
git-svn-id: http://pugixml.googlecode.com/svn/trunk@835 99668b35-9821-0410-8761-19e4c4f06640
This commit is contained in:
parent
9133322c4c
commit
568648923c
40
Jamrules.jam
40
Jamrules.jam
@ -122,6 +122,19 @@ else if ( $(toolset:I=^msvc) )
|
|||||||
LDFLAGS += /DEBUG ;
|
LDFLAGS += /DEBUG ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( $(toolset:I=_wince) )
|
||||||
|
{
|
||||||
|
postfix = "\\x86_arm" ;
|
||||||
|
|
||||||
|
LDFLAGS += /SUBSYSTEM:WINDOWSCE ;
|
||||||
|
LDFLAGS += coredll.lib corelibc.lib ccrtrtti.lib ;
|
||||||
|
LDFLAGS += "/LIBPATH:\"%$(toolset)_PATH%\\lib\\armv4\"" ;
|
||||||
|
LDFLAGS += "/LIBPATH:\"%WINCESDK_PATH%\\lib\\armv4\"" ;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
local sdk_postfix ;
|
||||||
|
|
||||||
if ( $(toolset:I=x64$) )
|
if ( $(toolset:I=x64$) )
|
||||||
{
|
{
|
||||||
postfix = "\\amd64" ;
|
postfix = "\\amd64" ;
|
||||||
@ -134,6 +147,11 @@ else if ( $(toolset:I=^msvc) )
|
|||||||
sdk_postfix = "" ;
|
sdk_postfix = "" ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LDFLAGS += "/LIBPATH:\"%$(toolset)_PATH%\\lib$(postfix)\"" ;
|
||||||
|
LDFLAGS += "/LIBPATH:\"%$(toolset)_PATH%\\PlatformSDK\\lib$(postfix)\"" ;
|
||||||
|
LDFLAGS += "/LIBPATH:\"%WINSDK_PATH%\\lib$(sdk_postfix)\"" ;
|
||||||
|
}
|
||||||
|
|
||||||
rule GetCFlags CONFIG : DEFINES
|
rule GetCFlags CONFIG : DEFINES
|
||||||
{
|
{
|
||||||
local RESULT = /D$(DEFINES) ;
|
local RESULT = /D$(DEFINES) ;
|
||||||
@ -181,9 +199,10 @@ else if ( $(toolset:I=^msvc) )
|
|||||||
{
|
{
|
||||||
RESULT += /EHsc ;
|
RESULT += /EHsc ;
|
||||||
}
|
}
|
||||||
else if ( $(toolset) = "msvc6" || $(toolset) = "msvc71" )
|
else if ( $(toolset) = "msvc6" || $(toolset) = "msvc71" || $(toolset:I=_wince) )
|
||||||
{
|
{
|
||||||
# No no-exception STL in MSVC6, buggy no-exception STL in MSVC71
|
# No no-exception STL in MSVC6, buggy no-exception STL in MSVC71
|
||||||
|
# No proper runtime library variant for no-exception in WinCE (ccrtrtti.lib contains what() & dtor)
|
||||||
RESULT += /EHsc ;
|
RESULT += /EHsc ;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -191,12 +210,25 @@ else if ( $(toolset:I=^msvc) )
|
|||||||
RESULT += /D_HAS_EXCEPTIONS=0 ;
|
RESULT += /D_HAS_EXCEPTIONS=0 ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( $(toolset:I=_wince) )
|
||||||
|
{
|
||||||
|
RESULT += /D_WIN32_WCE /DARM ;
|
||||||
|
RESULT += "/I\"%$(toolset)_PATH%\\include\"" ;
|
||||||
|
RESULT += "/I\"%WINCESDK_PATH%\\Include\"" ;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
RESULT += "/I\"%$(toolset)_PATH%\\include\"" ;
|
||||||
|
RESULT += "/I\"%$(toolset)_PATH%\\PlatformSDK\\include\"" ;
|
||||||
|
RESULT += "/I\"%WINSDK_PATH%\\Include\"" ;
|
||||||
|
}
|
||||||
|
|
||||||
return $(RESULT) ;
|
return $(RESULT) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
actions ObjectAction
|
actions ObjectAction
|
||||||
{
|
{
|
||||||
"%$(toolset)_PATH%\bin$(postfix)\cl.exe" /WX /I"%$(toolset)_PATH%\include" /I"%$(toolset)_PATH%\PlatformSDK\include" /I"%WINSDK_PATH%\Include" /c $(>) /Fo$(<) /nologo $(CCFLAGS)
|
"%$(toolset)_PATH%\bin$(postfix)\cl.exe" /WX /c $(>) /Fo$(<) /nologo $(CCFLAGS)
|
||||||
}
|
}
|
||||||
|
|
||||||
actions LibraryAction
|
actions LibraryAction
|
||||||
@ -206,7 +238,7 @@ else if ( $(toolset:I=^msvc) )
|
|||||||
|
|
||||||
actions LinkAction
|
actions LinkAction
|
||||||
{
|
{
|
||||||
"%$(toolset)_PATH%\bin$(postfix)\link.exe" /SUBSYSTEM:CONSOLE /NOLOGO /OUT:$(<) /PDB:$(<:S=.pdb) $(>) /LIBPATH:"%$(toolset)_PATH%\lib$(postfix)" /LIBPATH:"%$(toolset)_PATH%\PlatformSDK\lib$(postfix)" /LIBPATH:"%WINSDK_PATH%\Lib$(sdk_postfix)" $(LDFLAGS)
|
"%$(toolset)_PATH%\bin$(postfix)\link.exe" /SUBSYSTEM:CONSOLE /NOLOGO /OUT:$(<) /PDB:$(<:S=.pdb) $(>) $(LDFLAGS)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ( $(toolset:I=^ic) )
|
else if ( $(toolset:I=^ic) )
|
||||||
@ -684,7 +716,7 @@ if ( $(UNIX) )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ( $(toolset:I=^(xbox360|ps3)) )
|
if ( $(toolset:I=(^xbox360|^ps3|wince$)) )
|
||||||
{
|
{
|
||||||
actions RunAction
|
actions RunAction
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user