summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Udvare <audvare@gmail.com>2020-10-09 05:19:55 +0200
committerAndrew Udvare <audvare@gmail.com>2020-10-09 05:19:55 +0200
commit9250b36431de23ae52511672e080a9cb1afc1999 (patch)
treef7786a4c53a027245b3f086e92c3abb82a645b3e
parentvscode: Linux: add release configurations (diff)
downloadre3-9250b36431de23ae52511672e080a9cb1afc1999.tar
re3-9250b36431de23ae52511672e080a9cb1afc1999.tar.gz
re3-9250b36431de23ae52511672e080a9cb1afc1999.tar.bz2
re3-9250b36431de23ae52511672e080a9cb1afc1999.tar.lz
re3-9250b36431de23ae52511672e080a9cb1afc1999.tar.xz
re3-9250b36431de23ae52511672e080a9cb1afc1999.tar.zst
re3-9250b36431de23ae52511672e080a9cb1afc1999.zip
-rw-r--r--.vscode/c_cpp_properties.json30
-rw-r--r--.vscode/launch.json46
-rw-r--r--.vscode/tasks.json45
3 files changed, 119 insertions, 2 deletions
diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json
new file mode 100644
index 00000000..f284b5eb
--- /dev/null
+++ b/.vscode/c_cpp_properties.json
@@ -0,0 +1,30 @@
+{
+ "configurations": [
+ {
+ "name": "Mac",
+ "includePath": [
+ "${default}",
+ "src/fakerw",
+ "src/math",
+ "src/render",
+ "src/skel",
+ "vendor/librw"
+ ],
+ "defines": [],
+ "macFrameworkPath": [
+ "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks"
+ ],
+ "compilerPath": "/opt/local/bin/clang",
+ "compilerArgs": ["-g"],
+ "cStandard": "gnu11",
+ "cppStandard": "gnu++14",
+ "browse": {
+ "path": [
+ "/opt/local/include",
+ "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include"
+ ]
+ }
+ }
+ ],
+ "version": 4
+}
diff --git a/.vscode/launch.json b/.vscode/launch.json
index a98dfa3f..82ce041f 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -6,7 +6,7 @@
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
- "name": "(gdb) Launch (Debug)",
+ "name": "(gdb) Launch (Linux Debug)",
"preLaunchTask": "Compile (Debug Linux x64)",
"program": "${workspaceFolder}/bin/linux-amd64-librw_gl3_glfw-oal/Debug/re3",
"request": "launch",
@@ -27,7 +27,7 @@
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
- "name": "(gdb) Launch (Release)",
+ "name": "(gdb) Launch (Linux Release)",
"preLaunchTask": "Compile (Release Linux x64)",
"program": "${workspaceFolder}/bin/linux-amd64-librw_gl3_glfw-oal/Release/re3",
"request": "launch",
@@ -41,6 +41,48 @@
"stopAtEntry": false,
"targetArchitecture": "x64",
"type": "cppdbg"
+ },
+ {
+ "MIMode": "lldb",
+ "args": [],
+ "cwd": "${workspaceFolder}",
+ "environment": [],
+ "externalConsole": false,
+ "name": "(lldb) Launch (macOS Debug)",
+ "preLaunchTask": "Compile (Debug macOS x64)",
+ "program": "${workspaceFolder}/bin/macosx-amd64-librw_gl3_glfw-oal/Debug/re3.app",
+ "request": "launch",
+ "setupCommands": [
+ {
+ "description": "Enable pretty-printing for lldb",
+ "ignoreFailures": true,
+ "text": "-enable-pretty-printing"
+ }
+ ],
+ "stopAtEntry": false,
+ "targetArchitecture": "x64",
+ "type": "cppdbg"
+ },
+ {
+ "MIMode": "lldb",
+ "args": [],
+ "cwd": "${workspaceFolder}",
+ "environment": [],
+ "externalConsole": false,
+ "name": "(lldb) Launch (macOS Release)",
+ "preLaunchTask": "Compile (Release macOS x64)",
+ "program": "${workspaceFolder}/bin/macosx-amd64-librw_gl3_glfw-oal/Release/re3.app",
+ "request": "launch",
+ "setupCommands": [
+ {
+ "description": "Enable pretty-printing for lldb",
+ "ignoreFailures": true,
+ "text": "-enable-pretty-printing"
+ }
+ ],
+ "stopAtEntry": false,
+ "targetArchitecture": "x64",
+ "type": "cppdbg"
}
],
"version": "0.2.0"
diff --git a/.vscode/tasks.json b/.vscode/tasks.json
index c4fdc285..0f610d5f 100644
--- a/.vscode/tasks.json
+++ b/.vscode/tasks.json
@@ -8,6 +8,13 @@
"type": "shell"
},
{
+ "args": ["--with-librw", "gmake2"],
+ "command": "premake5",
+ "label": "Premake (macOS)",
+ "problemMatcher": "$gcc",
+ "type": "shell"
+ },
+ {
"args": [
"-j5",
"config=debug_linux-amd64-librw_gl3_glfw-oal",
@@ -44,6 +51,44 @@
},
"problemMatcher": "$gcc",
"type": "shell"
+ },
+ {
+ "args": [
+ "-j5",
+ "config=debug_macosx-amd64-librw_gl3_glfw-oal",
+ "verbose=1"
+ ],
+ "command": "make",
+ "dependsOn": "Premake (macOS)",
+ "group": {
+ "isDefault": true,
+ "kind": "build"
+ },
+ "label": "Compile (Debug macOS x64)",
+ "options": {
+ "cwd": "${workspaceFolder}/build"
+ },
+ "problemMatcher": "$gcc",
+ "type": "shell"
+ },
+ {
+ "args": [
+ "-j5",
+ "config=release_macosx-amd64-librw_gl3_glfw-oal",
+ "verbose=1"
+ ],
+ "command": "make",
+ "dependsOn": "Premake (macOS)",
+ "group": {
+ "isDefault": true,
+ "kind": "build"
+ },
+ "label": "Compile (Release macOS x64)",
+ "options": {
+ "cwd": "${workspaceFolder}/build"
+ },
+ "problemMatcher": "$gcc",
+ "type": "shell"
}
],
"version": "2.0.0"