Skip to content

Commit 6a0a315

Browse files
committed
Added Visual Studio project files.
Suitable for VS2017+ when opening using "Open Folder" command.
1 parent 59951c5 commit 6a0a315

File tree

4 files changed

+136
-1
lines changed

4 files changed

+136
-1
lines changed

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,15 @@ Screenshots/
2323
notify.log
2424
umodel.cfg
2525

26+
# Visual Studio files
27+
**/.vs/*
28+
!.vs/CppProperties.json
29+
!.vs/launch.vs.json
30+
!.vs/tasks.vs.json
31+
2632
# Executable files and pdb
2733
umodel.pdb
2834
SDL2.dll
29-
.vs/
3035
Tools/**/*.exe
3136
Tools/**/*.pdb
3237
*todo.md

.vs/CppProperties.json

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
{
2+
"configurations": [
3+
{
4+
"inheritEnvironments": [ "msvc_x86" ],
5+
"name": "Win32-Release",
6+
"includePath": [
7+
"${env.INCLUDE}",
8+
"${workspaceRoot}\\**"
9+
],
10+
"defines": [
11+
"WIN32",
12+
"NDEBUG",
13+
"UNICODE",
14+
"_UNICODE"
15+
],
16+
"intelliSenseMode": "windows-msvc-x86",
17+
"environments": [
18+
{
19+
"BuildOptions": ""
20+
}
21+
]
22+
},
23+
{
24+
"inheritEnvironments": [ "msvc_x86" ],
25+
"name": "Win32-Debug",
26+
"includePath": [
27+
"${env.INCLUDE}",
28+
"${workspaceRoot}\\**"
29+
],
30+
"defines": [
31+
"WIN32",
32+
"NDEBUG",
33+
"UNICODE",
34+
"_UNICODE",
35+
"MAX_DEBUG"
36+
],
37+
"intelliSenseMode": "windows-msvc-x86",
38+
"environments": [
39+
{
40+
"BuildOptions": "--debug",
41+
}
42+
]
43+
},
44+
{
45+
"inheritEnvironments": [ "msvc_x64" ],
46+
"name": "Win64-Release",
47+
"includePath": [
48+
"${env.INCLUDE}",
49+
"${workspaceRoot}\\**"
50+
],
51+
"defines": [
52+
"WIN32",
53+
"NDEBUG",
54+
"UNICODE",
55+
"_UNICODE"
56+
],
57+
"intelliSenseMode": "windows-msvc-x64",
58+
"environments": [
59+
{
60+
"BuildOptions": "--64"
61+
}
62+
]
63+
},
64+
{
65+
"inheritEnvironments": [ "msvc_x64" ],
66+
"name": "Win64-Debug",
67+
"includePath": [
68+
"${env.INCLUDE}",
69+
"${workspaceRoot}\\**"
70+
],
71+
"defines": [
72+
"WIN32",
73+
"NDEBUG",
74+
"UNICODE",
75+
"_UNICODE",
76+
"MAX_DEBUG"
77+
],
78+
"intelliSenseMode": "windows-msvc-x64",
79+
"environments": [
80+
{
81+
"BuildOptions": "--64 --debug",
82+
}
83+
]
84+
}
85+
]
86+
}

.vs/launch.vs.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"version": "0.2.1",
3+
"defaults": {},
4+
"configurations": [
5+
{
6+
"type": "native",
7+
"name": "No arguments",
8+
"project": "umodel.exe"
9+
},
10+
{
11+
"type": "native",
12+
"name": "Use cmdline.cfg",
13+
"project": "umodel.exe",
14+
"args": [ "@docs/cmdline.cfg" ]
15+
}
16+
]
17+
}

.vs/tasks.vs.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"version": "0.2.1",
3+
"tasks": [
4+
{
5+
"taskName": "Build",
6+
"taskLabel": "Build",
7+
"appliesTo": "*",
8+
"contextType": "build",
9+
"type": "launch",
10+
"command": "bash.exe",
11+
"args": [ "build.sh ${env.BuildOptions}" ],
12+
"workingDirectory": "${workspaceRoot}",
13+
"inheritEnvironments": [ "${cpp.activeConfiguration}" ],
14+
},
15+
{
16+
"taskName": "Compile",
17+
"taskLabel": ": Compile",
18+
"appliesTo": "*.c,*.cpp",
19+
"contextType": "compile",
20+
"type": "launch",
21+
"command": "bash.exe",
22+
"args": [ "build.sh ${env.BuildOptions} --file ${relativeFile}" ],
23+
"workingDirectory": "${workspaceRoot}",
24+
"inheritEnvironments": [ "${cpp.activeConfiguration}" ],
25+
}
26+
]
27+
}

0 commit comments

Comments
 (0)