summaryrefslogtreecommitdiff
path: root/libmhello/libmhello/buildfile
blob: 2820bb2be6062c135c91eb4facb130b3277371c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import int_libs  = libmformat%lib{mformat}
import int_libs += libstd-modules%liba{std-modules}
import imp_libs  = libmprint%lib{mprint}

lib{mhello}: {mxx cxx}{hello} $imp_libs $int_libs

# Export options.
#
lib{mhello}: cxx.export.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. See the version module
# for details on the version.* variable values.
#
if $version.pre_release
  lib{mhello}: bin.lib.version = @"-$version.project_id"
else
  lib{mhello}: bin.lib.version = @"-$version.major.$version.minor"

# Install into the libmhello/ subdirectory of, say, /usr/include/.
#
mxx{*}: install = include/libmhello/