From 0b9cf8c968a89784b5c2b8afe1a819b33749165e Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Wed, 28 Nov 2018 12:39:14 +0100 Subject: Rewrite Session saving and loading --- doc/Development/Configuring.asciidoc | 34 ---------------------------------- doc/Development/Session.asciidoc | 19 +++++++++++++++++++ doc/Development/meson.asciidoc | 30 ++++++++++++++++++++++++++++++ 3 files changed, 49 insertions(+), 34 deletions(-) delete mode 100644 doc/Development/Configuring.asciidoc create mode 100644 doc/Development/Session.asciidoc create mode 100644 doc/Development/meson.asciidoc (limited to 'doc') diff --git a/doc/Development/Configuring.asciidoc b/doc/Development/Configuring.asciidoc deleted file mode 100644 index f436da5..0000000 --- a/doc/Development/Configuring.asciidoc +++ /dev/null @@ -1,34 +0,0 @@ -=== 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++ diff --git a/doc/Development/Session.asciidoc b/doc/Development/Session.asciidoc new file mode 100644 index 0000000..846d6a3 --- /dev/null +++ b/doc/Development/Session.asciidoc @@ -0,0 +1,19 @@ +== Session + +== Session JSON structure +- windows: list of windows + +=== Window +- subwindows: list of subwindows + +=== Subwindow +- profile: profile ID +- tabs: list of views +- current: current tab index + +=== View +- profile: profile ID +- history: view history + +Storing history: compress, toBase64 (to make printable), toQString (to store in json) +Restoring history: toLatin1 (turn into bytearray), fromBase64, uncompress diff --git a/doc/Development/meson.asciidoc b/doc/Development/meson.asciidoc new file mode 100644 index 0000000..1eb08c6 --- /dev/null +++ b/doc/Development/meson.asciidoc @@ -0,0 +1,30 @@ +==== Setting compiler +Compiler can only be set when initially configuring the build, and cannot be +changed with --reconfigure: + +[source, sh] +---- +export CXX="ccache clang++" +meson build-path +---- + +==== Setting linker +[source, sh] +---- +build% meson configure -Dcpp_link_args='-fuse_ld=gold' +---- + +==== Listing build options +[source, sh] +---- +build% meson configure +---- + +==== Changing build options +[source, sh] +---- +build% meson configure -D= +# for example: +build% meson configure -DPlasma=enabled +---- + -- cgit v1.2.1