diff options
author | lloyd <[email protected]> | 2011-06-07 13:16:54 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-06-07 13:16:54 +0000 |
commit | 07a288e9077d4722426225fb057c5e414e00e40b (patch) | |
tree | 3da51d5b183d72733030c195bcc4b46317c47cda /doc/building.txt | |
parent | da3b058785e9c4c3983d10de586f1ca3115be334 (diff) |
Update build doc
Diffstat (limited to 'doc/building.txt')
-rw-r--r-- | doc/building.txt | 41 |
1 files changed, 25 insertions, 16 deletions
diff --git a/doc/building.txt b/doc/building.txt index 56beef43e..9e7be79a3 100644 --- a/doc/building.txt +++ b/doc/building.txt @@ -168,26 +168,34 @@ compiler to look for both include files and library files in place where they will be in the default compiler search paths (consult your documentation and/or local expert for details). +Other Build-Related Tasks +---------------------------------------- + .. _amalgamation: The Amalgamation Build ----------------------------------------- +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ You can also configure Botan to be built using only a single source file; this is quite convenient if you plan to embed the library into -another application. To do so, run ``configure.py`` with -whatever arguments you would ordinarily use, along with the option -``--gen-amalgamation``. This will create two (rather large) -files, ``botan_all.h`` and ``botan_all.cpp``. +another application. To do so, run ``configure.py`` with whatever +arguments you would ordinarily use, along with the option +``--gen-amalgamation``. This will create two (rather large) files, +``botan_all.h`` and ``botan_all.cpp``. Whenever you would have included a botan header, you can then include -``botan_all.h``, and include ``botan_all.cpp`` along -with the rest of the source files in your build. If you want to be -able to easily switch between amalgamated and non-amalgamated versions -(for instance to take advantage of prepackaged versions of botan on -operating systems that support it), you can instead ignore -``botan_all.h`` and use the headers from -``build/include`` as normal. +``botan_all.h``, and include ``botan_all.cpp`` along with the rest of +the source files in your build. If you want to be able to easily +switch between amalgamated and non-amalgamated versions (for instance +to take advantage of prepackaged versions of botan on operating +systems that support it), you can instead ignore ``botan_all.h`` and +use the headers from ``build/include`` as normal. + +You can also build the library as normal but using the amalgamation +instead of the individual source files using ``--via-amalgamation``. +This is essentially a very simple form of link time optimization; +because the entire library source is visible to the compiler, it has +more opportunities for interprocedural optimizations. Modules Relying on Third Party Libraries ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -206,13 +214,14 @@ enabled at build time; these include: and decompression. Requires the zlib development libraries to be installed. - - ``--with-gnump`` adds an alternative engine for public key cryptography - that uses the GNU MP library. GNU MP 4.1 or later is required. + - ``--with-gnump`` adds an alternative engine for public key + cryptography that uses the GNU MP library. GNU MP 4.1 or later is + required. - ``--with-openssl`` adds an engine that uses OpenSSL for some public key operations and ciphers/hashes. OpenSSL 0.9.7 or later is - required. Note that (unlike GNU MP) OpenSSL's versions are not - always faster than the versions built into botan. + required. Note that OpenSSL's versions are not always faster than + the versions built into botan. Multiple Builds ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |