Module: wine Branch: master Commit: d5aa3d1cc960047cdc2e8714deac3e9adbcc79b2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d5aa3d1cc960047cdc2e8714de...
Author: André Hentschel nerv@dawncrow.de Date: Mon Nov 8 18:52:12 2010 +0100
winebuild: Add subsystem wince.
---
tools/winebuild/build.h | 1 + tools/winebuild/main.c | 3 ++- tools/winebuild/winebuild.man.in | 5 ++++- 3 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/tools/winebuild/build.h b/tools/winebuild/build.h index eec682f..b03b6b2 100644 --- a/tools/winebuild/build.h +++ b/tools/winebuild/build.h @@ -207,6 +207,7 @@ struct strarray #define IMAGE_SUBSYSTEM_NATIVE 1 #define IMAGE_SUBSYSTEM_WINDOWS_GUI 2 #define IMAGE_SUBSYSTEM_WINDOWS_CUI 3 +#define IMAGE_SUBSYSTEM_WINDOWS_CE_GUI 9
/* global functions */
diff --git a/tools/winebuild/main.c b/tools/winebuild/main.c index 0fc351c..7c38e44 100644 --- a/tools/winebuild/main.c +++ b/tools/winebuild/main.c @@ -165,6 +165,7 @@ static void set_subsystem( const char *subsystem, DLLSPEC *spec ) if (!strcmp( str, "native" )) spec->subsystem = IMAGE_SUBSYSTEM_NATIVE; else if (!strcmp( str, "windows" )) spec->subsystem = IMAGE_SUBSYSTEM_WINDOWS_GUI; else if (!strcmp( str, "console" )) spec->subsystem = IMAGE_SUBSYSTEM_WINDOWS_CUI; + else if (!strcmp( str, "wince" )) spec->subsystem = IMAGE_SUBSYSTEM_WINDOWS_CE_GUI; else if (!strcmp( str, "win16" )) spec->type = SPEC_WIN16; else fatal_error( "Invalid subsystem name '%s'\n", subsystem ); if (major) @@ -258,7 +259,7 @@ static const char usage_str[] = " -o, --output=NAME Set the output file name (default: stdout)\n" " -r, --res=RSRC.RES Load resources from RSRC.RES\n" " --save-temps Do not delete the generated intermediate files\n" -" --subsystem=SUBSYS Set the subsystem (one of native, windows, console)\n" +" --subsystem=SUBSYS Set the subsystem (one of native, windows, console, wince)\n" " -u, --undefined=SYMBOL Add an undefined reference to SYMBOL when linking\n" " -v, --verbose Display the programs invoked\n" " --version Print the version and exit\n" diff --git a/tools/winebuild/winebuild.man.in b/tools/winebuild/winebuild.man.in index 2dcd3c0..479bb1f 100644 --- a/tools/winebuild/winebuild.man.in +++ b/tools/winebuild/winebuild.man.in @@ -203,7 +203,10 @@ for a command line executable, for a graphical executable, .br .B native -for a native-mode dll. +for a native-mode dll, +.br +.B wince +for a ce dll. .br The entry point of a command line executable is a normal C \fBmain\fR function. A \fBwmain\fR function can be used instead if you need the