Skip to content

Commit

Permalink
Added Visual Studio project files.
Browse files Browse the repository at this point in the history
Suitable for VS2017+ when opening using "Open Folder" command.
  • Loading branch information
gildor2 committed Dec 6, 2019
1 parent 59951c5 commit 6a0a315
Show file tree
Hide file tree
Showing 4 changed files with 136 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,15 @@ Screenshots/
notify.log
umodel.cfg

# Visual Studio files
**/.vs/*
!.vs/CppProperties.json
!.vs/launch.vs.json
!.vs/tasks.vs.json

# Executable files and pdb
umodel.pdb
SDL2.dll
.vs/
Tools/**/*.exe
Tools/**/*.pdb
*todo.md
Expand Down
86 changes: 86 additions & 0 deletions .vs/CppProperties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"configurations": [
{
"inheritEnvironments": [ "msvc_x86" ],
"name": "Win32-Release",
"includePath": [
"${env.INCLUDE}",
"${workspaceRoot}\\**"
],
"defines": [
"WIN32",
"NDEBUG",
"UNICODE",
"_UNICODE"
],
"intelliSenseMode": "windows-msvc-x86",
"environments": [
{
"BuildOptions": ""
}
]
},
{
"inheritEnvironments": [ "msvc_x86" ],
"name": "Win32-Debug",
"includePath": [
"${env.INCLUDE}",
"${workspaceRoot}\\**"
],
"defines": [
"WIN32",
"NDEBUG",
"UNICODE",
"_UNICODE",
"MAX_DEBUG"
],
"intelliSenseMode": "windows-msvc-x86",
"environments": [
{
"BuildOptions": "--debug",
}
]
},
{
"inheritEnvironments": [ "msvc_x64" ],
"name": "Win64-Release",
"includePath": [
"${env.INCLUDE}",
"${workspaceRoot}\\**"
],
"defines": [
"WIN32",
"NDEBUG",
"UNICODE",
"_UNICODE"
],
"intelliSenseMode": "windows-msvc-x64",
"environments": [
{
"BuildOptions": "--64"
}
]
},
{
"inheritEnvironments": [ "msvc_x64" ],
"name": "Win64-Debug",
"includePath": [
"${env.INCLUDE}",
"${workspaceRoot}\\**"
],
"defines": [
"WIN32",
"NDEBUG",
"UNICODE",
"_UNICODE",
"MAX_DEBUG"
],
"intelliSenseMode": "windows-msvc-x64",
"environments": [
{
"BuildOptions": "--64 --debug",
}
]
}
]
}
17 changes: 17 additions & 0 deletions .vs/launch.vs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"version": "0.2.1",
"defaults": {},
"configurations": [
{
"type": "native",
"name": "No arguments",
"project": "umodel.exe"
},
{
"type": "native",
"name": "Use cmdline.cfg",
"project": "umodel.exe",
"args": [ "@docs/cmdline.cfg" ]
}
]
}
27 changes: 27 additions & 0 deletions .vs/tasks.vs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"version": "0.2.1",
"tasks": [
{
"taskName": "Build",
"taskLabel": "Build",
"appliesTo": "*",
"contextType": "build",
"type": "launch",
"command": "bash.exe",
"args": [ "build.sh ${env.BuildOptions}" ],
"workingDirectory": "${workspaceRoot}",
"inheritEnvironments": [ "${cpp.activeConfiguration}" ],
},
{
"taskName": "Compile",
"taskLabel": ": Compile",
"appliesTo": "*.c,*.cpp",
"contextType": "compile",
"type": "launch",
"command": "bash.exe",
"args": [ "build.sh ${env.BuildOptions} --file ${relativeFile}" ],
"workingDirectory": "${workspaceRoot}",
"inheritEnvironments": [ "${cpp.activeConfiguration}" ],
}
]
}

0 comments on commit 6a0a315

Please sign in to comment.