Затем добавьте все опции автоиндекса в разделтребований к сборке, например:
boostbook standalone
:
mylibrary
:
# Build requirements go here:
# <auto-index>on (or off) one turns on (or off) indexing:
<auto-index>on
# Turns on (or off) auto-index-verbose for diagnostic info.
# This is highly recommended until you have got all the many details correct!
<auto-index-verbose>on
# Choose the indexing method (separately for html and PDF) - see manual.
# Choose indexing method for PDFs:
<format>pdf:<auto-index-internal>off
# Choose indexing method for html:
<format>html:<auto-index-internal>on
# Set the name of the script file to use (index.idx is popular):
<auto-index-script>index.idx
# Commands in the script file should all use RELATIVE PATHS
# otherwise the script will not be portable to other machines.
# Relative paths are normally taken as relative to the location
# of the script file, but we can add a prefix to all
# those relative paths using the <auto-index-prefix> feature.
# The path specified by <auto-index-prefix> may be either relative or
# absolute, for example the following will get us up to the boost root
# directory for most Boost libraries:
<auto-index-prefix>../../..
# Tell Quickbook that it should enable indexing.
<quickbook-define>enable_index ;
;
Tip
Всегда отправляйте вывод в файл журнала. Он будет содержать много вещей, но бесценно проверить, все ли пошло хорошо, или диагностировать, что пошло не так.
Tip
Код возврата 0 не является надежным показателем того, что у вас есть то, что вы действительно хотите - проверка файла журнала является единственным определенным способом.
Tip
Если вы обновите версию компилятора, например MSVC с 9 до 10, то вам может потребоваться перестроить Autoindex, чтобы избежать того, что Microsoft называет ошибкой «бок о бок». И убедитесь, что автоиндекс. Версия, которую вы используете, является новой.
Статья Step 2: Configure Boost.Build jamfile to use AutoIndex раздела Boost.AutoIndex Getting Started and Tutorial может быть полезна для разработчиков на c++ и boost.
Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.