WinCE build tool changes. stubbing out GetDIBits, clock. implementing FatalAppExitW. npodb

This commit is contained in:
Doug Turner 2008-09-29 10:48:58 -07:00
Родитель c62a92eb66
Коммит 8a057cab1f
6 изменённых файлов: 36 добавлений и 4 удалений

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

@ -438,6 +438,9 @@ MOZCE_SHUNT_API wchar_t *_wfullpath(wchar_t *abspath, const wchar_t *relpath, in
MOZCE_SHUNT_API HWND GetAncestor(HWND hwnd, UINT gaFlags); MOZCE_SHUNT_API HWND GetAncestor(HWND hwnd, UINT gaFlags);
MOZCE_SHUNT_API int _chdir (const char *dirname);
MOZCE_SHUNT_API int _wchdir (const wchar_t *dirname);
#ifdef __cplusplus #ifdef __cplusplus
}; };
#endif #endif

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

@ -158,6 +158,18 @@ MOZCE_SHUNT_API int remove(const char* inPath)
return retval; return retval;
} }
MOZCE_SHUNT_API int setmode(FILE*, int)
{
return 0;
}
MOZCE_SHUNT_API int _chdir (const char *dirname)
{
return 0;
}
MOZCE_SHUNT_API int _wchdir (const wchar_t *dirname)
{
return 0;
}
MOZCE_SHUNT_API char* getcwd(char* buff, size_t size) MOZCE_SHUNT_API char* getcwd(char* buff, size_t size)
{ {
WINCE_LOG_API_CALL("getcwd called.\n"); WINCE_LOG_API_CALL("getcwd called.\n");

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

@ -1193,7 +1193,6 @@ MOZCE_SHUNT_API DWORD SetNamedSecurityInfoW(unsigned short* pObjectName,
} }
MOZCE_SHUNT_API void FatalAppExitW(UINT uAction, LPCWSTR lpMessageText) MOZCE_SHUNT_API void FatalAppExitW(UINT uAction, LPCWSTR lpMessageText)
{ {
if ( ::MessageBoxW(NULL, lpMessageText, L"Runtime Error", MB_OKCANCEL | MB_ICONERROR) == IDCANCEL ) if ( ::MessageBoxW(NULL, lpMessageText, L"Runtime Error", MB_OKCANCEL | MB_ICONERROR) == IDCANCEL )
@ -1202,6 +1201,22 @@ MOZCE_SHUNT_API void FatalAppExitW(UINT uAction, LPCWSTR lpMessageText)
exit(-1); exit(-1);
} }
MOZCE_SHUNT_API int clock()
{
return -1;
}
MOZCE_SHUNT_API int GetDIBits(HDC hdc, HBITMAP hbmp, UINT uStartScan, UINT cScanLines,
LPVOID lpvBits, LPBITMAPINFO lpbi, UINT uUsage)
{
#if 0
return GetBitmapBits(hbmp,lpbi->bmiHeader.biSize, lpvBits);
#else
return 0;
#endif
}
#if 0 #if 0
{ {

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

@ -11,6 +11,7 @@ cl arm-wince-as.c
cl arm-wince-gcc.c cl arm-wince-gcc.c
cl arm-wince-lib.c cl arm-wince-lib.c
cl arm-wince-link.c cl arm-wince-link.c
cl arm-wince-res.c
rm *.obj rm *.obj
rm *.ilk rm *.ilk

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

@ -11,8 +11,8 @@
#define WCE_INC "c:\\Program Files\\Windows Mobile 6 SDK\\Smartphone\\Include\\Armv4i" #define WCE_INC "c:\\Program Files\\Windows Mobile 6 SDK\\Smartphone\\Include\\Armv4i"
#define WCE_LIB "c:\\Program Files\\Windows Mobile 6 SDK\\Smartphone\\Lib\\Armv4i" #define WCE_LIB "c:\\Program Files\\Windows Mobile 6 SDK\\Smartphone\\Lib\\Armv4i"
#define WCE_RC_BIN "c:\\Program Files\\Microsoft Visual Studio 8\\VC\\bin\\" //#define WCE_RC_BIN "c:\\Program Files\\Microsoft Visual Studio 8\\VC\\bin\\"
//#define WCE_RC_BIN "c:\\Program Files\\Microsoft SDKs\\Windows\\v6.0a\\bin\\" #define WCE_RC_BIN "c:\\Program Files\\Microsoft SDKs\\Windows\\v6.0\\bin\\"
#define SHUNT_LIB TOPSRCDIR "/build/wince/shunt/build/vs8/" #define SHUNT_LIB TOPSRCDIR "/build/wince/shunt/build/vs8/"
#define SHUNT_INC TOPSRCDIR "/build/wince/shunt/include/" #define SHUNT_INC TOPSRCDIR "/build/wince/shunt/include/"

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

@ -7,7 +7,8 @@
#endif #endif
#define WCE_BIN "c:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\ce\\bin\\x86_arm\\" #define WCE_BIN "c:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\ce\\bin\\x86_arm\\"
#define WCE_RC_BIN "c:\\Program Files\\Microsoft SDKs\\Windows\\v6.0a\\bin\\" //#define WCE_RC_BIN "c:\\Program Files\\Microsoft SDKs\\Windows\\v6.0a\\bin\\"
#define WCE_RC_BIN "c:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\bin\\"
#define WCE_CRT "c:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\ce\\lib\\armv4i" #define WCE_CRT "c:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\ce\\lib\\armv4i"
#define WCE_INC "c:\\Program Files\\Windows Mobile 6 SDK\\Smartphone\\Include\\Armv4i" #define WCE_INC "c:\\Program Files\\Windows Mobile 6 SDK\\Smartphone\\Include\\Armv4i"
#define WCE_LIB "c:\\Program Files\\Windows Mobile 6 SDK\\Smartphone\\Lib\\Armv4i" #define WCE_LIB "c:\\Program Files\\Windows Mobile 6 SDK\\Smartphone\\Lib\\Armv4i"