From fb9962d01331e57c063316cad4dfa338b53dfd1e Mon Sep 17 00:00:00 2001 From: Le Tan Date: Sun, 29 Nov 2020 22:29:08 +0800 Subject: [PATCH] add coc_update.sh for linux --- coc_update.cmd => scripts/coc_update.cmd | 0 scripts/coc_update.sh | 30 ++++++++++++++++++++++++ 2 files changed, 30 insertions(+) rename coc_update.cmd => scripts/coc_update.cmd (100%) create mode 100755 scripts/coc_update.sh diff --git a/coc_update.cmd b/scripts/coc_update.cmd similarity index 100% rename from coc_update.cmd rename to scripts/coc_update.cmd diff --git a/scripts/coc_update.sh b/scripts/coc_update.sh new file mode 100755 index 00000000..e26ba223 --- /dev/null +++ b/scripts/coc_update.sh @@ -0,0 +1,30 @@ +#!/bin/sh +if [ -n "$1" ]; then + echo Qt include directory: $1 +else + echo Please specify the Qt include directory. + exit +fi + +ccls_file=".ccls" + +echo clang > $ccls_file +echo -fcxx-exceptions >> $ccls_file +echo -std=c++14 >> $ccls_file +echo -Isrc/core >> $ccls_file +echo -Isrc >> $ccls_file +echo -Ilibs/vtextedit/src/editor/include >> $ccls_file +echo -Ilibs/vtitlebar/src >> $ccls_file +echo -I$1 >> $ccls_file +echo -I$1/QtCore >> $ccls_file +echo -I$1/QtWebEngineWidgets >> $ccls_file +echo -I$1/QtSvg >> $ccls_file +echo -I$1/QtPrintSupport >> $ccls_file +echo -I$1/QtWidgets >> $ccls_file +echo -I$1/QtWebEngineCore >> $ccls_file +echo -I$1/QtGui >> $ccls_file +echo -I$1/QtWebChannel >> $ccls_file +echo -I$1/QtNetwork >> $ccls_file +echo -I$1/QtTest >> $ccls_file + +cp -f .ccls compile_flags.txt