aboutsummaryrefslogtreecommitdiff
path: root/configure.py
diff options
context:
space:
mode:
authorMarat Dukhan <maratek@google.com>2019-09-30 15:22:14 -0700
committerMarat Dukhan <maratek@google.com>2019-09-30 15:44:55 -0700
commit29f0e2ced866e321d8293d4d1bdae71a5fdc90ec (patch)
tree50d75bdf0439eaf3f37e8ae316086c9038bfaee9 /configure.py
parentafb23f9ac963caaea7685a3d454e80b80417ddec (diff)
downloadpthreadpool-29f0e2ced866e321d8293d4d1bdae71a5fdc90ec.tar.gz
New pthreadpool_parallelize_* API
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/configure.py b/configure.py
index 75fa736..e0f0992 100755
--- a/configure.py
+++ b/configure.py
@@ -12,11 +12,12 @@ 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"]
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"))