2024-09-01 23:43:44 +00:00
|
|
|
intf_libs = # Interface dependencies.
|
|
|
|
impl_libs = # Implementation dependencies.
|
|
|
|
#import xxxx_libs += libhello%lib{hello}
|
|
|
|
|
2024-09-01 23:53:43 +00:00
|
|
|
import impl_libs =+ libarc-uri%lib{arc-uri}
|
|
|
|
|
2024-09-01 23:43:44 +00:00
|
|
|
lib{copy-test}: {hxx ixx txx cxx}{** -version} hxx{version} $impl_libs $intf_libs
|
|
|
|
|
|
|
|
hxx{version}: in{version} $src_root/manifest
|
|
|
|
|
|
|
|
# Build options.
|
|
|
|
#
|
|
|
|
cxx.poptions =+ "-I$out_root" "-I$src_root"
|
|
|
|
|
|
|
|
obja{*}: cxx.poptions += -DLIBCOPY_TEST_STATIC_BUILD
|
|
|
|
objs{*}: cxx.poptions += -DLIBCOPY_TEST_SHARED_BUILD
|
|
|
|
|
|
|
|
# Export options.
|
|
|
|
#
|
|
|
|
lib{copy-test}:
|
|
|
|
{
|
|
|
|
cxx.export.poptions = "-I$out_root" "-I$src_root"
|
|
|
|
cxx.export.libs = $intf_libs
|
|
|
|
}
|
|
|
|
|
|
|
|
liba{copy-test}: cxx.export.poptions += -DLIBCOPY_TEST_STATIC
|
|
|
|
libs{copy-test}: cxx.export.poptions += -DLIBCOPY_TEST_SHARED
|
|
|
|
|
|
|
|
# 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{copy-test}: bin.lib.version = "-$version.project_id"
|
|
|
|
else
|
|
|
|
lib{copy-test}: bin.lib.version = "-$version.major.$version.minor"
|
|
|
|
|
|
|
|
# Install into the libcopy-test/ subdirectory of, say, /usr/include/
|
|
|
|
# recreating subdirectories.
|
|
|
|
#
|
|
|
|
{hxx ixx txx}{*}:
|
|
|
|
{
|
|
|
|
install = include/libcopy-test/
|
|
|
|
install.subdirs = true
|
|
|
|
}
|