Update build system.

This commit is contained in:
2018-04-01 23:19:30 +02:00
parent 7a34aaa7be
commit 1a871503be
2 changed files with 41 additions and 8 deletions

45
.vscode/tasks.json vendored
View File

@@ -2,23 +2,24 @@
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"options": {
},
"tasks": [
{
"label": "X86_64 - cmake - domod",
"type": "shell",
"command": "mkdir -p ${BUILD_DIR}/domo && cd ${BUILD_DIR}/domo && cmake -DSRC_DIR=${workspaceRoot} -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=${workspaceRoot}/bsp/cmake-modules/toolchain-buildroot.cmake ${workspaceRoot}/src/prog/domod/builders/cmake",
"command": "mkdir -p ${BUILD_DIR}/domo && cd ${BUILD_DIR}/domo && cmake -DMODULE_PATH=${workspaceRoot}/bsp/cmake-modules -DworkspaceRoot=${workspaceRoot} -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=${workspaceRoot}/bsp/cmake-modules/toolchain-buildroot.cmake ${workspaceRoot}/src/prog/domod/builders/cmake",
"group": "build",
"options": {
"cwd": "${workspaceRoot}/_builds/x86_64_domo-debug/buildroot/build/",
"env": {
"BUILD_DIR": "${workspaceRoot}/_builds/x86_64_domo-debug/buildroot/build/"
}
},
},
"presentation": {
"echo": true,
"reveal": "always"
}
},
"problemMatcher": []
},
{
"label": "X86_64 - make - domod",
@@ -35,6 +36,38 @@
"problemMatcher": [
"$gcc"
]
}
},
{
"label": "X86_64 - cmake - libubus-cpp",
"type": "shell",
"command": "mkdir -p ${BUILD_DIR}/ubus-cpp && cd ${BUILD_DIR}/ubus-cpp && cmake -DMODULE_PATH=${workspaceRoot}/bsp/cmake-modules -DworkspaceRoot=${workspaceRoot} -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=${workspaceRoot}/bsp/cmake-modules/toolchain-buildroot.cmake -DCMAKE_INSTALL_PREFIX=${workspaceRoot}/_builds/x86_64_domo-debug/buildroot/staging/ ${workspaceRoot}/src/lib/libubus-cpp/builders/cmake",
"group": "build",
"options": {
"env": {
"BUILD_DIR": "${workspaceRoot}/_builds/x86_64_domo-debug/buildroot/build/"
}
},
"presentation": {
"echo": true,
"reveal": "always"
},
"problemMatcher": []
},
{
"label": "X86_64 - make - libubus-cpp",
"options": {
"cwd": "${workspaceRoot}/_builds/x86_64_domo-debug/buildroot/build/ubus-cpp",
},
"type": "shell",
"command": "make install",
"group": "build",
"presentation": {
"echo": true,
"reveal": "always"
},
"problemMatcher": [
"$gcc"
]
},
]
}