Commit 31b4a6d
committed
Reduce script coupling and prune one-time migration tooling
Follow-up cleanup to the symbol-file dedup pipeline, addressing coupling
and script sprawl without changing any generated output.
- Unify the snake_case -> UpperCamelCase convention into a single
modules_yaml.to_upper_camel(). It was implemented three times
(build_configs, generate_tizen, rename_unnamed) with two different
algorithms (slice-upper vs str.title()) that silently diverge on name
parts containing digits or capitals, so the class name and the
anonymous-type prefix could disagree.
- Make build_configs' include groups data-driven: any group present in
modules.yaml is now emitted, instead of being silently dropped unless
its key was hardcoded in the renderer.
- generate_bindings.sh wipes build/configs/<version> before rendering, so
a removed or renamed module leaves no stale ffigen_*.yaml or
.symbols/*.yaml behind.
- Remove dead code: the unused to_camel_case(), and the unreachable
entrypoint-insertion block in update_modules (an early return made it
and its `inserted` bookkeeping unreachable).
- Delete migration-only scripts now that all six modules.yaml are
committed: import_configs.py (bootstrap done), verify_configs.py
(round-trip proof done), scan_rootstrap.py (its rootstrap_manifest.yaml
baseline was never committed or used).
Verified: Tizen 6.0 regeneration is byte-identical to the pre-refactor
output (118 files), dart analyze is clean, and check_consistency passes
for all six versions.1 parent 2cd8daa commit 31b4a6d
10 files changed
Lines changed: 38 additions & 798 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | 61 | | |
74 | 62 | | |
75 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 25 | | |
| 26 | + | |
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
| |||
155 | 153 | | |
156 | 154 | | |
157 | 155 | | |
158 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
163 | 167 | | |
164 | 168 | | |
165 | 169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
| 26 | + | |
24 | 27 | | |
25 | 28 | | |
26 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 6 | + | |
13 | 7 | | |
14 | 8 | | |
15 | 9 | | |
| |||
101 | 95 | | |
102 | 96 | | |
103 | 97 | | |
104 | | - | |
| 98 | + | |
105 | 99 | | |
106 | 100 | | |
107 | 101 | | |
| |||
0 commit comments