Skip to content

Commit

Permalink
Add Embree bazlization attempts
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 426bfbe0cd9924ff1f2394f0d67f98c0a42144e7
  • Loading branch information
Vertexwahn committed Oct 8, 2023
1 parent 8b6a341 commit affcc81
Show file tree
Hide file tree
Showing 10,086 changed files with 2,468,205 additions and 2 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 1 addition & 0 deletions .bazelignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
third_party
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ Add to your `MODULE.bazel` file:
bazel_dep(name = "embree", version = "4.3.0")
```

The underlying source code that makes this work is not part of this repository, but part of
the [bazelbuild/bazel-central-registry](https://github.com/bazelbuild/bazel-central-registry/tree/main/modules/embree/4.3.0).

## Using a WORKSPACE file

These Bazel rules enable you to use Intel Embree within your Bazel project using a `WORKSPACE`` file.
These Bazel rules enable you to use Intel Embree within your Bazel project using a `WORKSPACE` file.

To use these rules, add the following to your `WORKSPACE.bazel` file:

Expand Down Expand Up @@ -54,9 +57,20 @@ cd test
bazel build --config=gcc11 //... # See test/.bazelrc for other supported configs
```

## Bazelization of Embree

If you are interested in how to bazelize the [Embree repository](https://github.com/embree/embree/) itself you can find all my attempts in the `third_party` folder.
I have bazelized the Embree repository at different states:

- Embree 3.12.1
- Embree 3.13.0
- Embree 3.13.4
- Embree 3.13.5
- Embree 4.3.0

## Further references

I have written a two blog posts about bazelizing Embree:
I have written two blog posts about bazelizing Embree:

- [Bazel: Bazelizing Embree 3.13.0](https://vertexwahn.de/2021/07/30/bazelizingembre3.13.0/)
- [Bazel: Bazelizing Embree 3.12.1](https://vertexwahn.de/2021/01/12/bazelizingembree3.12.1/)
Expand Down
15 changes: 15 additions & 0 deletions third_party/embree-3.12.1/.bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright (c) 2021 Julian Amann
#
# 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.

build --symlink_prefix=/ # Suppress symlink creation (to avoid untracked files issues with git)
7 changes: 7 additions & 0 deletions third_party/embree-3.12.1/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
540 changes: 540 additions & 0 deletions third_party/embree-3.12.1/.gitlab-ci.yml

Large diffs are not rendered by default.

Loading

0 comments on commit affcc81

Please sign in to comment.