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
28 changes: 28 additions & 0 deletions .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**",
"${workspaceFolder}/src/mbgrd2gltf",
"${workspaceFolder}/src/mbgrd2gltf/draco",
"${workspaceFolder}/src/mbgrd2gltf/tinygltf",
"${workspaceFolder}/src/mbio",
"${workspaceFolder}/src/mbaux",
"/opt/local/include",
"/opt/local/lib/proj9/include",
"/opt/local/lib/gmt6/include"
],
"defines": [],
"macFrameworkPath": [
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks"
],
"compilerPath": "/usr/bin/clang",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "macos-clang-arm64",
"compileCommands": "${workspaceFolder}/build/compile_commands.json"
}
],
"version": 4
}
14 changes: 14 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
// Recommended extensions for MB-System development
"recommendations": [
// C/C++ language support - IntelliSense, code navigation, formatting
"ms-vscode.cpptools",

// Debugger for macOS - stable LLDB integration without lldb-mi issues
"vadimcn.vscode-lldb",

// CMake language support and tools
"twxs.cmake",
"ms-vscode.cmake-tools"
]
}
56 changes: 56 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
// 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
//
// NOTE: For debugging to work, build with debug symbols enabled:
// cd build
// cmake -DCMAKE_BUILD_TYPE=Debug ..
// make

// There can be multiple configurations defined.
// Initially, the mbgrd2gltf tool is set up for debugging:
// - Test .grd files at https://github.com/dwcaress/MB-System/issues/1521#issuecomment-3537691382
// - Use wget to copy test .grd files into build directory, output will also be written there
"version": "0.2.0",
"configurations": [
{
"name": "Debug mbgrd2gltf",
"type": "lldb",
"request": "launch",
"program": "${workspaceFolder}/build/src/mbgrd2gltf/mbgrd2gltf",
"args": [
// Simple test to show help message
//"--help"
// Initial example for Monterey Bay terrain used by STOQS
//"${workspaceFolder}/build/Monterey25.grd", "-o", "${workspaceFolder}/build", "-e", "10.0", "-v"
// Monterey Bay binary with Draco compression
//"${workspaceFolder}/build/Monterey25.grd", "-o", "${workspaceFolder}/build", "-e", "10.0", "-v", "-d", "-b"
// Monterey Bay without verbose output
//"${workspaceFolder}/build/Monterey25.grd", "-o", "${workspaceFolder}/build", "-e", "10.0", "-d", "-b"
// Lake Erie example
//"${workspaceFolder}/build/erie_lld.grd", "-o", "${workspaceFolder}/build", "-e", "10.0", "-d", "-b"
// Lake Michigan example
//"${workspaceFolder}/build/michigan_lld.grd", "-o", "${workspaceFolder}/build", "-e", "10.0", "-d", "-b"
// Lake Michigan example
//"${workspaceFolder}/build/michigan_lld.grd", "-o", "${workspaceFolder}/build", "-e", "10.0", "-d", "-b"
// Globe example - fails to load due into gltf.report
//"${workspaceFolder}/build/Globe_1m_bath.grd", "-o", "${workspaceFolder}/build", "-e", "10.0", "-d", "-b"
// Terrain for BEDs during CCE 2015, no vertical exaggeration - fails to load into gltf.report
//"${workspaceFolder}/build/MontereyCanyonBeds_1m+5m.grd", "-o", "${workspaceFolder}/build", "-e", "1.0", "-d", "-b"
// San Pedro Basin example
"${workspaceFolder}/build/SanPedroBasin50.grd", "-o", "${workspaceFolder}/build", "-e", "10.0", "-d", "-b"
],
"stopOnEntry": false,
"cwd": "${workspaceFolder}",
"preLaunchTask": "Build mbgrd2gltf",
"breakpointMode": "path",
"initCommands": [
// Break on C++ exceptions being thrown
"breakpoint set -E C++",
// Show full backtrace when stopped
"settings set target.process.thread.step-avoid-regexp \"\""
]
}
]
}
67 changes: 67 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "CMake Configure",
"type": "shell",
"command": "cmake",
"args": [
".."
],
"options": {
"cwd": "${workspaceFolder}/build"
},
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": false
}
},
{
"label": "Build All",
"type": "shell",
"command": "make",
"args": [
"-j8"
],
"options": {
"cwd": "${workspaceFolder}/build"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "Build mbgrd2gltf",
"type": "shell",
"command": "make",
"args": [
"-j8",
"mbgrd2gltf"
],
"options": {
"cwd": "${workspaceFolder}/build"
},
"problemMatcher": [
"$gcc"
],
"group": "build"
},
{
"label": "Clean Build",
"type": "shell",
"command": "make",
"args": [
"clean"
],
"options": {
"cwd": "${workspaceFolder}/build"
},
"problemMatcher": []
}
]
}
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ message("----------------------------------------------------------")
# Define minimum CMake version required
cmake_minimum_required(VERSION 3.16)

# Export compile commands for IDE tools
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

# Define project
project(MB-System
DESCRIPTION "Open Source software for the processing and display of seafloor mapping data"
Expand Down