| package(default_visibility = ["//visibility:public"]) |
| |
| cc_library( |
| name = "basics-cxx", |
| srcs = [ |
| "basics.cpp", |
| "execmeta.cpp", |
| "fileutils.cpp", |
| "iputils.cpp", |
| "modinit.cpp", |
| "processutils.cpp", |
| "randutils.cpp", |
| "ridgen.cpp", |
| "sockutils.cpp", |
| "strutils.cpp", |
| "mempool.cpp", |
| |
| "callback.h", |
| "callback1.h", |
| "classcallback.h", |
| "classcallback1.h", |
| "execmeta.h", |
| "fileutils.h", |
| "iputils.h", |
| "modinit.h", |
| "processutils.h", |
| "randutils.h", |
| "ridgen.h", |
| "sockutils.h", |
| "spconsts.h", |
| "spfuncs.h", |
| "sphash.h", |
| "sprcodes.h", |
| "sptest.h", |
| "sptypes.h", |
| "strutils.h", |
| "mempool.h", |
| ], |
| hdrs = [ |
| "basics.h", |
| ], |
| copts = [ |
| "-Ithird_party", |
| "-Iheron/common/src/cpp", |
| "-I.", |
| ], |
| deps = [ |
| "//config:config-cxx", |
| "//third_party/glog:glog-cxx", |
| "//third_party/gperftools:tcmalloc-cxx", |
| "//third_party/jansson:jansson-cxx", |
| "//third_party/kashmir:kashmir-cxx", |
| "//third_party/protobuf:protobuf-cxx", |
| ] + select({ |
| "//tools/platform:darwin": [], |
| "//conditions:default": ["//third_party/libunwind:libunwind-cxx"], |
| }), |
| linkstatic = 1, |
| ) |