-
Notifications
You must be signed in to change notification settings - Fork 443
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MongoDB Parsing 1/3] Add bazel repo for the Mongo C Driver (#1701)
Summary: This PR adds the external Bazel repo for the mongo-c-driver. This driver is used to help parse BSON documents from a MongoDB frame to type JSON strings. Related issues: #640 Type of change: /kind feature Test Plan: `bazel build @com_github_mongodb_mongo_c_driver//...` --------- Signed-off-by: Kartik Pattaswamy <kpattaswamy@pixielabs.ai>
- Loading branch information
1 parent
d81a9fe
commit 0056537
Showing
3 changed files
with
62 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Copyright 2018- The Pixie Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake") | ||
|
||
licenses(["notice"]) | ||
|
||
exports_files(["LICENSE"]) | ||
|
||
filegroup( | ||
name = "all", | ||
srcs = glob(["**"]), | ||
) | ||
|
||
cmake( | ||
name = "libbson", | ||
build_args = [ | ||
"--", # <- Pass remaining options to the native tool. | ||
"-j`nproc`", | ||
"-l`nproc`", | ||
], | ||
cache_entries = { | ||
"BUILD_TESTING": "OFF", | ||
"BUILD_VERSION": "1.24.0", | ||
"ENABLE_EXAMPLES": "OFF", | ||
"ENABLE_MONGOC": "OFF", | ||
"ENABLE_TESTS": "OFF", | ||
"ENABLE_UNINSTALL": "OFF", | ||
}, | ||
lib_source = ":all", | ||
out_static_libs = [ | ||
"libbson-static-1.0.a", | ||
], | ||
targets = [ | ||
"bson_static", | ||
"bson_shared", | ||
], | ||
visibility = ["//visibility:public"], | ||
working_directory = "", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters