summaryrefslogtreecommitdiff
path: root/cli/buildfile
blob: cd195836c24f9b6ed1b0f28eea96968f4a564801 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# file      : buildfile
# copyright : Copyright (c) 2009-2017 Code Synthesis Tools CC
# license   : MIT; see accompanying LICENSE file

import libs = libcutl%lib{cutl}

exe{cli}:                                     \
          {            cxx}{ cli            } \
          {hxx         cxx}{ context        } \
          {hxx         cxx}{ generator      } \
          {hxx         cxx}{ header         } \
          {hxx         cxx}{ html           } \
          {hxx         cxx}{ inline         } \
          {hxx ixx     cxx}{ lexer          } \
          {hxx         cxx}{ man            } \
          {hxx         cxx}{ name-processor } \
          {hxx ixx     cxx}{ options        } \
          {hxx         cxx}{ option-types   } \
          {hxx         cxx}{ parser         } \
          {hxx         cxx}{ runtime-header } \
          {hxx         cxx}{ runtime-inline } \
          {hxx         cxx}{ runtime-source } \
          {hxx            }{ semantics      } \
          {hxx         cxx}{ source         } \
          {hxx ixx        }{ token          } \
          {hxx            }{ traversal      } \
          {hxx         cxx}{ txt            } \
semantics/{hxx         cxx}{ class          } \
semantics/{hxx         cxx}{ doc            } \
semantics/{hxx         cxx}{ elements       } \
semantics/{hxx         cxx}{ expression     } \
semantics/{hxx         cxx}{ namespace      } \
semantics/{hxx         cxx}{ option         } \
semantics/{hxx     txx cxx}{ unit           } \
traversal/{hxx         cxx}{ class          } \
traversal/{hxx            }{ doc            } \
traversal/{hxx         cxx}{ elements       } \
traversal/{hxx            }{ expression     } \
traversal/{hxx         cxx}{ namespace      } \
traversal/{hxx         cxx}{ option         } \
traversal/{hxx         cxx}{ unit           } \
                             $libs

# Generated options parser.
#
{hxx ixx cxx}{options}: cli{options}

if $cli.configured
{
  cli.options += -I $src_root --include-with-brackets --include-prefix cli \
--guard-prefix CLI --generate-file-scanner --generate-specifier \
--reserved-name stdout
}

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