diff options
Diffstat (limited to 'src/main/cpp/BUILD')
-rw-r--r-- | src/main/cpp/BUILD | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/src/main/cpp/BUILD b/src/main/cpp/BUILD new file mode 100644 index 0000000000..2681792924 --- /dev/null +++ b/src/main/cpp/BUILD @@ -0,0 +1,71 @@ +cc_library( + name = "util", + srcs = [ + "util/numbers.cc", + "util/port.cc", + "util/strings.cc", + ], + hdrs = [ + "util/numbers.h", + "util/port.h", + "util/strings.h", + ], + copts = [ + "-DBLAZE_OPENSOURCE=1", + ], + includes = ["."], +) + +cc_library( + name = "md5", + srcs = ["util/md5.cc"], + hdrs = ["util/md5.h"], + includes = ["."], + visibility = ["//visibility:public"], +) + +filegroup( + name = "blaze_util_os", + srcs = select({ + "//src:darwin": ["blaze_util_darwin.cc"], + "//conditions:default": ["blaze_util_linux.cc"], + }), +) + +cc_binary( + name = "client", + srcs = [ + "blaze.cc", + "blaze_startup_options.cc", + "blaze_startup_options_common.cc", + "blaze_util.cc", + "option_processor.cc", + "util/file.cc", + ":blaze_util_os", + ], + copts = [ + "-DBLAZE_JAVA_CPU=\\\"k8\\\"", + "-DBLAZE_OPENSOURCE=1", + ], + includes = ["."], + linkopts = select({ + "//src:darwin": [ + ], + "//conditions:default": [ + "-larchive", + "-lrt", + ], + }), + visibility = ["//src:__pkg__"], + deps = select({ + "//src:darwin": [ + ":md5", + ":util", + "//fromhost:libarchive", + ], + "//conditions:default": [ + ":md5", + ":util", + ], + }), +) |