diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-15 16:57:48 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-15 16:57:48 +0200 |
commit | be3dc4cee63da92cfa1fa44a0bf90ab11ec7aaca (patch) | |
tree | e74b26a798e0ff71bc140bbba3ea30e2eb3ac3e3 /cli/buildfile | |
parent | f8c61f71ebf44572c9e865a620dc053e94371beb (diff) |
Start switch to build2
Diffstat (limited to 'cli/buildfile')
-rw-r--r-- | cli/buildfile | 59 |
1 files changed, 53 insertions, 6 deletions
diff --git a/cli/buildfile b/cli/buildfile index 95f5d14..e50cac9 100644 --- a/cli/buildfile +++ b/cli/buildfile @@ -1,10 +1,57 @@ +# file : buildfile +# copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC +# license : MIT; see accompanying LICENSE file + import libs = libcutl%lib{cutl} -sema = semantics/{class doc elements expression namespace option unit} -trav = traversal/{class elements namespace option unit} +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} -exe{cli}: cxx{cli generator html lexer name-processor parser runtime-inline \ -source context header inline man options runtime-header runtime-source \ -txt option-types $sema $trav} $libs +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 +} -cxx.poptions += -I$out_base -I$src_base +# Include generated cli files into the distribution. +# +{hxx ixx cxx}{options}: dist = true |