From be3dc4cee63da92cfa1fa44a0bf90ab11ec7aaca Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 15 Nov 2016 16:57:48 +0200 Subject: Start switch to build2 --- cli/buildfile | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 53 insertions(+), 6 deletions(-) (limited to 'cli/buildfile') 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 -- cgit v1.1