aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-11-29 09:27:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-11-29 09:27:08 +0200
commita0950f84b17c16a93666a73252d9222fd093416b (patch)
tree61cb0641df1336ed100a1ccfe34d95231a4c724c
parentb7970d20bd1f47de01ac40f7e471f6254a584c9d (diff)
Add dist support
-rw-r--r--bpkg/buildfile8
-rw-r--r--build/bootstrap.build4
-rw-r--r--buildfile2
3 files changed, 12 insertions, 2 deletions
diff --git a/bpkg/buildfile b/bpkg/buildfile
index 41cdb66..2340443 100644
--- a/bpkg/buildfile
+++ b/bpkg/buildfile
@@ -4,6 +4,12 @@
import libs += libbutl%lib{butl}
-lib{bpkg}: cxx{manifest-parser manifest-serializer manifest} $libs
+lib{bpkg}: \
+{ hxx cxx }{ manifest } \
+{ hxx cxx }{ manifest-parser } \
+{ hxx cxx }{ manifest-serializer } \
+{ hxx }{ version } \
+$libs
+
cxx.poptions += -I$src_root
lib{bpkg}: cxx.export.poptions = -I$src_root
diff --git a/build/bootstrap.build b/build/bootstrap.build
index 4c443a9..3023b45 100644
--- a/build/bootstrap.build
+++ b/build/bootstrap.build
@@ -3,5 +3,9 @@
# license : MIT; see accompanying LICENSE file
project = libbpkg
+version = 0.1.0
using config
+using dist
using test
+
+dist.package = $project-$version
diff --git a/buildfile b/buildfile
index b9c4507..9bd2a5b 100644
--- a/buildfile
+++ b/buildfile
@@ -3,5 +3,5 @@
# license : MIT; see accompanying LICENSE file
d = bpkg/ tests/
-.: $d
+./: $d doc{LICENSE} file{version}
include $d