diff options
Diffstat (limited to 'dist/win_projects/genproject.template')
| -rw-r--r-- | dist/win_projects/genproject.template | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/dist/win_projects/genproject.template b/dist/win_projects/genproject.template index faf8dd96..8dbfbdad 100644 --- a/dist/win_projects/genproject.template +++ b/dist/win_projects/genproject.template @@ -60,6 +60,12 @@ declare function local:isRelease($config) as xs:boolean contains($config,"Release") }; +(: whether use WinMainCRTStartup as EntryPoint :) +declare function local:isWinMain($project) as xs:boolean +{ + contains($project/configuration/text(),"WinMain") +}; + declare function local:characterSet() { if ($mobile) then "1" else "2" @@ -297,8 +303,9 @@ local:indent(6),<Tool> {local:makeImportLibrary($project,$config)} {local:makeModuleDefinition($project,$config)} {attribute{"TargetMachine"}{if (contains($platform, "(ARMV4)")) then "3" else "0"}} + {if ($mobile) then (attribute{"SubSystem"}{"9"}) else ()} {if ($project/type eq "app" and $mobile) then - (attribute{"SubSystem"}{"9"},attribute{"EntryPointSymbol"}{"WinMainCRTStartup"}) + (attribute{"EntryPointSymbol"}{if (local:isWinMain($project)) then "WinMainCRTStartup" else "mainACRTStartup"}) else ()} </Tool> }; |
