| refactor: 迁移 feature_type.h 到 src/runtime/inc/common 并删除未使用枚举值
Co-authored-by: wangtao43<wangtao43@huawei.com>
# message auto-generated for no-merge-commit merge:
!2575 merge master into master
refactor: 迁移 feature_type.h 到 src/runtime/inc/common 并删除未使用枚举值
Created-by: wangtao43
Commit-by: wangtao43
Merged-by: cann-robot
Description: # Pull Request
## 描述
迁移 feature_type.h 到 src/runtime/inc/common 目录,并删除2个未使用的枚举值。
## 变更类型
- [x] ♻️ 重构(既不修复错误也不增加功能的代码变动)
## 变更内容
### 1. 删除未使用的枚举值
删除2个在代码库中没有任何实际使用的枚举值:
- RT_FEATURE_DFX_TS_STREAM_SNAPSHOT
- RT_FEATURE_TASK_TIMEOUT_CONFIG_WITH_AICPUSD
### 2. 文件迁移
将 feature_type.h 从 src/runtime/core/inc/common/ 迁移到 src/runtime/inc/common/,建立新的公共头文件目录结构。
### 3. 构建配置更新
更新8个 cmake 配置文件,新增 include 路径:
- src/runtime/cmake/runtime.cmake
- src/runtime/cmake/v200.cmake
- src/runtime/cmake/tiny.cmake
- src/runtime/cmake/platform.cmake
- src/runtime/cmake/cmodel.cmake
- tests/ut/runtime/runtime/CMakeLists.txt
- tests/ut/runtime/runtime/test/platform/910B/CMakeLists.txt
- tests/depends/runtime/CMakeLists.txt
采用新增路径策略,保留旧路径以兼容其他未迁移文件。
## 如何测试
1. 运行完整构建:bash build.sh
2. 验证 runtime_common 目标编译成功
3. 确认无编译错误和警告
## 核对清单
- [x] 我的代码遵循了项目的代码风格
- [x] 我已对代码进行了自测
- [x] 我已更新了相关的文档(构建配置文件)
- [x] 我在标题中使用了合适的类型标签(refactor:)
- [x] 我已经详细阅读了贡献指南(CONTRIBUTING.md),并遵守了其中的所有规定
## 测试结果
✅ 构建验证成功
- runtime_common 目标编译通过
- 所有依赖文件引用正常
- 无编译错误
See merge request: cann/runtime!2575 | 1 天前 |