aboutsummaryrefslogtreecommitdiff
path: root/clean/buildfile
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-05-22 23:31:10 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-05-24 16:12:02 +0300
commit94b04d166c1041028571222b9931121b0f7dfded (patch)
tree33d79d968cfd4a7e0977cb9686ae9ff4abfd52c4 /clean/buildfile
parent28de800a7a38ed781b8f04f8f380d65b2d79ec14 (diff)
Implement brep-clean
Diffstat (limited to 'clean/buildfile')
-rw-r--r--clean/buildfile30
1 files changed, 30 insertions, 0 deletions
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 <clean/types-parsers.hxx>" \
+--long-usage
+
+ # Include generated cli files into the distribution.
+ #
+ cli.cxx{clean-options}: dist = true
+}