summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-03-03 15:47:47 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-03-03 15:47:47 +0200
commit2152522277ee38633df5f36ac93d3ea5cf316c32 (patch)
tree6066584c33c5416b0ce523913eda0292e7f170f5 /examples
parent93df04a720c61edc85f1392e891196a1397288ae (diff)
Rework build2 cli compilation
Diffstat (limited to 'examples')
-rw-r--r--examples/features/buildfile6
-rw-r--r--examples/file/buildfile7
-rw-r--r--examples/hello/buildfile6
3 files changed, 6 insertions, 13 deletions
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}