Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
.DS_Store
*/.DS_Store
.idea
.vscode/settings.json
.vscode/tasks.json
.vscode/*.json
.cproject
.project
.settings
Expand Down
2 changes: 1 addition & 1 deletion .vscode/launch.json → .vscode/jhrg/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
{
"name": "PATH",
"value": "${env:HYRAX_PREFIX}/bin:${env:HYRAX_PREFIX}/deps/bin:${env:PATH}"
"value": "${config:PATH}"
}
],
"MIMode": "lldb",
Expand Down
16 changes: 16 additions & 0 deletions .vscode/jhrg/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"prefix": "/Users/jimg/src/opendap/hyrax_git/build",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm assuming this hardcoding is fine and intentional since it's already nested under your .vscode subdir

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My big idea is that we can each have our own config stuff under .vscode in .vscode/jhrg, .../hannah, ..., and then both learn from each other and move from machine to machine with versioned vscode configs. AFAIK so far, only prefix needs to be edited.

"PATH": "${config:prefix}/bin:${config:prefix}/deps/bin:${env:PATH}",
"C_Cpp.default.configurationProvider": "ms-vscode.makefile-tools",
"C_Cpp.default.compileCommands": "${workspaceFolder}/compile_commands.json",
"C_Cpp.default.cppStandard": "c++14",
"C_Cpp.default.intelliSenseMode": "macos-clang-arm64",
"terminal.integrated.env.osx": {
"prefix": "${config:prefix}",
"PATH": "${config:PATH}"
},
"terminal.integrated.env.linux": {
"prefix": "${config:prefix}",
"PATH": "${config:PATH}"
}
}
77 changes: 77 additions & 0 deletions .vscode/jhrg/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"version": "2.0.0",
"options": {
"cwd": "${workspaceFolder}",
"env": {
"TESTSUITEFLAGS": "-j",
"prefix": "${config:prefix}",
"PATH": "${config:PATH}"
},
"shell": {
"executable": "/bin/zsh",
"args": ["-c"]
}
},
"tasks": [
{
"label": "autotools: configure",
"type": "shell",
"command": "echo \"prefix: $prefix\" && autoreconf -fvi && ./configure --prefix=$prefix --enable-developer",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "autotools: build",
"type": "shell",
"command": "make -j",
"problemMatcher": ["$gcc"],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "autotools: check",
"type": "shell",
"command": "make -j check",
"problemMatcher": ["$gcc"],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "autotools: install",
"type": "shell",
"command": "make install",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "autotools: clean",
"type": "shell",
"command": "make clean",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "autotools: compile_commands",
"type": "shell",
"command": "make clean && bear -- make -j && bear --append -- make -j check",
"problemMatcher": ["$gcc"],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
14 changes: 0 additions & 14 deletions .vscode/settings.json.template

This file was deleted.

86 changes: 0 additions & 86 deletions .vscode/tasks.json.template

This file was deleted.