aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-10-20 15:14:24 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-10-20 15:14:24 +0200
commit88492823826b3720be4ba29d246848031418bfb5 (patch)
tree4f17cc7f4ef3f76f869a1d4fcb94722464aa9d0b /doc
parentHostlist test: test non-empty domain (diff)
downloadsmolbote-88492823826b3720be4ba29d246848031418bfb5.tar.xz
Add Kconfiglib to parse Kconfig/.config
Diffstat (limited to 'doc')
-rw-r--r--doc/Development/Configuring.asciidoc34
1 files changed, 34 insertions, 0 deletions
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++