diff --git a/.gitignore b/.gitignore index 3c67dbe10..5a799319f 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,7 @@ .DS_Store */.DS_Store .idea -.vscode/ +.vscode/settings.json .cproject .project .settings diff --git a/.vscode/launch.json b/.vscode/launch.json index c5d0f44fd..6ffafd5b9 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -1,31 +1,31 @@ { - "version": "0.2.0", - "configurations": [ + "version": "0.2.0", + "configurations": [ + { + "name": "Debug getdap4", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/.libs/getdap4", + "args": ["-d", "http://test.opendap.org/opendap/data/nc/fnoc1.nc"], + "cwd": "${workspaceFolder}", + "environment": [ { - "name": "Debug getdap4", - "type": "cppdbg", - "request": "launch", - "program": "${workspaceFolder}/.libs/getdap4", - "args": ["-d", "http://test.opendap.org/opendap/data/nc/fnoc1.nc"], - "cwd": "${workspaceFolder}", - "environment": [ - { - "name": "DYLD_LIBRARY_PATH", - "value": "${workspaceFolder}/.libs:${env:DYLD_LIBRARY_PATH}" - }, - { - "name": "PATH", - "value": "~/opendap/hyrax/build/bin:~/src/opendap/hyrax/build/deps/bin:${env:PATH}" - } - ], - "MIMode": "lldb", - "setupCommands": [ - { - "description": "Allow stepping into all frames", - "text": "settings set target.process.thread.step-avoid-regexp ^$", - "ignoreFailures": true - } - ] + "name": "DYLD_LIBRARY_PATH", + "value": "${workspaceFolder}/.libs:${env:DYLD_LIBRARY_PATH}" + }, + { + "name": "PATH", + "value": "${env:HYRAX_PREFIX}/bin:${env:HYRAX_PREFIX}/deps/bin:${env:PATH}" + } + ], + "MIMode": "lldb", + "setupCommands": [ + { + "description": "Allow stepping into all frames", + "text": "settings set target.process.thread.step-avoid-regexp ^$", + "ignoreFailures": true } - ] + ] + } + ] } diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index 98e71e43a..000000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "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": "~/src/opendap/hyrax/build", - "PATH": "~/src/opendap//hyrax/build/bin:/Users/jhrg/src/opendap/hyrax/build/deps/bin:${env:PATH}" - }, - "makefile.configurations": [ - { - "makeArgs": [ - "-j" - ], - "name": "all" - }, - { - "makeArgs": [ - "-j", "check" - ], - "name": "check" - } - - ] -} diff --git a/.vscode/settings.json.template b/.vscode/settings.json.template new file mode 100644 index 000000000..2a56deb21 --- /dev/null +++ b/.vscode/settings.json.template @@ -0,0 +1,14 @@ +{ + "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": { + "HYRAX_PREFIX": The litteral value of $prefix., + "PATH": $prefix litteral value + /bin: $prefix litteral value + deps/bin:${env:PATH} + }, + "terminal.integrated.env.linux": { + "HYRAX_PREFIX": The litteral value of $prefix., + "PATH": $prefix litteral value + /bin: $prefix litteral value + deps/bin:${env:PATH}" + } +} diff --git a/.vscode/tasks.json b/.vscode/tasks.json index bcbf0d14f..af23e8ec7 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,137 +1,121 @@ { - "version": "2.0.0", - "tasks": [ - { - "label": "autotools: configure", - "type": "shell", - "command": "autoreconf -fvi && ./configure --prefix=$prefix --enable-developer", - "options": { - "cwd": "${workspaceFolder}", - "env": { - "prefix": "~/src/hyrax/build", - "PATH": "~/src/hyrax/build/bin:~/src/hyrax/build/deps/bin:${env:PATH}" - }, - "shell": { - "executable": "/bin/zsh", - "args": [ - "-c" - ] - } - }, - "problemMatcher": [], - "group": { - "kind": "build", - "isDefault": true - } + "version": "2.0.0", + "tasks": [ + { + "label": "autotools: configure", + "type": "shell", + "command": "autoreconf -fvi && ./configure --prefix=$prefix --enable-developer", + "options": { + "cwd": "${workspaceFolder}", + "env": { + "prefix": "${env:HYRAX_PREFIX}", + "PATH": "${env:HYRAX_PREFIX}/bin:${env:HYRAX_PREFIX}/deps/bin:${env:PATH}" }, - { - "label": "autotools: build", - "type": "shell", - "command": "make -j", - "options": { - "cwd": "${workspaceFolder}", - "env": { - "prefix": "~/src/hyrax/build", - "PATH": "~/src/hyrax/build/bin:~/src/hyrax/build/deps/bin:${env:PATH}" - }, - "shell": { - "executable": "/bin/zsh", - "args": [ - "-c" - ] - } - }, - "problemMatcher": [ - "$gcc" - ], - "group": { - "kind": "build", - "isDefault": true - } + "shell": { + "executable": "/bin/zsh", + "args": ["-c"] + } + }, + "problemMatcher": [], + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "label": "autotools: build", + "type": "shell", + "command": "make -j", + "options": { + "cwd": "${workspaceFolder}", + "env": { + "prefix": "${env:HYRAX_PREFIX}", + "PATH": "${env:HYRAX_PREFIX}/bin:${env:HYRAX_PREFIX}/deps/bin:${env:PATH}" + }, + "shell": { + "executable": "/bin/zsh", + "args": ["-c"] + } + }, + "problemMatcher": ["$gcc"], + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "label": "autotools: check", + "type": "shell", + "command": "make -j check", + "options": { + "cwd": "${workspaceFolder}", + "env": { + "TESTSUITEFLAGS": "-j", + "prefix": "${env:HYRAX_PREFIX}", + "PATH": "${env:HYRAX_PREFIX}/bin:${env:HYRAX_PREFIX}/deps/bin:${env:PATH}" }, - { - "label": "autotools: check", - "type": "shell", - "command": "make -j check", - "options": { - "cwd": "${workspaceFolder}", - "env": { - "prefix": "~/src/hyrax/build", - "PATH": "~/src/hyrax/build/bin:~/src/hyrax/build/deps/bin:${env:PATH}" - }, - "shell": { - "executable": "/bin/zsh", - "args": [ - "-c" - ] - } - }, - "problemMatcher": [ - "$gcc" - ], - "group": { - "kind": "build", - "isDefault": true - } + "shell": { + "executable": "/bin/zsh", + "args": ["-c"] + } + }, + "problemMatcher": ["$gcc"], + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "label": "autotools: install", + "type": "shell", + "command": "make install", + "options": { + "cwd": "${workspaceFolder}", + "env": { + "prefix": "${env:HYRAX_PREFIX}", + "PATH": "${env:HYRAX_PREFIX}/bin:${env:HYRAX_PREFIX}/deps/bin:${env:PATH}" }, - { - "label": "autotools: install", - "type": "shell", - "command": "make install", - "options": { - "cwd": "${workspaceFolder}", - "env": { - "prefix": "~/src/hyrax/build", - "PATH": "~/src/hyrax/build/bin:~/src/hyrax/build/deps/bin:${env:PATH}" - }, - "shell": { - "executable": "/bin/zsh", - "args": [ - "-c" - ] - } - }, - "problemMatcher": [] + "shell": { + "executable": "/bin/zsh", + "args": ["-c"] + } + }, + "problemMatcher": [] + }, + { + "label": "autotools: clean", + "type": "shell", + "command": "make clean", + "options": { + "cwd": "${workspaceFolder}", + "env": { + "prefix": "${env:HYRAX_PREFIX}", + "PATH": "${env:HYRAX_PREFIX}/bin:${env:HYRAX_PREFIX}/deps/bin:${env:PATH}" }, - { - "label": "autotools: clean", - "type": "shell", - "command": "make clean", - "options": { - "cwd": "${workspaceFolder}", - "env": { - "prefix": "~/src/hyrax/build", - "PATH": "~/src/hyrax/build/bin:~/src/hyrax/build/deps/bin:${env:PATH}" - }, - "shell": { - "executable": "/bin/zsh", - "args": [ - "-c" - ] - } - }, - "problemMatcher": [] + "shell": { + "executable": "/bin/zsh", + "args": ["-c"] + } + }, + "problemMatcher": [] + }, + { + "label": "autotools: compile_commands", + "type": "shell", + "command": "make clean && bear -- make -j && bear --append -- make -j check", + "options": { + "cwd": "${workspaceFolder}", + "env": { + "TESTSUITEFLGS": "-j", + "prefix": "${env:HYRAX_PREFIX}", + "PATH": "${env:HYRAX_PREFIX}/bin:${env:HYRAX_PREFIX}/deps/bin:${env:PATH}" }, - { - "label": "autotools: compile_commands", - "type": "shell", - "command": "make clean && bear -- make -j && bear --append -- make -j check", - "options": { - "cwd": "${workspaceFolder}", - "env": { - "prefix": "~/src/hyrax/build", - "PATH": "~/src/hyrax/build/bin:~/src/hyrax/build/deps/bin:${env:PATH}" - }, - "shell": { - "executable": "/bin/zsh", - "args": [ - "-c" - ] - } - }, - "problemMatcher": [ - "$gcc" - ] + "shell": { + "executable": "/bin/zsh", + "args": ["-c"] } - ] + }, + "problemMatcher": ["$gcc"] + } + ] }