From 52c4ddfe69c4dc82f85b641d1d065a91928872e5 Mon Sep 17 00:00:00 2001 From: evoskuil Date: Mon, 28 Oct 2024 21:28:14 -0400 Subject: [PATCH 1/5] git.ignore /build directory. --- .gitignore | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 46173e1ef..f76d2e956 100644 --- a/.gitignore +++ b/.gitignore @@ -10,6 +10,7 @@ libbitcoin-node.pc bin obj +build .*.swp *~ /*.kdev4 @@ -25,10 +26,11 @@ obj /configure /libtool .dirstamp + node_test/ +/builds/msvc/vs2022/bn/hosts.cache *.lock *.vsidx -/builds/msvc/vs2022/bn/hosts.cache *.txt *.data *.head From a1d2c6a3e649f157c4b140a50f6f2121e3a47f7a Mon Sep 17 00:00:00 2001 From: evoskuil Date: Mon, 28 Oct 2024 21:28:29 -0400 Subject: [PATCH 2/5] Update presets relative path. --- builds/cmake/CMakePresets.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/builds/cmake/CMakePresets.json b/builds/cmake/CMakePresets.json index d7ecb2e4f..b18fc1657 100644 --- a/builds/cmake/CMakePresets.json +++ b/builds/cmake/CMakePresets.json @@ -5,7 +5,7 @@ "name": "nix-base", "description": "Factored base settings for non-windows *nix based platforms.", "hidden": true, - "installDir": "${sourceParentDir}/../../prefix/${presetName}", + "installDir": "${sourceParentDir}/../../../prefix/${presetName}", "binaryDir": "${sourceParentDir}/../obj/${presetName}", "condition": { "type": "inList", @@ -18,11 +18,11 @@ "cacheVariables": { "CMAKE_PREFIX_PATH": { "type": "PATH", - "value": "${sourceParentDir}/../../prefix/${presetName}" + "value": "${sourceParentDir}/../../../prefix/${presetName}" }, "CMAKE_LIBRARY_PATH": { "type": "PATH", - "value": "${sourceParentDir}/../../prefix/${presetName}/lib:$env{CMAKE_LIBRARY_PATH}" + "value": "${sourceParentDir}/../../../prefix/${presetName}/lib:$env{CMAKE_LIBRARY_PATH}" } } }, From 76db341b37d88f02332b2c9c250804347e8a0824 Mon Sep 17 00:00:00 2001 From: evoskuil Date: Mon, 28 Oct 2024 21:29:41 -0400 Subject: [PATCH 3/5] Add "cmake.useCMakePresets": "always" to a settings.json. --- .vscode/settings.json | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..c40aba845 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,4 @@ +{ + "cmake.sourceDirectory": "/home/nixmini/Repository/Source/libbitcoin-node/builds/cmake", + "cmake.useCMakePresets": "always" +} \ No newline at end of file From aa33ba502d01343fc022162f3a06b17e7062e40f Mon Sep 17 00:00:00 2001 From: evoskuil Date: Mon, 28 Oct 2024 21:29:56 -0400 Subject: [PATCH 4/5] Initial tasks.json and launch.json (presets). --- .vscode/launch.json | 33 +++++++++++++++++++++++++++++++++ .vscode/tasks.json | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 .vscode/tasks.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 000000000..38f8e693e --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,33 @@ +{ + // 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": "(gdb) Launch", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/obj/nix-gnu-debug-static/libbitcoin-node-test", + "args": [], + "stopAtEntry": false, + "cwd": "${workspaceFolder}/obj/nix-gnu-debug-static", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + }, + { + "description": "Set Disassembly Flavor to Intel", + "text": "-gdb-set disassembly-flavor intel", + "ignoreFailures": true + } + ] + } + + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 000000000..d2cd6a6b9 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,33 @@ +{ + "version": "2.0.0", + "tasks": [ + { + "type": "cmake", + "label": "CMake: build", + "command": "build", + "targets": [ + "all" + ], + "preset": "${command:cmake.activeBuildPresetName}", + "group": "build", + "problemMatcher": [], + "detail": "CMake template build task" + }, + { + "type": "cmake", + "label": "CMake: clean", + "command": "clean", + "preset": "${command:cmake.activeBuildPresetName}", + "problemMatcher": [], + "detail": "CMake template clean task" + }, + { + "type": "cmake", + "label": "CMake: install", + "command": "install", + "preset": "${command:cmake.activeBuildPresetName}", + "problemMatcher": [], + "detail": "CMake template install task" + } + ] +} \ No newline at end of file From bd16704fc668daa827f8580e661479e334db8a50 Mon Sep 17 00:00:00 2001 From: evoskuil Date: Mon, 28 Oct 2024 21:47:41 -0400 Subject: [PATCH 5/5] Add workspace file for vscode. --- builds/vscode/node.code-workspace | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 builds/vscode/node.code-workspace diff --git a/builds/vscode/node.code-workspace b/builds/vscode/node.code-workspace new file mode 100644 index 000000000..9a53525cf --- /dev/null +++ b/builds/vscode/node.code-workspace @@ -0,0 +1,17 @@ +{ + "folders": [ + { + "path": "../../../libbitcoin-system" + }, + { + "path": "../../../libbitcoin-network" + }, + { + "path": "../../../libbitcoin-database" + }, + { + "path": "../../../libbitcoin-node" + } + ], + "settings": {} +}