Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

Step 2: Configure Boost.Build jamfile to use AutoIndex

Boost , Boost.AutoIndex , Getting Started and Tutorial

Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

PrevUpHomeNext

Предположим, у вас есть Jamfile для создания документации, которая выглядит примерно так:

boostbook standalone
    :
        mylibrary
    :
        # build requirements go here:
    ;

Затем добавьте строку:

using auto-index ; 

Затем добавьте все опции автоиндекса в разделтребований к сборке, например:

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

Всегда отправляйте вывод в файл журнала. Он будет содержать много вещей, но бесценно проверить, все ли пошло хорошо, или диагностировать, что пошло не так.

[Tip] Tip

Код возврата 0 не является надежным показателем того, что у вас есть то, что вы действительно хотите - проверка файла журнала является единственным определенным способом.

[Tip] Tip

Если вы обновите версию компилятора, например MSVC с 9 до 10, то вам может потребоваться перестроить Autoindex, чтобы избежать того, что Microsoft называет ошибкой «бок о бок». И убедитесь, что автоиндекс. Версия, которую вы используете, является новой.


PrevUpHomeNext

Статья Step 2: Configure Boost.Build jamfile to use AutoIndex раздела Boost.AutoIndex Getting Started and Tutorial может быть полезна для разработчиков на c++ и boost.




Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



:: Главная :: Getting Started and Tutorial ::


реклама


©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
Top.Mail.Ru

Время компиляции файла: 2024-08-30 11:47:00
2025-07-05 03:22:11/0.003197193145752/0