Skip to content

Commit

Permalink
Use variable paths
Browse files Browse the repository at this point in the history
  • Loading branch information
fahminlb33 committed May 18, 2020
1 parent d80bf7e commit afb7d6a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
18 changes: 11 additions & 7 deletions src/KFlearning/Services/Templates/TR.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 5 additions & 8 deletions src/KFlearning/Services/Templates/TR.resx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
"type": "shell",
"command": "g++",
"args": [
"-g", "${file}", "-o", "program.exe"
"-g", "${file}", "-o", "${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"group": {
"kind": "build",
Expand Down Expand Up @@ -167,7 +167,7 @@
"type": "shell",
"command": "g++",
"args": [
"-g", "${file}", "-lopengl32", "-lglew32", "-lfreeglut", "-lglu32", "-o", "program.exe"
"-g", "${file}", "-lopengl32", "-lglew32", "-lfreeglut", "-lglu32", "-o", "${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"group": {
"kind": "build",
Expand All @@ -178,15 +178,12 @@
</data>
<data name="CPP_launch" xml:space="preserve">
<value>{
// 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": "Launch without Debugging",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/program.exe",
"program": "${workspaceFolder}/${fileBasenameNoExtension}.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
Expand All @@ -195,10 +192,10 @@
"preLaunchTask": "Build"
},
{
"name": "(gdb) Launch",
"name": "Launch using GDB",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/program.exe",
"program": "${workspaceFolder}/${fileBasenameNoExtension}.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
Expand Down

0 comments on commit afb7d6a

Please sign in to comment.