diff options
| author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2015-02-17 17:25:57 +0000 |
|---|---|---|
| committer | <> | 2015-03-17 16:26:24 +0000 |
| commit | 780b92ada9afcf1d58085a83a0b9e6bc982203d1 (patch) | |
| tree | 598f8b9fa431b228d29897e798de4ac0c1d3d970 /dist/win_projects/genproject.template | |
| parent | 7a2660ba9cc2dc03a69ddfcfd95369395cc87444 (diff) | |
| download | berkeleydb-master.tar.gz | |
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> }; |
