From f3a2d7cf691aac08e2c1fa00d62140e5967e72c5 Mon Sep 17 00:00:00 2001 From: annehe9 <afhe@andrew.cmu.edu> Date: Sun, 17 Jan 2021 22:53:12 -0500 Subject: [PATCH] Added vscode files --- .vscode/clang/launch.json | 48 +++++++++++++++++++++++++++++++++++++++ .vscode/clang/tasks.json | 23 +++++++++++++++++++ .vscode/gcc/launch.json | 48 +++++++++++++++++++++++++++++++++++++++ .vscode/gcc/tasks.json | 23 +++++++++++++++++++ .vscode/msvc/launch.json | 32 ++++++++++++++++++++++++++ .vscode/msvc/tasks.json | 31 +++++++++++++++++++++++++ 6 files changed, 205 insertions(+) create mode 100644 .vscode/clang/launch.json create mode 100644 .vscode/clang/tasks.json create mode 100644 .vscode/gcc/launch.json create mode 100644 .vscode/gcc/tasks.json create mode 100644 .vscode/msvc/launch.json create mode 100644 .vscode/msvc/tasks.json diff --git a/.vscode/clang/launch.json b/.vscode/clang/launch.json new file mode 100644 index 0000000..535d7fe --- /dev/null +++ b/.vscode/clang/launch.json @@ -0,0 +1,48 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Release", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/build_rel/DrawSVG", + "args": [], + "stopAtEntry": false, + "cwd": "${workspaceFolder}/svg", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ], + "preLaunchTask": "Build Release" + }, + { + "name": "Debug", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/build_dbg/DrawSVG", + "args": [], + "stopAtEntry": false, + "cwd": "${workspaceFolder}/svg", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ], + "preLaunchTask": "Build Debug" + } + ] +} \ No newline at end of file diff --git a/.vscode/clang/tasks.json b/.vscode/clang/tasks.json new file mode 100644 index 0000000..89531f1 --- /dev/null +++ b/.vscode/clang/tasks.json @@ -0,0 +1,23 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "Build Release", + "type": "shell", + "command": "mkdir build_rel ; pushd build_rel ; CC=clang CXX=clang++ cmake -DCMAKE_BUILD_TYPE=Release .. ; make -j7 ; popd", + "args": [], + "group": "build", + "problemMatcher": "$gcc" + }, + { + "label": "Build Debug", + "type": "shell", + "command": "mkdir build_dbg ; pushd build_dbg ; CC=clang CXX=clang++ cmake -DCMAKE_BUILD_TYPE=Debug .. ; make -j7 ; popd", + "args": [], + "group": "build", + "problemMatcher": "$gcc" + } + ] +} \ No newline at end of file diff --git a/.vscode/gcc/launch.json b/.vscode/gcc/launch.json new file mode 100644 index 0000000..535d7fe --- /dev/null +++ b/.vscode/gcc/launch.json @@ -0,0 +1,48 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Release", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/build_rel/DrawSVG", + "args": [], + "stopAtEntry": false, + "cwd": "${workspaceFolder}/svg", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ], + "preLaunchTask": "Build Release" + }, + { + "name": "Debug", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/build_dbg/DrawSVG", + "args": [], + "stopAtEntry": false, + "cwd": "${workspaceFolder}/svg", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ], + "preLaunchTask": "Build Debug" + } + ] +} \ No newline at end of file diff --git a/.vscode/gcc/tasks.json b/.vscode/gcc/tasks.json new file mode 100644 index 0000000..4eef86c --- /dev/null +++ b/.vscode/gcc/tasks.json @@ -0,0 +1,23 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "Build Release", + "type": "shell", + "command": "mkdir build_rel ; pushd build_rel ; cmake -DCMAKE_BUILD_TYPE=Release .. ; make -j7 ; popd", + "args": [], + "group": "build", + "problemMatcher": "$gcc" + }, + { + "label": "Build Debug", + "type": "shell", + "command": "mkdir build_dbg ; pushd build_dbg ; cmake -DCMAKE_BUILD_TYPE=Debug .. ; make -j7 ; popd", + "args": [], + "group": "build", + "problemMatcher": "$gcc" + } + ] +} \ No newline at end of file diff --git a/.vscode/msvc/launch.json b/.vscode/msvc/launch.json new file mode 100644 index 0000000..53ecd60 --- /dev/null +++ b/.vscode/msvc/launch.json @@ -0,0 +1,32 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Release", + "type": "cppvsdbg", + "request": "launch", + "program": "${workspaceFolder}/build/RelWithDebInfo/DrawSVG.exe", + "args": [], + "stopAtEntry": false, + "cwd": "${workspaceFolder}/svg", + "environment": [], + "externalConsole": false, + "preLaunchTask": "Build Release" + }, + { + "name": "Debug", + "type": "cppvsdbg", + "request": "launch", + "program": "${workspaceFolder}/build/Debug/DrawSVG.exe", + "args": [], + "stopAtEntry": false, + "cwd": "${workspaceFolder}/svg", + "environment": [], + "externalConsole": false, + "preLaunchTask": "Build Debug" + } + ] +} \ No newline at end of file diff --git a/.vscode/msvc/tasks.json b/.vscode/msvc/tasks.json new file mode 100644 index 0000000..7cd77e0 --- /dev/null +++ b/.vscode/msvc/tasks.json @@ -0,0 +1,31 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "Configure", + "type": "shell", + "group": "build", + "command": "./runcmake_win.bat configure", + "problemMatcher": [] + }, + { + "label": "Build Release", + "type": "shell", + "command": "./runcmake_win.bat RelWithDebInfo", + "args": [], + "group": "build", + "problemMatcher": "$msCompile" + }, + { + "label": "Build Debug", + "type": "shell", + "command": "./runcmake_win.bat Debug", + "args": [], + "group": "build", + "problemMatcher": "$msCompile" + } + ] +} + \ No newline at end of file -- GitLab