You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository contains a [Starlark](https://github.com/bazelbuild/starlark) implementation of [Doxygen](https://www.doxygen.nl/) rules in [Bazel](https://bazel.build/).
@@ -12,27 +12,25 @@ Add the following to your _MODULE.bazel_:
If you don't want to depend on the [Bazel package registry](https://bazel.build/external/bazelbuild/rules_pkg) or you want to use a not-yet-published version of this module, you can use an archive override by adding the following lines below the `bazel_dep` rule in your _MODULE.bazel_ file:
18
+
If you don't want to depend on the [Bazel package registry](https://bazel.build/external/bazelbuild/rules_pkg) or need a not-yet-published version of this module, you can use a `git_override`by adding the following lines below `bazel_dep` in your _MODULE.bazel_ file:
When you do so, you must also provide the SHA256 of the given doxygen installation.
64
+
When you do so, you must also provide the SHA256 of the given doxygen archive.
67
65
If you don't know the SHA256 value, just leave it empty.
68
66
The build will fail with an error message containing the correct SHA256.
69
67
70
68
```bash
71
69
Download from https://github.com/doxygen/doxygen/releases/download/Release_1_10_0/doxygen-1.10.0.windows.x64.bin.zip failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException Checksum was 2135c1d5bdd6e067b3d0c40a4daac5d63d0fee1b3f4d6ef1e4f092db0d632d5b but wanted 0000000000000000000000000000000000000000000000000000000000000000
72
70
```
73
71
72
+
> [!Tip]
73
+
> Not indicating the platform will make the configuration apply to the platform it is running on.
74
+
> The build will fail when the download does not match the SHA256 checksum, i.e. when the platform changes.
75
+
> Unless you are using a system-wide doxygen installation, you should always specify the platform.
76
+
77
+
#### System-wide doxygen installation
78
+
74
79
If you set the version to `0.0.0`, the doxygen executable will be assumed to be available from the PATH.
75
80
No download will be performed and bazel will use the installed version of doxygen.
76
81
77
82
> [!Warning]
78
83
> Setting the version to `0.0.0` this will break the hermeticity of your build, as it will now depend on the environment.
79
84
80
-
> [!Tip]
81
-
> Not indicating the platform will make the configuration apply to the platform it is running on.
82
-
> The build will fail when the downloaded file does not match the SHA256 checksum, i.e. when the platform changes.
83
-
> Unless you are using a system-wide doxygen installation, you should always specify the platform.
85
+
#### Using a local doxygen executable
86
+
87
+
You can also provide a label pointing to the `doxygen` executable you want to use by using the `executable` parameter in the extension configuration.
88
+
No download will be performed, and the file indicated by the label will be used as the doxygen executable.
89
+
90
+
> [!Note]
91
+
> `version` and `executable` are mutually exclusive.
92
+
> You must provide exactly one of them.
93
+
94
+
#### Example
84
95
85
96
Different strategies can be combined in the same file, one for each platform, as shown below:
0 commit comments