Skip to content

Commit 3b85ea4

Browse files
authored
Merge pull request #122 from RobLoach/KnockerPulsar/master
Add VSCode Project Template
2 parents 3ba051d + 37711b9 commit 3b85ea4

File tree

9 files changed

+813
-0
lines changed

9 files changed

+813
-0
lines changed

projects/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ The following are some base templates to use when making new raylib-cpp projects
44

55
- [CMake](CMake): Uses `cmake` to build the project files
66
- [Make](Make): A project template that uses `make` to compile the project
7+
- [VSCode](VSCode): A VSCode template that uses `make` along with the base configurations

projects/VSCode/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
!.vscode
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"configurations": [
3+
{
4+
"name": "Win32",
5+
"includePath": [
6+
"C:/raylib/raylib/src/**",
7+
"${workspaceFolder}/**"
8+
],
9+
"defines": [
10+
"_DEBUG",
11+
"UNICODE",
12+
"_UNICODE",
13+
"GRAPHICS_API_OPENGL_33",
14+
"PLATFORM_DESKTOP"
15+
],
16+
"compilerPath": "C:/raylib/mingw/bin/gcc.exe",
17+
"cStandard": "c99",
18+
"cppStandard": "c++14",
19+
"intelliSenseMode": "gcc-x64"
20+
},
21+
{
22+
"name": "Mac",
23+
"includePath": [
24+
"<path_to_raylib>/src/**",
25+
"${workspaceFolder}/**"
26+
],
27+
"defines": [
28+
"_DEBUG",
29+
"UNICODE",
30+
"_UNICODE",
31+
"GRAPHICS_API_OPENGL_33",
32+
"PLATFORM_DESKTOP"
33+
],
34+
"macFrameworkPath": [
35+
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks"
36+
],
37+
"compilerPath": "/usr/bin/clang",
38+
"cStandard": "c11",
39+
"cppStandard": "c++14",
40+
"intelliSenseMode": "clang-x64"
41+
},
42+
{
43+
"name": "Linux",
44+
"includePath": [
45+
"<path_to_raylib>/src/**",
46+
"${workspaceFolder}/**"
47+
],
48+
"defines": [
49+
"_DEBUG",
50+
"UNICODE",
51+
"_UNICODE",
52+
"GRAPHICS_API_OPENGL_33",
53+
"PLATFORM_DESKTOP"
54+
],
55+
"compilerPath": "usr/bin/clang",
56+
"cStandard": "c11",
57+
"cppStandard": "c++14",
58+
"intelliSenseMode": "clang-x64"
59+
60+
}
61+
],
62+
"version": 4
63+
}
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Debug",
9+
"type": "cppdbg",
10+
"request": "launch",
11+
"program": "${workspaceFolder}/${fileBasenameNoExtension}",
12+
"args": [],
13+
"stopAtEntry": false,
14+
"cwd": "${workspaceFolder}",
15+
"environment": [],
16+
"externalConsole": false,
17+
"MIMode": "gdb",
18+
"setupCommands": [
19+
{
20+
"description": "Enable pretty-printing for gdb",
21+
"text": "-enable-pretty-printing",
22+
"ignoreFailures": false
23+
}
24+
],
25+
"windows": {
26+
"miDebuggerPath": "C:/raylib/mingw/bin/gdb.exe",
27+
},
28+
"osx": {
29+
"MIMode": "lldb"
30+
},
31+
"linux": {
32+
"miDebuggerPath": "/usr/bin/gdb",
33+
},
34+
"preLaunchTask": "build debug"
35+
},
36+
{
37+
"name": "Run",
38+
"type": "cppdbg",
39+
"request": "launch",
40+
"args": [],
41+
"stopAtEntry": false,
42+
"cwd": "${workspaceFolder}",
43+
"environment": [],
44+
"externalConsole": false,
45+
"program": "${workspaceFolder}/${fileBasenameNoExtension}",
46+
"MIMode": "gdb",
47+
"windows": {
48+
"program": "${workspaceFolder}/${fileBasenameNoExtension}.exe",
49+
"miDebuggerPath": "C:/raylib/mingw/bin/gdb.exe"
50+
},
51+
"osx": {
52+
"MIMode": "lldb"
53+
},
54+
"linux": {
55+
"miDebuggerPath": "/usr/bin/gdb"
56+
},
57+
"preLaunchTask": "build release",
58+
}
59+
]
60+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"files.exclude": {
3+
"**/.git": true,
4+
"**/.svn": true,
5+
"**/.hg": true,
6+
"**/CVS": true,
7+
"**/.DS_Store": true,
8+
"**/*.o": true,
9+
"**/*.exe": true,
10+
}
11+
}

projects/VSCode/.vscode/tasks.json

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"label": "build debug",
8+
"type": "process",
9+
"command": "make",
10+
"args": [
11+
"PLATFORM=PLATFORM_DESKTOP",
12+
"BUILD_MODE=DEBUG"
13+
],
14+
"windows": {
15+
"command": "C:/raylib/mingw/bin/mingw32-make.exe",
16+
"args": [
17+
"RAYLIB_PATH=C:/raylib/raylib",
18+
"PROJECT_NAME=${fileBasenameNoExtension}",
19+
"OBJS=${fileBasenameNoExtension}.cpp",
20+
"BUILD_MODE=DEBUG"
21+
],
22+
},
23+
"osx": {
24+
"args": [
25+
"RAYLIB_PATH=<path_to_raylib>/raylib",
26+
"PROJECT_NAME=${fileBasenameNoExtension}",
27+
"OBJS=${fileBasenameNoExtension}.c",
28+
"BUILD_MODE=DEBUG"
29+
],
30+
},
31+
"group": {
32+
"kind": "build",
33+
"isDefault": true
34+
},
35+
"problemMatcher": [
36+
"$gcc"
37+
]
38+
},
39+
{
40+
"label": "build release",
41+
"type": "process",
42+
"command": "make",
43+
"args": [
44+
"PLATFORM=PLATFORM_DESKTOP",
45+
],
46+
"windows": {
47+
"command": "C:/raylib/mingw/bin/mingw32-make.exe",
48+
"args": [
49+
"RAYLIB_PATH=C:/raylib/raylib",
50+
"PROJECT_NAME=${fileBasenameNoExtension}",
51+
"OBJS=${fileBasenameNoExtension}.cpp"
52+
],
53+
},
54+
"osx": {
55+
"args": [
56+
"RAYLIB_PATH=<path_to_raylib>/raylib",
57+
"PROJECT_NAME=${fileBasenameNoExtension}",
58+
"OBJS=${fileBasenameNoExtension}.c"
59+
],
60+
},
61+
"group": "build",
62+
"problemMatcher": [
63+
"$gcc"
64+
]
65+
}
66+
]
67+
}

0 commit comments

Comments
 (0)