From 098559ca3552ebd8f80a6d28254f4fa58913b751 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 25 Jul 2016 08:56:48 +0200 Subject: Add DLL export/import support --- butl/buildfile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'butl/buildfile') diff --git a/butl/buildfile b/butl/buildfile index 5c939af..7a3c442 100644 --- a/butl/buildfile +++ b/butl/buildfile @@ -5,6 +5,7 @@ lib{butl}: \ {hxx cxx}{ base64 } \ {hxx cxx}{ char-scanner } \ +{hxx }{ export } \ {hxx cxx}{ fdstream } \ {hxx ixx cxx}{ filesystem } \ {hxx }{ multi-index } \ @@ -30,8 +31,15 @@ lib{butl}: \ lib{butl}: file{sha256c.c} cxx.poptions =+ -I$src_root + lib{butl}: cxx.export.poptions = -I$src_root +liba{hello}: cxx.export.poptions += -DLIBBUTL_STATIC +libs{hello}: cxx.export.poptions += -DLIBBUTL_SHARED + +obja{*}: cxx.poptions += -DLIBBUTL_STATIC_BUILD +objs{*}: cxx.poptions += -DLIBBUTL_SHARED_BUILD + # Install into the butl/ subdirectory of, say, /usr/include/. # install.include = $install.include/butl -- cgit v1.1