aboutsummaryrefslogtreecommitdiff
path: root/configure.py
diff options
context:
space:
mode:
authorMarat Dukhan <maratek@gmail.com>2020-04-12 13:18:52 -0700
committerMarat Dukhan <maratek@gmail.com>2020-04-12 13:18:52 -0700
commitbfa3b9ce6cb71dc8b792e39d24717320a4f92572 (patch)
tree7cc41f73a43a12818e6652e76d3df7c3775a50db /configure.py
parentda486afd0f9e2b42ccb90940e2dfba6cfed38708 (diff)
downloadpthreadpool-bfa3b9ce6cb71dc8b792e39d24717320a4f92572.tar.gz
Minimally fix confu build
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/configure.py b/configure.py
index fd4ce92..51b9b62 100755
--- a/configure.py
+++ b/configure.py
@@ -12,11 +12,15 @@ def main(args):
build.export_cpath("include", ["pthreadpool.h"])
with build.options(source_dir="src", extra_include_dirs="src", deps=build.deps.fxdiv):
- sources = ["threadpool-legacy.c"]
+ sources = ["legacy-api.c", "portable-api.c"]
if build.target.is_emscripten:
- sources.append("threadpool-shim.c")
+ sources.append("shim.c")
+ elif build.target.is_macos:
+ sources.append("gcd.c")
+ elif build.target.is_windows:
+ sources.append("windows.c")
else:
- sources.append("threadpool-pthreads.c")
+ sources.append("pthreads.c")
build.static_library("pthreadpool", [build.cc(src) for src in sources])
with build.options(source_dir="test", deps=[build, build.deps.googletest]):