From 05ac75efb2d4467214acc350ada97da86504e333 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Mon, 4 Feb 2019 20:45:46 +0100 Subject: Added instructions to build a statically linked doxygen binary from sources --- doc/install.doc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/doc/install.doc b/doc/install.doc index d64b259..b2570d1 100644 --- a/doc/install.doc +++ b/doc/install.doc @@ -116,6 +116,26 @@ Compilation is now done by performing the following steps: documentation (just point a HTML browser to the file index.html in the html directory). +
  • Optional: static linking + + If you want to build a statically linked version of doxygen that embeds libclang + you need to first build LLVM and clang from sources using the following options: + + cmake -DLIBCLANG_BUILD_STATIC=ON \ + -DBUILD_SHARED_LIBS=OFF \ + -DLLVM_ENABLE_PIC=OFF \ + -DLLVM_BUILD_LLVM_DYLIB=OFF \ + -DLLVM_BUILD_LLVM_C_DYLIB=OFF \ + path_to_llvm_root_source_dir + + and then build doxygen with these options: + + cmake -DCMAKE_BUILD_TYPE=Release \ + "-DCMAKE_FIND_LIBRARY_SUFFIXES=.a" \ + "-ldl;-lz;-lncurses;-lpthread" \ + -Duse_libclang=YES \ + path_to_doxygen_root_source_dir + \section install_bin_unix Installing the binaries on UNIX -- cgit v0.12