Changeset 031cb12 in rtems-docs


Ignore:
Timestamp:
11/10/22 22:22:34 (3 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
5
Children:
d144cf0
Parents:
07f151f
Message:

waf: Handle the enable options for singlehtml and ditaa/puml

Close #4755

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/waf.py

    r07f151f r031cb12  
    276276        check_inliner = not ctx.env.BIN_INLINER
    277277        if check_inliner:
    278             ctx.env.BUILD_SINGLEHTML = 'yes'
    279278            ctx.find_program("inliner", var = "BIN_INLINER", mandatory = False)
    280279            if not ctx.env.BIN_INLINER:
    281280                ctx.fatal("Node.js inliner is required install with 'npm install -g inliner' " +
    282281                          "(https://github.com/remy/inliner)")
     282        ctx.env.BUILD_SINGLEHTML = 'yes'
    283283
    284284    ctx.env.BUILD_PLANTUML = 'no'
     
    286286        check_plantuml = not ctx.env.BIN_PUML
    287287        if check_plantuml:
    288             ctx.env.BUILD_PLANTUML = 'yes'
    289288            ctx.find_program("puml", var = "BIN_PUML", mandatory = False)
    290289            if not ctx.env.BIN_PUML:
    291290                ctx.fatal("Node.js puml is required install with 'npm install -g node-plantuml' " +
    292291                          "(https://www.npmjs.com/package/node-plantuml)")
     292        ctx.env.BUILD_PLANTUML = 'yes'
    293293
    294294    ctx.env.BUILD_DITAA = 'no'
     
    305305        check_ditaa = not ctx.env.BIN_DITAA
    306306        if check_ditaa:
    307             ctx.env.BUILD_DITAA = 'yes'
    308307            ctx.find_program("ditaa", var = "BIN_DITAA", mandatory = False)
    309308            if not ctx.env.BIN_DITAA:
    310309                ctx.fatal("DITAA not found, plase install")
     310        ctx.env.BUILD_DITAA = 'yes'
    311311
    312312def sources_exclude(ctx, sources):
Note: See TracChangeset for help on using the changeset viewer.