dtkcore/include
yeshanshan 2cbf1b55d0 feat: add deprecation ignore support for DTK
Added D_IGNORE_DEPRECATIONS macro to suppress deprecation warnings in
DTK core
1. Define D_IGNORE_DEPRECATIONS for static library builds
2. Define D_IGNORE_DEPRECATIONS when building DTK core library
3. Added conditional compilation to skip deprecation attributes when
D_IGNORE_DEPRECATIONS is defined
4. Maintains backward compatibility while allowing projects to ignore
deprecated APIs

This change helps projects transition away from deprecated APIs without
immediate warning noise while maintaining the deprecation markers for
new development

Influence:
1. Test building with D_IGNORE_DEPRECATIONS defined to verify
deprecation warnings are suppressed
2. Test building without D_IGNORE_DEPRECATIONS to ensure deprecation
warnings still appear
3. Verify both static and dynamic library builds work correctly with
this change

feat: 添加DTK废弃接口忽略支持

新增D_IGNORE_DEPRECATIONS宏用于抑制DTK核心中的废弃警告
1. 为静态库构建定义D_IGNORE_DEPRECATIONS
2. 构建DTK核心库时定义D_IGNORE_DEPRECATIONS
3. 添加条件编译,当D_IGNORE_DEPRECATIONS定义时跳过废弃属性
4. 保持向后兼容性同时允许项目忽略废弃API

此变更帮助项目在不立即处理废弃警告的情况下逐步迁移废弃API,同时保留废弃
标记供新开发使用

Influence:
1. 测试定义D_IGNORE_DEPRECATIONS时的构建,验证废弃警告被抑制
2. 测试未定义D_IGNORE_DEPRECATIONS时的构建,确保废弃警告仍然显示
3. 验证静态库和动态库构建在此变更后都能正常工作
2025-08-14 11:36:15 +00:00
..
DtkCore refactor: log files move to dtklog 2024-07-05 14:13:31 +08:00
base refactor!: deprecate some interfaces in dtk6 2023-07-05 10:19:56 +08:00
dci feat: support Qt6 2023-02-14 13:22:03 +08:00
filesystem feat(dstandardpaths): add XDG_STATE_HOME 2023-11-03 13:19:18 +08:00
global feat: add deprecation ignore support for DTK 2025-08-14 11:36:15 +00:00
log refactor: log files move to dtklog 2024-07-05 14:13:31 +08:00
settings feat(tocmake): tocmake 2022-08-16 07:50:54 +00:00
util fix: resolve compilation failure on Qt 6.9 2025-04-12 17:55:30 +08:00