feat(graphic): update header file inclusions for improved structure#420
Conversation
📝 WalkthroughWalkthroughThis change updates the PluginGraphic build script to remove a top-level exclude and expand header file globs, adding component, GPUComponentManagement, preparation, presentation, and shader utility header patterns. No build logic or public APIs were modified. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (2)
src/plugin/graphic/xmake.lua (2)
3-5: Remove duplicate include statement.The file
../object/xmake.luais included twice (lines 3 and 5). Remove one of these duplicate includes to improve maintainability.♻️ Proposed fix
includes("../../utils/log/xmake.lua") includes("../object/xmake.lua") includes("../rendering-pipeline/xmake.lua") -includes("../object/xmake.lua") includes("../window/xmake.lua")
30-33: Remove duplicate dependency declaration.The dependency
PluginObjectis declared twice (lines 30 and 33). Remove one of these duplicate declarations.♻️ Proposed fix
add_deps("EngineSquaredCore") add_deps("PluginObject") add_deps("PluginRenderingPipeline") add_deps("PluginWindow") -add_deps("PluginObject") add_deps("UtilsLog")
📜 Review details
Configuration used: defaults
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/plugin/graphic/xmake.lua
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
- GitHub Check: Run tests (ubuntu-latest)
- GitHub Check: Run tests (windows-latest)
- GitHub Check: Run tests (macos-latest)
- GitHub Check: Build and verify binaries (ubuntu-latest)
- GitHub Check: Build and verify binaries (macos-latest)
- GitHub Check: Build and verify binaries (windows-latest)
🔇 Additional comments (1)
src/plugin/graphic/xmake.lua (1)
38-50: All new header directories verified and exist with appropriate files.The directory additions at lines 38-50 reference valid directories:
src/component/— 4 header filessrc/exception/— 22 header filessrc/system/GPUComponentManagement/— 8 header filessrc/system/preparation/— 4 header filessrc/system/presentation/— 1 header filesrc/utils/shader/— 9 header filesThe headerfile patterns are syntactically correct and follow the established convention. The changes properly expose these headers as part of the PluginGraphic target.
bf45035 to
59c7137
Compare
|



I tried using xrepo, but these headers are missing from the xmake.lua file in the graphic plugin.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.