From 94b04d166c1041028571222b9931121b0f7dfded Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 22 May 2017 23:31:10 +0300 Subject: Implement brep-clean --- clean/buildfile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 clean/buildfile (limited to 'clean/buildfile') diff --git a/clean/buildfile b/clean/buildfile new file mode 100644 index 0000000..b4feada --- /dev/null +++ b/clean/buildfile @@ -0,0 +1,30 @@ +# file : clean/buildfile +# copyright : Copyright (c) 2014-2017 Code Synthesis Ltd +# license : MIT; see accompanying LICENSE file + +import libs = libodb%lib{odb} +import libs += libodb-pgsql%lib{odb-pgsql} +import libs += libbutl%lib{butl} +import libs += libbbot%lib{bbot} + +include ../libbrep/ + +exe{brep-clean}: {hxx ixx cxx}{* -clean-options} \ + {hxx ixx cxx}{clean-options} \ + ../libbrep/lib{brep} $libs + +# Generated options parser. +# +if $cli.configured +{ + cli.cxx{clean-options}: cli{clean} + + cli.options += -I $src_root --include-with-brackets --include-prefix clean \ +--guard-prefix CLEAN --generate-specifier --page-usage print_ --ansi-color \ +--cxx-prologue "#include " \ +--long-usage + + # Include generated cli files into the distribution. + # + cli.cxx{clean-options}: dist = true +} -- cgit v1.1