From 6deaa52d27ffd9e3ff2f78d7395526505c455416 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 12 Jul 2017 19:05:09 +0300 Subject: Make use of wildcards in buildfiles --- libbutl/buildfile | 57 +++++++------------------------------------------------ 1 file changed, 7 insertions(+), 50 deletions(-) (limited to 'libbutl/buildfile') diff --git a/libbutl/buildfile b/libbutl/buildfile index 28cbc7b..c4b949d 100644 --- a/libbutl/buildfile +++ b/libbutl/buildfile @@ -2,63 +2,20 @@ # copyright : Copyright (c) 2014-2017 Code Synthesis Ltd # license : MIT; see accompanying LICENSE file -lib{butl}: \ - {hxx cxx}{ base64 } \ - {hxx ixx cxx}{ char-scanner } \ - {hxx }{ const-ptr } \ - {hxx ixx txx cxx}{ curl } \ - {hxx cxx}{ diagnostics } \ - {hxx }{ export } \ - {hxx ixx cxx}{ fdstream } \ - {hxx ixx cxx}{ filesystem } \ - {hxx }{ manifest-forward } \ - {hxx cxx}{ manifest-parser } \ - {hxx cxx}{ manifest-serializer } \ - {hxx }{ multi-index } \ - {hxx ixx txx cxx}{ openssl } \ - {hxx }{ optional } \ - {hxx cxx}{ pager } \ - {hxx ixx txx cxx}{ path } \ - {hxx }{ path-io } \ - {hxx }{ path-map } \ - {hxx txx }{ prefix-map } \ - {hxx ixx cxx}{ process } \ - {hxx }{ process-details } \ - {hxx }{ process-io } \ - { txx cxx}{ process-run } \ - {hxx txx cxx}{ regex } \ - {hxx ixx cxx}{ sendmail } \ - {hxx cxx}{ sha256 } \ - {hxx }{ small-vector } \ - {hxx ixx cxx}{ standard-version } \ - {hxx cxx}{ string-parser } \ - {hxx txx }{ string-table } \ - {hxx cxx}{ tab-parser } \ - {hxx cxx}{ target-triplet } \ - {hxx cxx}{ timestamp } \ - {hxx ixx cxx}{ utility } \ - {hxx }{ vector-view } \ - {hxx }{ version } \ -ft/{hxx }{ exception } \ -ft/{hxx }{ lang } \ -ft/{hxx }{ shared_mutex } +lib{butl}: {hxx ixx txx cxx}{** -win32-utility -version} {hxx}{version} # Exclude these from compilation on non-Windows targets. # if ($cxx.target.class == "windows") - lib{butl}: {hxx cxx}{ win32-utility } + lib{butl}: {hxx cxx}{win32-utility} else - lib{butl}: file{ win32-utility.hxx win32-utility.cxx } + lib{butl}: file{win32-utility.?xx} -# This one is included into sha256.cxx so treat it as file to exclude -# from the compilation. +# The C-files are included into sha256.cxx (sha256c.c) and timestamp.cxx +# (strptime.c timelocal.h timelocal.c), so treat them as files to exclude from +# the compilation. # -lib{butl}: file{sha256c.c} - -# These ones are included into timestamp.cxx so treat them as files to exclude -# from the compilation. -# -lib{butl}: file{strptime.c timelocal.h timelocal.c} +lib{butl}: file{*.c +*.h} hxx{version}: in{version} $src_root/file{manifest} hxx{version}: dist = true -- cgit v1.1