Commit a3092ea
committed
build: modernize build, packaging, and metadata configuration across CMake and Bazel
Refactor project build configuration to improve portability, security defaults, and packaging behavior across platforms and build systems.
- CMake:
- Default BUILD_SHARED_LIBS to top-level project usage instead of always ON.
- Require the configured C++ standard (C++98) and keep extensions disabled.
- Enable hardening by default and migrate from global flag string mutation to add_compile_options/add_link_options.
- Add additional linker hardening checks (including -Wl,-z,separate-code) and apply safer non-Debug conditionals where appropriate.
- Add ENABLE_INSTALLATION and ENABLE_PACKAGING options, both defaulting to top-level usage.
- Gate install, pkg-config generation, and CPack setup behind ENABLE_INSTALLATION/ENABLE_PACKAGING.
- Add namespace alias target (PROJECT_NAME::AVO) and improve export/install package metadata.
- Add PACKAGE_INFO and SBOM export/install support for newer CMake versions.
- Use TYPE DOC for documentation/license installation and gate docs install on ENABLE_INSTALLATION.
- Bazel:
- Make shared library target publicly visible.
- Bump CPS metadata compatibility/version and add a release CPS descriptor with OS-specific library locations.
- Include both base and release CPS descriptors in packaged artifacts.
- Tighten Debian package architecture selection to supported CPUs with explicit no-match error.
- Restrict Debian package target compatibility to Linux.
- Improve source target options: platform-specific warning flags, Windows export define, and include path handling.
- Remove obsolete source file from Bazel target sources.
- Examples:
- Introduce BUILD_EXAMPLES option in CMake (default top-level).
- Add PIE capability check for example executables.
- Normalize and clean up example target definitions and properties.
- Add compile warning/security flags to Bazel example tests.
- CI and dependency automation:
- Remove brew upgrade step from CI setup jobs to reduce volatility.
- Remove Dependabot workflow config and retain Renovate licensing metadata.
- Metadata and cleanup:
- Add SPDX license companion file for renovate.json.
- Remove legacy REUSE dep5 metadata file.
- Remove obsolete src/Export.cc implementation.
Net effect:
- 14 files changed, 353 insertions, 1316 deletions.
- Consolidates build logic, improves hardening defaults, and makes install/packaging behavior friendlier for embedded/subproject consumption.1 parent 70e0e1e commit a3092ea
14 files changed
Lines changed: 305 additions & 1290 deletions
File tree
- .github
- workflows
- .reuse
- doc
- examples
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | 170 | | |
172 | 171 | | |
173 | 172 | | |
| |||
463 | 462 | | |
464 | 463 | | |
465 | 464 | | |
466 | | - | |
467 | 465 | | |
468 | 466 | | |
469 | 467 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
104 | | - | |
| 105 | + | |
105 | 106 | | |
106 | 107 | | |
107 | 108 | | |
| |||
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
117 | 170 | | |
118 | 171 | | |
119 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
120 | 176 | | |
121 | 177 | | |
122 | 178 | | |
| |||
197 | 253 | | |
198 | 254 | | |
199 | 255 | | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
205 | 263 | | |
206 | 264 | | |
207 | 265 | | |
| |||
215 | 273 | | |
216 | 274 | | |
217 | 275 | | |
| 276 | + | |
218 | 277 | | |
219 | 278 | | |
220 | 279 | | |
0 commit comments