copy/libcopy-test/buildfile
RYAN 67a74bb7bb
Some checks failed
on-push / build-and-test (push) Failing after 7s
wip
2024-09-02 01:43:44 +02:00

44 lines
1.2 KiB
Ruby

intf_libs = # Interface dependencies.
impl_libs = # Implementation dependencies.
#import xxxx_libs += libhello%lib{hello}
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
}