2 This file contains some build definitions for C++ extensions used in the Google Benchmark Python bindings.
6 "//conditions:default": ".so",
10 def py_extension(name, srcs, hdrs = [], copts = [], features = [], deps = []):
11 for shared_lib_suffix in _SHARED_LIB_SUFFIX.values():
12 shared_lib_name = name + shared_lib_suffix
14 name = shared_lib_name,
23 return native.py_library(
26 platform: [name + shared_lib_suffix]
27 for platform, shared_lib_suffix in _SHARED_LIB_SUFFIX.items()