diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json index 0b4d139c..6cc8f177 100644 --- a/.vscode/c_cpp_properties.json +++ b/.vscode/c_cpp_properties.json @@ -26,16 +26,12 @@ { "name": "Linux", "includePath": [ - "/usr/include/c++/5", - "/usr/include/x86_64-linux-gnu/c++/5", - "/usr/include/c++/5/backward", - "/usr/lib/gcc/x86_64-linux-gnu/5/include", - "/usr/local/include", - "/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed", - "/usr/include/x86_64-linux-gnu", - "/usr/include", "${workspaceRoot}", - "${workspaceRoot}/src/prog/domod/src" + "${workspaceRoot}/src/prog/domod/src", + "${workspaceRoot}/_builds/x86_64_domo-debug/cross/usr/x86_64-buildroot-linux-gnu/sysroot/usr/include", + "${workspaceRoot}/_builds/x86_64_domo-debug/cross/opt/ext-toolchain/x86_64-buildroot-linux-gnu/include/c++/5.4.0", + "${workspaceRoot}/_builds/x86_64_domo-debug/cross/opt/ext-toolchain/x86_64-buildroot-linux-gnu/include/c++/5.4.0/x86_64-buildroot-linux-gnu", + "${workspaceRoot}/_builds/x86_64_domo-debug/cross/opt/ext-toolchain/lib/gcc/x86_64-buildroot-linux-gnu/5.4.0/include" ], "defines": [], "intelliSenseMode": "clang-x64", @@ -53,7 +49,10 @@ ], "limitSymbolsToIncludedHeaders": true, "databaseFilename": "" - } + }, + "compilerPath": "/usr/bin/gcc", + "cStandard": "c11", + "cppStandard": "c++17" }, { "name": "Win32", diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 00000000..43bf335e --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,34 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "cwd": "${workspaceRoot}/_builds/x86_64_domo-debug/buidlroot/build", + "env": { + "test": "toto" + }, + "tasks": [ + { + "label": "X86_64 - cmake - domod", + "type": "shell", + "command": "cmake -DSRC_DIR=${workspaceRoot} -DCMAKE_BUILD_TYPE=Debug -DworkspaceRoot=${workspaceRoot} -DCMAKE_TOOLCHAIN_FILE=${workspaceRoot}/bsp/cmake-modules/toolchain-buildroot.cmake ${workspaceRoot}/src/prog/domod/builders/cmake", + "group": "build", + "presentation": { + "echo": true, + "reveal": "always" + } + }, + { + "label": "X86_64 - make - domod", + "type": "shell", + "command": "make", + "group": "build", + "presentation": { + "echo": true, + "reveal": "always" + }, + "problemMatcher": [ + "$gcc" + ] + } + ] +} \ No newline at end of file diff --git a/bsp/cmake-modules/toolchain-buildroot.cmake b/bsp/cmake-modules/toolchain-buildroot.cmake new file mode 100644 index 00000000..ae57a299 --- /dev/null +++ b/bsp/cmake-modules/toolchain-buildroot.cmake @@ -0,0 +1,17 @@ +# this one is important +SET(CMAKE_SYSTEM_NAME Linux) + +# +#this one not so much +SET(CMAKE_SYSTEM_VERSION 1) + +# specify the cross compiler + +SET(CMAKE_C_COMPILER ${workspaceRoot}/_builds/x86_64_domo-debug/cross/usr/bin/x86_64-linux-gcc) +SET(CMAKE_CXX_COMPILER ${workspaceRoot}/_builds/x86_64_domo-debug/cross/usr/bin/x86_64-linux-g++) + +# search for programs in the build host directories +SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +# for libraries and headers in the target directories +SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) diff --git a/deprecated/Domo.sublime-project b/deprecated/Domo.sublime-project deleted file mode 100644 index debdbdc7..00000000 --- a/deprecated/Domo.sublime-project +++ /dev/null @@ -1,17 +0,0 @@ -{ - "folders": - [ - { - "path": "." - }, - { - "path": "3P" - }, - { - "path": "lib" - }, - { - "path": "src" - } - ] -}