浏览代码

add coc_update.sh for linux

Le Tan 4 年之前
父节点
当前提交
fb9962d013
共有 2 个文件被更改,包括 30 次插入0 次删除
  1. 0 0
      scripts/coc_update.cmd
  2. 30 0
      scripts/coc_update.sh

+ 0 - 0
coc_update.cmd → scripts/coc_update.cmd


+ 30 - 0
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