From bdf713f07877e23e6f7b2c5786b9cc6c31c0b2db Mon Sep 17 00:00:00 2001 From: Andreas Stallinger Date: Wed, 27 Apr 2016 14:58:57 +0200 Subject: [PATCH] documentation: Use Bear to generate compilation database --- script/setup.sh | 2 +- web/documentation/index.html | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/script/setup.sh b/script/setup.sh index f10f7e35..21bc8bbd 100755 --- a/script/setup.sh +++ b/script/setup.sh @@ -82,7 +82,7 @@ if [ $PLATFORM == "Linux" ] || [ $PLATFORM == "MacOS" ]; then cd build/Debug && cmake -G Ninja -DCMAKE_BUILD_TYPE="Debug" ../.. echo -e $INFO "run cmake with Release configuration" - cd ../Release && cmake -G Xcode -DCMAKE_BUILD_TYPE="Release" ../.. + cd ../Release && cmake -G Ninja -DCMAKE_BUILD_TYPE="Release" ../.. fi echo -e $SUCCESS "setup complete" diff --git a/web/documentation/index.html b/web/documentation/index.html index ec4a02f6..d1a6d08e 100644 --- a/web/documentation/index.html +++ b/web/documentation/index.html @@ -586,6 +586,9 @@

Create a Project from Compilation Database

If you are using CMake you can export compile commands by defining the flag CMAKE_EXPORT_COMPILE_COMMANDS. Just select the exportet .json file in the file picker.

+

For non-CMake projects you can use Bear. Bear + generates a json file during the build process. Bear has been tested on FreeBSD, GNU/Linux and OS + X.

Compilation Database Headers

In the next step you can define the locations of the corresponding header files of the source files in the compilation database.

@@ -1268,4 +1271,5 @@ }); - \ No newline at end of file + +