Making work on Smartphones. WINCE ONLY

This commit is contained in:
dougt%meer.net 2006-01-20 03:48:34 +00:00
Родитель 3015a7e43d
Коммит a90f63f5fe
7 изменённых файлов: 608 добавлений и 5 удалений

Просмотреть файл

@ -0,0 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "static", "static.vcproj", "{082BAB06-D10F-4C57-B123-F84DC06C246D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I) = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).ActiveCfg = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Build.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
{082BAB06-D10F-4C57-B123-F84DC06C246D}.Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I).Deploy.0 = Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

Просмотреть файл

@ -0,0 +1,254 @@
# Microsoft eMbedded Visual Tools Project File - Name="static" - Package Owner=<4>
# Microsoft eMbedded Visual Tools Generated Build File, Format Version 6.02
# ** DO NOT EDIT **
# TARGTYPE "Win32 (WCE ARMV4) Static Library" 0xa304
CFG=static - Win32 (WCE ARMV4) Debug
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "static.vcn".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "static.vcn" CFG="static - Win32 (WCE ARMV4) Debug"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "static - Win32 (WCE ARMV4) Release" (based on "Win32 (WCE ARMV4) Static Library")
!MESSAGE "static - Win32 (WCE ARMV4) Debug" (based on "Win32 (WCE ARMV4) Static Library")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName ""
# PROP Scc_LocalPath ""
# PROP ATL_Project 2
CPP=clarm.exe
!IF "$(CFG)" == "static - Win32 (WCE ARMV4) Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "ARMV4Rel"
# PROP BASE Intermediate_Dir "ARMV4Rel"
# PROP BASE CPU_ID "{ECBEA43D-CD7B-4852-AD55-D4227B5D624B}"
# PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 0
# PROP Output_Dir "ARMV4Rel"
# PROP Intermediate_Dir "ARMV4Rel"
# PROP CPU_ID "{ECBEA43D-CD7B-4852-AD55-D4227B5D624B}"
# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "NDEBUG" /D "ARM" /D "_ARM_" /D "ARMV4" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_LIB" /YX /O2 /M$(CECrtMT) /c
# ADD CPP /nologo /W3 /Gy /I "..\..\\" /I "..\..\include" /D "NDEBUG" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "ARM" /D "_ARM_" /D "ARMV4" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_LIB" /D "MOZCE_SHUNT_EXPORTS" /O2 /M$(CECrtMT) /c
# SUBTRACT CPP /YX
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo /out:"ARMV4Rel\shunt.lib"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
!ELSEIF "$(CFG)" == "static - Win32 (WCE ARMV4) Debug"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 1
# PROP BASE Output_Dir "ARMV4Dbg"
# PROP BASE Intermediate_Dir "ARMV4Dbg"
# PROP BASE CPU_ID "{ECBEA43D-CD7B-4852-AD55-D4227B5D624B}"
# PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
# PROP Use_Debug_Libraries 1
# PROP Output_Dir "ARMV4Dbg"
# PROP Intermediate_Dir "ARMV4Dbg"
# PROP CPU_ID "{ECBEA43D-CD7B-4852-AD55-D4227B5D624B}"
# PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
# PROP Target_Dir ""
# ADD BASE CPP /nologo /W3 /Zi /Od /D "DEBUG" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "ARM" /D "_ARM_" /D "ARMV4" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_LIB" /YX /M$(CECrtMTDebug) /c
# ADD CPP /nologo /W3 /Zi /Od /Gy /I "..\..\\" /I "..\..\include" /D "DEBUG" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "ARM" /D "_ARM_" /D "ARMV4" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_LIB" /D "MOZCE_SHUNT_EXPORTS" /M$(CECrtMTDebug) /c
# SUBTRACT CPP /YX
LIB32=link.exe -lib
# ADD BASE LIB32 /nologo
# ADD LIB32 /nologo /out:"ARMV4Dbg\shunt.lib"
BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
!ENDIF
# Begin Target
# Name "static - Win32 (WCE ARMV4) Release"
# Name "static - Win32 (WCE ARMV4) Debug"
# Begin Group "Source Files"
# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
# Begin Source File
SOURCE=..\..\a2w.cpp
DEP_CPP_A2W_C=\
"..\..\include\mozce_defs.h"\
"..\..\mozce_internal.h"\
# End Source File
# Begin Source File
SOURCE=..\..\assert.cpp
DEP_CPP_ASSER=\
"..\..\include\mozce_defs.h"\
"..\..\mozce_internal.h"\
# End Source File
# Begin Source File
SOURCE=..\..\clipboard.cpp
DEP_CPP_CLIPB=\
"..\..\include\mozce_defs.h"\
"..\..\mozce_internal.h"\
# End Source File
# Begin Source File
SOURCE=..\..\direct.cpp
DEP_CPP_DIREC=\
"..\..\include\mozce_defs.h"\
"..\..\mozce_internal.h"\
# End Source File
# Begin Source File
SOURCE=..\..\errno.cpp
DEP_CPP_ERRNO=\
"..\..\include\mozce_defs.h"\
"..\..\mozce_internal.h"\
# End Source File
# Begin Source File
SOURCE=..\..\io.cpp
DEP_CPP_IO_CP=\
"..\..\include\mozce_defs.h"\
"..\..\mozce_internal.h"\
# End Source File
# Begin Source File
SOURCE=..\..\mbstring.cpp
DEP_CPP_MBSTR=\
"..\..\include\mozce_defs.h"\
"..\..\mozce_internal.h"\
# End Source File
# Begin Source File
SOURCE=..\..\nclog.cpp
DEP_CPP_NCLOG=\
"..\..\include\mozce_defs.h"\
"..\..\mozce_internal.h"\
# End Source File
# Begin Source File
SOURCE=..\..\process.cpp
DEP_CPP_PROCE=\
"..\..\include\mozce_defs.h"\
"..\..\mozce_internal.h"\
{$(INCLUDE)}"kfuncs.h"\
# End Source File
# Begin Source File
SOURCE=..\..\signal.cpp
DEP_CPP_SIGNA=\
"..\..\include\mozce_defs.h"\
"..\..\mozce_internal.h"\
# End Source File
# Begin Source File
SOURCE=..\..\stat.cpp
DEP_CPP_STAT_=\
"..\..\include\mozce_defs.h"\
"..\..\include\time_conversions.h"\
"..\..\mozce_internal.h"\
# End Source File
# Begin Source File
SOURCE=..\..\stdio.cpp
DEP_CPP_STDIO=\
"..\..\include\mozce_defs.h"\
"..\..\mozce_internal.h"\
# End Source File
# Begin Source File
SOURCE=..\..\stdlib.cpp
DEP_CPP_STDLI=\
"..\..\include\mozce_defs.h"\
"..\..\mozce_internal.h"\
# End Source File
# Begin Source File
SOURCE=..\..\string.cpp
DEP_CPP_STRIN=\
"..\..\include\mozce_defs.h"\
"..\..\mozce_internal.h"\
# End Source File
# Begin Source File
SOURCE=..\..\time.cpp
DEP_CPP_TIME_=\
"..\..\include\mozce_defs.h"\
"..\..\include\time_conversions.h"\
"..\..\mozce_internal.h"\
# End Source File
# Begin Source File
SOURCE=..\..\w2a.cpp
DEP_CPP_W2A_C=\
"..\..\include\mozce_defs.h"\
"..\..\mozce_internal.h"\
# End Source File
# Begin Source File
SOURCE=..\..\win32.cpp
DEP_CPP_WIN32=\
"..\..\include\mozce_defs.h"\
"..\..\mozce_internal.h"\
{$(INCLUDE)}"kfuncs.h"\
# End Source File
# Begin Source File
SOURCE=..\..\win32A.cpp
DEP_CPP_WIN32A=\
"..\..\include\mozce_defs.h"\
"..\..\mozce_internal.h"\
# End Source File
# Begin Source File
SOURCE=..\..\win32W.cpp
DEP_CPP_WIN32W=\
"..\..\include\mozce_defs.h"\
"..\..\mozce_internal.h"\
# End Source File
# End Group
# Begin Group "Header Files"
# PROP Default_Filter "h;hpp;hxx;hm;inl"
# End Group
# End Target
# End Project

Просмотреть файл

@ -0,0 +1,277 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="8.00"
Name="static"
ProjectGUID="{082BAB06-D10F-4C57-B123-F84DC06C246D}"
RootNamespace="static"
Keyword="Win32Proj"
>
<Platforms>
<Platform
Name="Windows Mobile 5.0 Pocket PC SDK (ARMV4I)"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)"
OutputDirectory="$(PlatformName)\Debug"
IntermediateDirectory="$(PlatformName)\Debug"
ConfigurationType="4"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
ExecutionBucket="7"
Optimization="0"
AdditionalIncludeDirectories="..\..\include"
PreprocessorDefinitions="_WIN32_WCE=$(CEVER);UNDER_CE=$(CEVER);WINCE;$(PLATFORMDEFINES);_DEBUG;DEBUG;_LIB;$(ARCHFAM);$(_ARCHFAM_);MOZCE_STATIC_BUILD"
MinimalRebuild="true"
ExceptionHandling="0"
RuntimeLibrary="1"
EnableFunctionLevelLinking="true"
TreatWChar_tAsBuiltInType="false"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="_DEBUG;_UNICODE;UNICODE;_WIN32_WCE;UNDER_CE"
Culture="1033"
AdditionalIncludeDirectories="$(IntDir)"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLibrarianTool"
AdditionalOptions=" /subsystem:windowsce,5.01 /machine:THUMB"
OutputFile="$(InputDir)/shunt_dbg.lib"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCCodeSignTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
<DeploymentTool
ForceDirty="-1"
RemoteDirectory=""
RegisterOutput="0"
AdditionalFiles=""
/>
<DebuggerTool
/>
</Configuration>
<Configuration
Name="Release|Windows Mobile 5.0 Pocket PC SDK (ARMV4I)"
OutputDirectory="$(PlatformName)\Release"
IntermediateDirectory="$(PlatformName)\Release"
ConfigurationType="4"
CharacterSet="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
ExecutionBucket="7"
Optimization="2"
AdditionalIncludeDirectories="..\..\include"
PreprocessorDefinitions="_WIN32_WCE=$(CEVER);UNDER_CE=$(CEVER);WINCE;$(PLATFORMDEFINES);NDEBUG;_LIB;$(ARCHFAM);$(_ARCHFAM_);"
ExceptionHandling="0"
RuntimeLibrary="0"
TreatWChar_tAsBuiltInType="false"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="3"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
PreprocessorDefinitions="NDEBUG;_UNICODE;UNICODE;_WIN32_WCE;UNDER_CE"
Culture="1033"
AdditionalIncludeDirectories="$(IntDir)"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLibrarianTool"
AdditionalOptions=" /subsystem:windowsce,5.01 /machine:THUMB"
OutputFile="$(InputDir)/shunt.lib"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCCodeSignTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
<DeploymentTool
ForceDirty="-1"
RemoteDirectory=""
RegisterOutput="0"
AdditionalFiles=""
/>
<DebuggerTool
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Source Files"
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
RelativePath="..\..\a2w.cpp"
>
</File>
<File
RelativePath="..\..\assert.cpp"
>
</File>
<File
RelativePath="..\..\clipboard.cpp"
>
</File>
<File
RelativePath="..\..\direct.cpp"
>
</File>
<File
RelativePath="..\..\errno.cpp"
>
</File>
<File
RelativePath="..\..\io.cpp"
>
</File>
<File
RelativePath="..\..\mbstring.cpp"
>
</File>
<File
RelativePath="..\..\nclog.cpp"
>
</File>
<File
RelativePath="..\..\process.cpp"
>
</File>
<File
RelativePath="..\..\signal.cpp"
>
</File>
<File
RelativePath="..\..\stat.cpp"
>
</File>
<File
RelativePath="..\..\stdio.cpp"
>
</File>
<File
RelativePath="..\..\stdlib.cpp"
>
</File>
<File
RelativePath="..\..\string.cpp"
>
</File>
<File
RelativePath="..\..\time.cpp"
>
</File>
<File
RelativePath="..\..\w2a.cpp"
>
</File>
<File
RelativePath="..\..\win32.cpp"
>
</File>
<File
RelativePath="..\..\win32A.cpp"
>
</File>
<File
RelativePath="..\..\win32W.cpp"
>
</File>
</Filter>
<Filter
Name="Header Files"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
</Filter>
<Filter
Name="Resource Files"
Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
>
</Filter>
<File
RelativePath=".\ReadMe.txt"
>
</File>
</Files>
<Globals>
</Globals>
</VisualStudioProject>

Просмотреть файл

@ -0,0 +1,29 @@
Microsoft eMbedded Visual Tools Workspace File, Format Version 4.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
Project: "static"=.\static.vcp - Package Owner=<4>
Package=<5>
{{{
}}}
Package=<4>
{{{
}}}
###############################################################################
Global:
Package=<5>
{{{
}}}
Package=<3>
{{{
}}}
###############################################################################

Просмотреть файл

@ -37,14 +37,14 @@
#ifndef _MOZCE_DEFS
#define _MOZCE_DEFS
#define MOZCE_SHUNT_API
#ifndef MOZCE_STATIC_BUILD
#ifdef MOZCE_SHUNT_EXPORTS
#define MOZCE_SHUNT_API __declspec(dllexport)
#else
#define MOZCE_SHUNT_API __declspec(dllimport)
#endif
#else
#define MOZCE_SHUNT_API
#endif
//#define USE_NC_LOGGING 1

Просмотреть файл

@ -393,6 +393,11 @@
#endif
#define CreateDIBitmap mozce_CreateDIBitmap
#ifdef CommDlgExtendedError
#undef CommDlgExtendedError
#endif
#define CommDlgExtendedError mozce_CommDlgExtendedError
#ifdef EnumChildWindows
#undef EnumChildWindows
#endif
@ -1324,6 +1329,7 @@ extern "C" {
MOZCE_SHUNT_API int mozce_MulDiv(int inNumber, int inNumerator, int inDenominator);
MOZCE_SHUNT_API int mozce_GetDIBits(HDC inDC, HBITMAP inBMP, UINT inStartScan, UINT inScanLines, LPVOID inBits, LPBITMAPINFO inInfo, UINT inUsage);
MOZCE_SHUNT_API int mozce_SetDIBits(HDC inDC, HBITMAP inBMP, UINT inStartScan, UINT inScanLines, CONST LPVOID inBits, CONST LPBITMAPINFO inInfo, UINT inUsage);
MOZCE_SHUNT_API DWORD mozce_CommDlgExtendedError(void);
MOZCE_SHUNT_API HBITMAP mozce_CreateDIBitmap(HDC inDC, CONST BITMAPINFOHEADER *inBMIH, DWORD inInit, CONST VOID *inBInit, CONST BITMAPINFO *inBMI, UINT inUsage);
MOZCE_SHUNT_API int mozce_SetPolyFillMode(HDC inDC, int inPolyFillMode);
MOZCE_SHUNT_API int mozce_SetStretchBltMode(HDC inDC, int inStretchMode);

Просмотреть файл

@ -52,6 +52,19 @@ extern "C" {
#define wcharcount(array) (sizeof(array) / sizeof(TCHAR))
MOZCE_SHUNT_API DWORD mozce_CommDlgExtendedError()
{
MOZCE_PRECHECK
#ifdef DEBUG
mozce_printf("mozce_CommDlgExtendedError called\n");
#endif
return -1 /*CDERR_DIALOGFAILURE*/;
}
MOZCE_SHUNT_API int mozce_MulDiv(int inNumber, int inNumerator, int inDenominator)
{
MOZCE_PRECHECK
@ -857,7 +870,7 @@ MOZCE_SHUNT_API BOOL mozce_GetUserName(LPTSTR inBuffer, LPDWORD inoutSize)
}
MOZCE_SHUNT_API DWORD mozce_GetShortPathName(LPCTSTR inLongPath, LPTSTR outShortPath, DWORD inBufferSize)
MOZCE_SHUNT_API DWORD mozce_GetShortPathName(LPCSTR inLongPath, LPSTR outShortPath, DWORD inBufferSize)
{
MOZCE_PRECHECK
@ -865,9 +878,9 @@ MOZCE_SHUNT_API DWORD mozce_GetShortPathName(LPCTSTR inLongPath, LPTSTR outShort
mozce_printf("-- mozce_GetShortPathName called\n");
#endif
DWORD retval = 0;
DWORD retval = strlen(inLongPath);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
strncpy(outShortPath, inLongPath, inBufferSize);
return retval;
}
@ -1109,6 +1122,8 @@ struct lconv s_locale_conv =
1, /* n_sign_posn */
};
MOZCE_SHUNT_API struct lconv * mozce_localeconv(void)
{
MOZCE_PRECHECK