diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-07-20 08:55:35 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-07-20 08:55:35 +0200 |
commit | b86d23391e4b7882ebfca582d146e75c6cc1e454 (patch) | |
tree | 8d002d34199dd24fa5a3898e6943dca62e906d10 /libmhello/libmhello/buildfile | |
parent | bffe85ae4c01f126c47ab7ea7b220b91d7c65dac (diff) |
Add modularized version
Diffstat (limited to 'libmhello/libmhello/buildfile')
-rw-r--r-- | libmhello/libmhello/buildfile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libmhello/libmhello/buildfile b/libmhello/libmhello/buildfile new file mode 100644 index 0000000..5b46722 --- /dev/null +++ b/libmhello/libmhello/buildfile @@ -0,0 +1,19 @@ +import int_libs = libmformat%lib{mformat} +import imp_libs = libmprint%lib{mprint} +import imp_libs += libstd-modules%liba{std-modules} + +lib{mhello}: {mxx cxx}{hello} $imp_libs $int_libs + +# For pre-releases use the complete version to make sure they cannot be used +# in place of another pre-release or the final version. +# +if $version.pre_release + lib{mhello}: bin.lib.version = @"-$version.project_id" +else + lib{mhello}: bin.lib.version = @"-$version.major.$version.minor" + +lib{mhello}: cxx.export.libs = $int_libs + +# Install into the libmhello/ subdirectory of, say, /usr/include/. +# +install.include = $install.include/$project/ |