Page MenuHome

Cleanup: Cmake: remove unnecessary definitions for internationalization
ClosedPublic

Authored by Aaron Carlisle (Blendify) on Jan 26 2022, 9:13 PM.

Details

Summary

Previously, macros were ifdefed using the cmake option WITH_INTERNATIONAL
However, the is unnecessary as withen the functions themselves have checks for building without internationalization.
This also means that many add_definitions(-DWITH_INTERNATIONAL) are also unnecessary.

Diff Detail

Repository
rB Blender
Branch
cmake-lib-blt (branched from master)
Build Status
Buildable 20230
Build 20230: arc lint + arc unit

Event Timeline

Aaron Carlisle (Blendify) requested review of this revision.Jan 26 2022, 9:13 PM
Aaron Carlisle (Blendify) created this revision.

Think the idea when this was added was that you would not even have to call those functions at all, even if they were defined as a simple return...

But agree this is just bloating the CMake files for nothing really.

This revision is now accepted and ready to land.Jan 27 2022, 9:16 AM

blender\source\blender\windowmanager\CMakeLists.txt can be done as well, it only has one call that has the guard (BLT_lang_free) that has a guard of its own.

source/blender/editors/space_view3d/CMakeLists.txt uses it to determine a buffer size, it's a ~60 byte difference on the stack.. just always use the larger buffer...

source/creator/CMakeLists.txt can be cleaned, it's not using it at all

there may be a few others but i ran out of time tonight, will pick this up again this weekend.

Ray Molenkamp (LazyDodo) requested changes to this revision.Jan 28 2022, 6:23 AM
This revision now requires changes to proceed.Jan 28 2022, 6:23 AM
  • Merge branch 'master' into cmake-lib-blt
  • Cleanup: Remove more instances of DWITH_INTERNATIONAL

Look at all that glorious red, well done @Aaron Carlisle (Blendify)! much appreciated !

This revision is now accepted and ready to land.Jan 29 2022, 9:29 PM