From 2152522277ee38633df5f36ac93d3ea5cf316c32 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 3 Mar 2017 15:47:47 +0200 Subject: Rework build2 cli compilation --- examples/features/buildfile | 6 ++---- examples/file/buildfile | 7 ++----- examples/hello/buildfile | 6 ++---- 3 files changed, 6 insertions(+), 13 deletions(-) (limited to 'examples') diff --git a/examples/features/buildfile b/examples/features/buildfile index c3b7913..ea8feee 100644 --- a/examples/features/buildfile +++ b/examples/features/buildfile @@ -2,10 +2,8 @@ # copyright : Copyright (c) 2009-2017 Code Synthesis Tools CC # license : MIT; see accompanying LICENSE file -exe{driver}: cxx{driver} {hxx ixx cxx}{options} doc{README} +exe{driver}: cxx{driver} cli.cxx{options} doc{README} cxx.poptions =+ "-I$out_base" -# Generated options parser. -# -{hxx ixx cxx}{options}: cli{options} +cli.cxx{options}: cli{options} diff --git a/examples/file/buildfile b/examples/file/buildfile index 8517a0c..7ae55df 100644 --- a/examples/file/buildfile +++ b/examples/file/buildfile @@ -2,13 +2,10 @@ # copyright : Copyright (c) 2009-2017 Code Synthesis Tools CC # license : MIT; see accompanying LICENSE file -exe{driver}: cxx{driver} {hxx ixx cxx}{options} doc{README} file{test.ops} +exe{driver}: cxx{driver} cli.cxx{options} doc{README} file{test.ops} exe{driver}: test.arguments = --options-file $src_base/test.ops cxx.poptions =+ "-I$out_base" -# Generated options parser. -# -{hxx ixx cxx}{options}: cli{options} - +cli.cxx{options}: cli{options} cli.options = --generate-file-scanner diff --git a/examples/hello/buildfile b/examples/hello/buildfile index 94d94eb..9991aa9 100644 --- a/examples/hello/buildfile +++ b/examples/hello/buildfile @@ -2,11 +2,9 @@ # copyright : Copyright (c) 2009-2017 Code Synthesis Tools CC # license : MIT; see accompanying LICENSE file -exe{driver}: cxx{driver} {hxx ixx cxx}{hello} doc{README} +exe{driver}: cxx{driver} cli.cxx{hello} doc{README} exe{driver}: test.arguments = --greeting Hi John Jane cxx.poptions =+ "-I$out_base" -# Generated options parser. -# -{hxx ixx cxx}{hello}: cli{hello} +cli.cxx{hello}: cli{hello} -- cgit v1.1