Commit 2c008fd
detray: generate propagator codegen headers at build time
Converge detray onto ACTS's build-time codegen model: the four propagator
codegen headers are now generated into the build tree by the shared ACTS
codegen package via acts_code_generation(), instead of being committed.
- Make acts_code_generation() INTERFACE-aware: header-only targets (detray::
core) get the generated include dir on their INTERFACE; compiled targets keep
PRIVATE as before. Add an optional RESULT_INCLUDE_DIR out-param used to
install the generated headers.
- Wire generation in Detray/core/CMakeLists.txt by reusing the in-tree ACTS
infra via relative path (../../cmake, ../../codegen) — no published package.
- Change the four `#include "./codegen/..."` to full-path includes so they
resolve against the build-tree include dir, and delete the committed headers.
Verified: configure succeeds; all four detray headers (and the three ACTS
headers) generate byte-for-byte identically to the previous output; a consumer
TU (ActsExamplesDetray DetrayPropagator.hpp) compiles against them; and the
codegen step is correctly ordered before consumers compile.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent f27a897 commit 2c008fd
9 files changed
Lines changed: 70 additions & 2548 deletions
File tree
- Detray/core
- include/detray/propagator
- actors
- codegen
- codegen
- cmake
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
80 | 126 | | |
81 | 127 | | |
82 | 128 | | |
| |||
Lines changed: 0 additions & 349 deletions
This file was deleted.
Lines changed: 0 additions & 950 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments