Skip to content

Commit f0eb23d

Browse files
committed
iox-#1547 Simplify integration of iceoryx into external bazel projects
1 parent f88bc9c commit f0eb23d

File tree

2 files changed

+29
-7
lines changed

2 files changed

+29
-7
lines changed

WORKSPACE.bazel

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@
1717
workspace(name = "org_eclipse_iceoryx")
1818

1919
# Load dependency googletest
20-
load("//bazel:load_repositories.bzl", "load_repositories")
20+
load("//bazel:deps.bzl", "iceoryx_deps")
2121

22-
load_repositories()
23-
24-
# Load dependency cpptoml
25-
load("//bazel:setup_repositories.bzl", "setup_repositories")
26-
27-
setup_repositories()
22+
iceoryx_deps()

bazel/deps.bzl

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
"""
2+
Copyright (c) 2024 by ekxide IO GmbH. All rights reserved.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
16+
SPDX-License-Identifier: Apache-2.0
17+
"""
18+
19+
load("//bazel:load_repositories.bzl", "load_repositories")
20+
load("//bazel:setup_repositories.bzl", "setup_repositories")
21+
22+
def iceoryx_deps():
23+
"""
24+
Loads iceoryx dependencies into workspace
25+
"""
26+
load_repositories()
27+
setup_repositories()

0 commit comments

Comments
 (0)