From 88492823826b3720be4ba29d246848031418bfb5 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sat, 20 Oct 2018 15:14:24 +0200 Subject: Add Kconfiglib to parse Kconfig/.config --- doc/Development/Configuring.asciidoc | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 doc/Development/Configuring.asciidoc (limited to 'doc') diff --git a/doc/Development/Configuring.asciidoc b/doc/Development/Configuring.asciidoc new file mode 100644 index 0000000..f436da5 --- /dev/null +++ b/doc/Development/Configuring.asciidoc @@ -0,0 +1,34 @@ +=== CMake + +==== Compiler flags +-pipe -fstack-protector-strong -fno-plt -fPIE +-march=native -mtune=native + +==== Install paths +CMAKE_INSTALL_PREFIX is prepended onto all install paths. This variable defaults +to /usr/local on *nix and c:/Program Files/${PROJECT_NAME} on Windows. + +On *nix you can use DESTDIR to relocate the entire installation. DESTDIR is +prepended to CMAKE_INSTALL_PREFIX. + +This will install the project to /ports/pkg/install/usr: + +[source, sh] +---- +cmake -DCMAKE_INSTALL_PREFIX=/usr ... +... +make DESTDIR=/ports/pkg/install install +---- + +==== clang-tidy +CMAKE_CXX_CLANG_TIDY="clang-tidy;-checks=*" + +==== cppcheck +CMAKE_CXX_CPPCHECK="cppcheck" + +==== ccache +-DCMAKE_CXX_COMPILER_LAUNCHER=ccache + +==== llvm libcpp +CMAKE_CXX_FLAGS: -stdlib=libc++" +CMAKE_EXE_LINKER_FLAGS -stdlib=libc++ -- cgit v1.2.1