aboutsummaryrefslogtreecommitdiff
path: root/butl/buildfile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-05-01 14:02:49 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-05-01 14:09:24 +0200
commit442c1a6790e52baa0c081f310d4d9e9b6f1ff638 (patch)
treeeb5b95db50367e8326407e1ae5fff52da21a59f3 /butl/buildfile
parent0eff5aede5ad7622ef184fcd0c24f6e088e9d031 (diff)
Try to detect MSYS2 processes
Diffstat (limited to 'butl/buildfile')
-rw-r--r--butl/buildfile9
1 files changed, 8 insertions, 1 deletions
diff --git a/butl/buildfile b/butl/buildfile
index 25354c8..53fa588 100644
--- a/butl/buildfile
+++ b/butl/buildfile
@@ -77,7 +77,14 @@ lib{butl}: cxx.export.poptions = "-I$out_root" "-I$src_root"
liba{butl}: cxx.export.poptions += -DLIBBUTL_STATIC
libs{butl}: cxx.export.poptions += -DLIBBUTL_SHARED
-if ($cxx.target.class != "windows")
+if ($cxx.target.class == "windows")
+{
+ if ($cxx.target.system == "mingw32")
+ cxx.libs += -lpsapi
+ else
+ cxx.libs += psapi.lib
+}
+else
cxx.libs += -lpthread
# Install into the butl/ subdirectory of, say, /usr/include/.