Add build instructions for WinCE target

Fix typo in Core.h declarations for WinCE
Drop mcpu tuning as it conflicts with march
(armv5te does not target Jazelle but our code is C so it's fine i think...)
This commit is contained in:
svp 2025-10-11 20:21:58 +02:00
parent fe76435079
commit 6afdb0f176
4 changed files with 12 additions and 3 deletions

View File

@ -176,7 +176,7 @@ endif
ifeq ($(PLAT),wince) ifeq ($(PLAT),wince)
CC = arm-mingw32ce-gcc CC = arm-mingw32ce-gcc
OEXT = .exe OEXT = .exe
CFLAGS += -march=armv5tej -mcpu=arm926ej-s -DUNICODE -D_WIN32_WCE CFLAGS += -march=armv5te -DUNICODE -D_WIN32_WCE -std=gnu99
LDFLAGS = -g LDFLAGS = -g
LIBS = -lcoredll -lws2 LIBS = -lcoredll -lws2
BUILD_DIR = build/wince BUILD_DIR = build/wince

View File

@ -401,6 +401,15 @@ The PowerPC build will usually perform much better
[Guide for Carbide.c++](misc/symbian/readme.md) [Guide for Carbide.c++](misc/symbian/readme.md)
#### Windows CE / PocketPC
1. Install libmpfr-dev (or non-Debian equivalent)
2. Unpack [the Windows CE GCC Toolchain](https://cegcc.sourceforge.net/) and update your $PATH to include it
3. Add the following symbolic links in ```/usr/lib/i386-linux-gnu/``` to account for old toolchain versions:
* ```libmpfr.so.1``` -> ```libmpfr.so```
* ```libgmp.so.3``` -> ```libgmp.so```
4. Run ```make wince```
#### Other systems #### Other systems
You'll have to write the necessary code. You should read `portability.md` in doc folder. You'll have to write the necessary code. You should read `portability.md` in doc folder.

View File

@ -670,7 +670,7 @@ typedef cc_uint8 cc_bool;
#define DEFAULT_NET_BACKEND CC_NET_BACKEND_BUILTIN #define DEFAULT_NET_BACKEND CC_NET_BACKEND_BUILTIN
#define DEFAULT_AUD_BACKEND CC_AUD_BACKEND_NULL #define DEFAULT_AUD_BACKEND CC_AUD_BACKEND_NULL
#define DEFAULT_GFX_BACKEND CC_GFX_BACKEND_SOFTFP #define DEFAULT_GFX_BACKEND CC_GFX_BACKEND_SOFTFP
#define DEFAULT_SSL_BACKEND CC_SSL_BACKEND_BEARSS #define DEFAULT_SSL_BACKEND CC_SSL_BACKEND_BEARSSL
#endif #endif
#endif #endif

View File

@ -44,7 +44,7 @@ static CRITICAL_SECTION dir_lock;
*#########################################################################################################################*/ *#########################################################################################################################*/
#include "main_impl.h" #include "main_impl.h"
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow) { int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow) {
cc_result res; cc_result res;
SetupProgram(0, NULL); SetupProgram(0, NULL);