forked from arc/libarc-uri
66 lines
1.5 KiB
Plaintext
66 lines
1.5 KiB
Plaintext
|
intf_libs = # Interface dependencies.
|
||
|
impl_libs = # Implementation dependencies.
|
||
|
|
||
|
./: lib{arc-uri}: libul{arc-uri}
|
||
|
|
||
|
libul{arc-uri}: {hxx ixx txx cxx}{** -**.test... -version} \
|
||
|
{hxx }{ version}
|
||
|
|
||
|
libul{arc-uri}: $impl_libs $intf_libs
|
||
|
|
||
|
# Unit tests.
|
||
|
#
|
||
|
exe{*.test}:
|
||
|
{
|
||
|
test = true
|
||
|
install = false
|
||
|
}
|
||
|
|
||
|
for t: cxx{**.test...}
|
||
|
{
|
||
|
d = $directory($t)
|
||
|
n = $name($t)...
|
||
|
|
||
|
./: $d/exe{$n}: $t $d/{hxx ixx txx}{+$n} $d/testscript{+$n}
|
||
|
$d/exe{$n}: libul{arc-uri}: bin.whole = false
|
||
|
}
|
||
|
|
||
|
hxx{version}: in{version} $src_root/manifest
|
||
|
|
||
|
# Build options.
|
||
|
#
|
||
|
cxx.poptions =+ "-I$out_root" "-I$src_root"
|
||
|
cxx.coptions =+ -fvisibility=hidden
|
||
|
|
||
|
obja{*}: cxx.poptions += -DLIBARC_URI_STATIC_BUILD
|
||
|
objs{*}: cxx.poptions += -DLIBARC_URI_SHARED_BUILD
|
||
|
|
||
|
# Export options.
|
||
|
#
|
||
|
lib{arc-uri}:
|
||
|
{
|
||
|
cxx.export.poptions = "-I$out_root" "-I$src_root"
|
||
|
cxx.export.libs = $intf_libs
|
||
|
}
|
||
|
|
||
|
liba{arc-uri}: cxx.export.poptions += -DLIBARC_URI_STATIC
|
||
|
libs{arc-uri}: cxx.export.poptions += -DLIBARC_URI_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{arc-uri}: bin.lib.version = "-$version.project_id"
|
||
|
else
|
||
|
lib{arc-uri}: bin.lib.version = "-$version.major.$version.minor"
|
||
|
|
||
|
# Install into the arc/uri/ subdirectory of, say, /usr/include/
|
||
|
# recreating subdirectories.
|
||
|
#
|
||
|
{hxx ixx txx}{*}:
|
||
|
{
|
||
|
install = include/arc/uri/
|
||
|
install.subdirs = true
|
||
|
}
|