Skip to content

Commit

Permalink
add project template for DMD,LDC and GDC
Browse files Browse the repository at this point in the history
  • Loading branch information
rainers committed Aug 2, 2016
1 parent 302d572 commit 6ae1168
Show file tree
Hide file tree
Showing 6 changed files with 131 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGES
Expand Up @@ -820,3 +820,7 @@ unreleased Version 0.3.44
* added $(Platform) as a settings macro replacement in addition to $(PlatformName)
* changed default output directory to $(PlatformName)/$(ConfigurationName)
* added x64 configurations to project templates
* added AppVeyor integration builds
* cv2pdb can now be enabled independent of debug engine
* dustmite: error messages written to stderr not grepped
* added project template to build with DMD, LDC and GDC for x86 and x64
5 changes: 5 additions & 0 deletions nsis/visuald.nsi
Expand Up @@ -243,6 +243,11 @@ Section "Visual Studio package" SecPackage
${File} ..\visuald\Templates\ProjectItems\ConsoleDMDLDC\ ConsoleApp.vstemplate
${File} ..\visuald\Templates\ProjectItems\ConsoleDMDLDC\ ConsoleApp.visualdproj

${SetOutPath} "$INSTDIR\Templates\ProjectItems\ConsoleDLG"
${File} ..\visuald\Templates\ProjectItems\ConsoleDLG\ main.d
${File} ..\visuald\Templates\ProjectItems\ConsoleDLG\ ConsoleApp.vstemplate
${File} ..\visuald\Templates\ProjectItems\ConsoleDLG\ ConsoleApp.visualdproj

${SetOutPath} "$INSTDIR\Templates\ProjectItems\WindowsApp"
${File} ..\visuald\Templates\ProjectItems\WindowsApp\ winmain.d
${File} ..\visuald\Templates\ProjectItems\WindowsApp\ WindowsApp.vstemplate
Expand Down
96 changes: 96 additions & 0 deletions visuald/Templates/ProjectItems/ConsoleDLG/ConsoleApp.visualdproj
@@ -0,0 +1,96 @@
<DProject>
<ProjectGuid>$guid1$</ProjectGuid>
<Config name="Debug DMD" platform="Win32">
<isX86_64>0</isX86_64>
<compiler>0</compiler>
<runCv2pdb>1</runCv2pdb>
<symdebug>1</symdebug>
<release>0</release>
</Config>
<Config name="Release DMD" platform="Win32">
<isX86_64>0</isX86_64>
<compiler>0</compiler>
<runCv2pdb>0</runCv2pdb>
<release>1</release>
<optimize>1</optimize>
<useInline>1</useInline>
</Config>
<Config name="Debug DMD" platform="x64">
<isX86_64>1</isX86_64>
<compiler>0</compiler>
<runCv2pdb>1</runCv2pdb>
<symdebug>1</symdebug>
<release>0</release>
</Config>
<Config name="Release DMD" platform="x64">
<isX86_64>1</isX86_64>
<compiler>0</compiler>
<runCv2pdb>0</runCv2pdb>
<release>1</release>
<optimize>1</optimize>
<useInline>1</useInline>
</Config>
<Config name="Debug LDC" platform="Win32">
<isX86_64>0</isX86_64>
<compiler>2</compiler>
<runCv2pdb>1</runCv2pdb>
<symdebug>1</symdebug>
<release>0</release>
</Config>
<Config name="Release LDC" platform="Win32">
<isX86_64>0</isX86_64>
<compiler>2</compiler>
<runCv2pdb>0</runCv2pdb>
<release>1</release>
<optimize>1</optimize>
<useInline>1</useInline>
</Config>
<Config name="Debug LDC" platform="x64">
<isX86_64>1</isX86_64>
<compiler>2</compiler>
<runCv2pdb>1</runCv2pdb>
<symdebug>1</symdebug>
<release>0</release>
</Config>
<Config name="Release LDC" platform="x64">
<isX86_64>1</isX86_64>
<compiler>2</compiler>
<runCv2pdb>0</runCv2pdb>
<release>1</release>
<optimize>1</optimize>
<useInline>1</useInline>
</Config>
<Config name="Debug GDC" platform="Win32">
<isX86_64>0</isX86_64>
<compiler>1</compiler>
<runCv2pdb>1</runCv2pdb>
<symdebug>1</symdebug>
<release>0</release>
</Config>
<Config name="Release GDC" platform="Win32">
<isX86_64>0</isX86_64>
<compiler>1</compiler>
<runCv2pdb>0</runCv2pdb>
<release>1</release>
<optimize>1</optimize>
<useInline>1</useInline>
</Config>
<Config name="Debug GDC" platform="x64">
<isX86_64>1</isX86_64>
<compiler>1</compiler>
<runCv2pdb>1</runCv2pdb>
<symdebug>1</symdebug>
<release>0</release>
</Config>
<Config name="Release GDC" platform="x64">
<isX86_64>1</isX86_64>
<compiler>1</compiler>
<runCv2pdb>0</runCv2pdb>
<release>1</release>
<optimize>1</optimize>
<useInline>1</useInline>
</Config>
<Folder name="$safeprojectname$">
<File path="main.d"></File>
</Folder>
</DProject>
18 changes: 18 additions & 0 deletions visuald/Templates/ProjectItems/ConsoleDLG/ConsoleApp.vstemplate
@@ -0,0 +1,18 @@
<VSTemplate Version="2.0.0" Type="Project" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005">
<TemplateData>
<Name>Console Application DMD/LDC/GDC x86/x64</Name>
<Description>A project for creating a command-line application with DMD/LDC/GDC for x86/x64</Description>
<Icon>__TemplateIcon.ico</Icon>
<ProjectType>D</ProjectType>
<SortOrder>50</SortOrder>
<NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp>
<CreateNewFolder>true</CreateNewFolder>
<DefaultName>ConsoleApplication</DefaultName>
<ProvideDefaultName>true</ProvideDefaultName>
</TemplateData>
<TemplateContent>
<Project File="ConsoleApp.visualdproj" ReplaceParameters="true">
<ProjectItem ReplaceParameters="true" OpenInEditor="true">main.d</ProjectItem>
</Project>
</TemplateContent>
</VSTemplate>
7 changes: 7 additions & 0 deletions visuald/Templates/ProjectItems/ConsoleDLG/main.d
@@ -0,0 +1,7 @@
import std.stdio;

int main(string[] argv)
{
writeln("Hello D-World!");
return 0;
}
1 change: 1 addition & 0 deletions visuald/Templates/Projects/DTemplates.vsdir
@@ -1,6 +1,7 @@
..\ProjectItems\ConsoleApp\ConsoleApp.vstemplate|{002A2DE9-8BB6-484D-987F-7E4AD4084715}|Console Application|30|A project for creating a command-line application|0|#1000|0|ConsoleApp
..\ProjectItems\ConsoleDMDGDC\ConsoleApp.vstemplate|{002A2DE9-8BB6-484D-987F-7E4AD4084715}|Console Application DMD/GDC|30|A project for creating a command-line application with DMD/GDC for x86/x64|0|#1000|0|ConsoleApp
..\ProjectItems\ConsoleDMDLDC\ConsoleApp.vstemplate|{002A2DE9-8BB6-484D-987F-7E4AD4084715}|Console Application DMD/LDC|30|A project for creating a command-line application with DMD/LDC for x86/x64|0|#1000|0|ConsoleApp
..\ProjectItems\ConsoleDLG\ConsoleApp.vstemplate|{002A2DE9-8BB6-484D-987F-7E4AD4084715}|Console Application DMD/LDC/GDC|30|A project for creating a command-line application with DMD/LDC/GDC for x86/x64|0|#1000|0|ConsoleApp
..\ProjectItems\WindowsApp\WindowsApp.vstemplate|{002A2DE9-8BB6-484D-987F-7E4AD4084715}|Windows Application|30|A project for creating a Windows application|0|#1000|0|WindowsApp
..\ProjectItems\DynamicLib\DynamicLib.vstemplate|{002A2DE9-8BB6-484D-987F-7E4AD4084715}|Dynamic Library (DLL)|30|A project for creating a dynamic library|0|#1000|0|DynamicLib
..\ProjectItems\StaticLib\StaticLib.vstemplate|{002A2DE9-8BB6-484D-987F-7E4AD4084715}|Static Library|30|A project for creating a static library|0|#1000|0|StaticLib
Expand Down

0 comments on commit 6ae1168

Please sign in to comment.