aboutsummaryrefslogtreecommitdiff
path: root/clean/buildfile
blob: 761f063c909aa9f972a60d0f2f26560a0621932a (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
# file      : clean/buildfile
# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
# license   : MIT; see accompanying LICENSE file

import libs  = libodb%lib{odb}
import libs += libodb-pgsql%lib{odb-pgsql}
import libs += libbutl%lib{butl}
import libs += libbbot%lib{bbot}

include ../libbrep/

exe{brep-clean}: {hxx ixx cxx}{* -clean-options} {hxx ixx cxx}{clean-options} \
                 ../libbrep/lib{brep} $libs

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

  cli.options += -I $src_root --include-with-brackets --include-prefix clean \
--guard-prefix CLEAN --generate-specifier --page-usage print_ --ansi-color   \
--cxx-prologue "#include <clean/types-parsers.hxx>"                          \
--long-usage

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