aboutsummaryrefslogtreecommitdiff
path: root/bbot/buildfile
blob: 1f4806279b71a1fc81c87f0e06ea704409e21f52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# file      : bbot/buildfile
# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
# license   : MIT; see accompanying LICENSE file

import libs = libbutl%lib{butl}
import libs += libbbot%lib{bbot}

exe{bbot-agent}:                                                   \
{            cxx}{ agent }         {hxx ixx cxx}{ agent-options  } \
{hxx            }{ bbot-version  }                                 \
                                   {hxx ixx cxx}{ common-options } \
{hxx         cxx}{ diagnostics   }                                 \
{hxx            }{ types         }                                 \
{hxx         cxx}{ types-parsers }                                 \
{hxx         cxx}{ utility       }                                 \
                   $libs

# Generated options parser.
#
if $cli.configured
{
  cli.cxx{common-options}: cli{common}
  cli.cxx{agent-options}: cli{agent}

  cli.options += -I $src_root --include-with-brackets --include-prefix bbot \
--guard-prefix BBOT --cxx-prologue "#include <bbot/types-parsers>" \
--cli-namespace bbot::cli --generate-specifier

  cli.cxx{common-options}: cli.options = $cli.options # No usage.

  # Usage options.
  #
  cli.options += --suppress-undocumented --long-usage --ansi-color \
--page-usage 'bbot::print_$name$_' --option-length 20

  # Include generated cli files into the distribution.
  #
  cli.cxx{*}: dist = true
}