Skip to content

Commit b80ca39

Browse files
authored
Restructure project as a deployable rule set [BUILD-394] (#13)
Makes it so that these bazel modules can be used by other projects as an external dependency (via https_archive, git_repository, etc..). Previously, these modules were used by adding this repo as a submodule.
1 parent 2087572 commit b80ca39

23 files changed

+223
-70
lines changed

BUILD.bazel

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# bazel
1+
# rules_swiftnav
22

3-
Swift's Bazel rules.
3+
Swift's bazel rules.
44

55
Bazel support at Swift is currently experimental. The contents of this repository are subject
66
to change frequently.

WORKSPACE

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Copyright (C) 2022 Swift Navigation Inc.
2+
# Contact: Swift Navigation <[email protected]>
3+
#
4+
# This source is subject to the license found in the file 'LICENSE' which must
5+
# be be distributed together with this source. All other rights reserved.
6+
#
7+
# THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
8+
# EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
9+
# WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
10+
11+
workspace(name = "rules_swiftnav")

cc/BUILD.bazel

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright (C) 2022 Swift Navigation Inc.
2+
# Contact: Swift Navigation <[email protected]>
3+
#
4+
# This source is subject to the license found in the file 'LICENSE' which must
5+
# be be distributed together with this source. All other rights reserved.
6+
#
7+
# THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
8+
# EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
9+
# WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
10+
11+
exports_files(
12+
glob(["*.bzl"]),
13+
visibility = ["//visibility:public"],
14+
)

swift_cc_defs.bzl renamed to cc/defs.bzl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# Copyright (C) 2022 Swift Navigation Inc.
2+
# Contact: Swift Navigation <[email protected]>
3+
#
4+
# This source is subject to the license found in the file 'LICENSE' which must
5+
# be be distributed together with this source. All other rights reserved.
6+
#
7+
# THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
8+
# EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
9+
# WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
10+
11+
"""Swift wrappers for native cc rules."""
12+
113
# Name for a unit test
214
UNIT = "unit"
315

cereal.BUILD

Lines changed: 0 additions & 9 deletions
This file was deleted.

eigen.BUILD

Lines changed: 0 additions & 12 deletions
This file was deleted.

fast_csv.BUILD

Lines changed: 0 additions & 9 deletions
This file was deleted.

gzip.BUILD

Lines changed: 0 additions & 9 deletions
This file was deleted.

qac_compile_commands.bzl

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)