New pthreadpool_parallelize_* API
diff --git a/configure.py b/configure.py
index 75fa736..e0f0992 100755
--- a/configure.py
+++ b/configure.py
@@ -12,11 +12,12 @@
build.export_cpath("include", ["pthreadpool.h"])
with build.options(source_dir="src", extra_include_dirs="src", deps=build.deps.fxdiv):
+ sources = ["threadpool-legacy.c"]
if build.target.is_emscripten:
- source = "threadpool-shim.c"
+ source.append("threadpool-shim.c")
else:
- source = "threadpool-pthreads.c"
- build.static_library("pthreadpool", build.cc(source))
+ source.append("threadpool-pthreads.c")
+ build.static_library("pthreadpool", [build.cc(src) for src in sources])
with build.options(source_dir="test", deps=[build, build.deps.googletest]):
build.unittest("pthreadpool-test", build.cxx("pthreadpool.cc"))