Marat Dukhan | 08c4a43 | 2019-10-03 09:29:21 -0700 | [diff] [blame] | 1 | # Description: |
| 2 | # Portable pthread-based thread pool for C and C++ |
| 3 | |
| 4 | package(default_visibility = ["//visibility:public"]) |
| 5 | |
| 6 | licenses(["notice"]) |
| 7 | |
| 8 | exports_files(["LICENSE"]) |
| 9 | |
| 10 | cc_library( |
| 11 | name = "pthreadpool", |
| 12 | srcs = [ |
| 13 | "src/threadpool-pthreads.c", |
| 14 | "src/threadpool-utils.h", |
| 15 | ], |
| 16 | hdrs = [ |
| 17 | "include/pthreadpool.h", |
| 18 | ], |
| 19 | copts = [ |
| 20 | "-O2", |
| 21 | ], |
| 22 | defines = [ |
| 23 | "PTHREADPOOL_NO_DEPRECATED_API", |
| 24 | ], |
| 25 | includes = [ |
| 26 | "include", |
| 27 | ], |
| 28 | strip_include_prefix = "include", |
| 29 | deps = [ |
| 30 | "@FXdiv", |
| 31 | ], |
| 32 | ) |