coc_update.cmd 801 B

1234567891011121314151617181920212223242526272829303132333435
  1. @echo off
  2. rem Update .ccls project file for ccls LPS and compile_flags.txt for clangd
  3. if "%~1"=="" (
  4. echo missing argument: the location of Qt's include directory
  5. EXIT /B 0
  6. )
  7. set qt_inc=%~1
  8. set qt_inc=%qt_inc:\=\\%
  9. (
  10. echo clang
  11. echo -fcxx-exceptions
  12. echo -std=c++11
  13. echo -Isrc
  14. echo -Isrc\\dialog
  15. echo -Isrc\\utils
  16. echo -Isrc\\widgets
  17. echo -Ihoedown
  18. echo -Ipeg-highlight
  19. echo -I%qt_inc%
  20. echo -I%qt_inc%\\QtCore
  21. echo -I%qt_inc%\\QtWebEngineWidgets
  22. echo -I%qt_inc%\\QtSvg
  23. echo -I%qt_inc%\\QtPrintSupport
  24. echo -I%qt_inc%\\QtWidgets
  25. echo -I%qt_inc%\\QtWebEngineCore
  26. echo -I%qt_inc%\\QtGui
  27. echo -I%qt_inc%\\QtWebChannel
  28. echo -I%qt_inc%\\QtNetwork
  29. echo -I%qt_inc%\\QtTest
  30. ) > ".ccls"
  31. copy /Y .ccls compile_flags.txt