diff options
author | Daniel Malea <daniel.malea@intel.com> | 2013-05-28 03:47:34 +0000 |
---|---|---|
committer | Daniel Malea <daniel.malea@intel.com> | 2013-05-28 03:47:34 +0000 |
commit | 56c7ef6b1ef9ec21f3b1586f29018c2293cb91a7 (patch) | |
tree | 00124558ae2cde526f289103e5511a5057930107 /www | |
parent | 3933006da9f49eab5f9d20bc2f005ddb300558cc (diff) | |
download | lldb-56c7ef6b1ef9ec21f3b1586f29018c2293cb91a7.tar.gz |
Add CMake targets to build LLDB reference docs
- [ninja|make] lldb-cpp-doc builds the C++ API reference docs
- [ninja|make] lldb-python-doc builds the python API reference docs
- updated build page on website to include instructions to build docs
Tested on Linux/Mac OS X
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@182752 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'www')
-rwxr-xr-x | www/build.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/www/build.html b/www/build.html index 2f96d8326..e10e7abe9 100755 --- a/www/build.html +++ b/www/build.html @@ -81,6 +81,17 @@ <code>> yum install swig python-devel libedit-devel</code>
<p>On an Ubuntu system one might run:</p>
<code>> sudo apt-get install build-essential subversion swig python-dev libedit-dev </code>
+ <p>If you wish to build the optional reference documentation, additional dependencies are required:</p>
+ <ul>
+ <li> Graphviz (for the 'dot' tool).
+ <li> doxygen (only if you wish to build the C++ API reference)
+ <li> epydoc (only if you wish to build the Python API reference)
+ </ul>
+ <p>To install the prerequisites for building the documentation (on Ubuntu) do:</p>
+ <code>
+ <br>> sudo apt-get install doxygen graphviz
+ <br>> sudo pip install epydoc
+ </code>
<h2 >Building LLDB</h2>
<p>We first need to checkout the source trees into the appropriate locations. Both
Clang and LLDB build as subprojects of LLVM. This means we will be checking out
@@ -189,6 +200,10 @@ <code>
<br>> python dotest.py -h
</code>
+ <h2>Building API reference documentation</h2>
+ <p>LLDB exposes a C++ as well as a Python API. To build the reference documentation for these two APIs, ensure you have
+ the required dependencies installed, and build the <tt>lldb-python-doc</tt> and <tt>lldb-cpp-doc</tt> CMake targets.</p>
+ <p> The output HTML reference documentation can be found in <tt><build-dir>/tools/lldb/docs/</tt>.<p>
<h2>Additional Notes</h2>
<p>LLDB has a Python scripting capability and supplies its own Python module named <tt>lldb</tt>.
If a script is run inside the command line <tt>lldb</tt> application, the Python module
|