Page MenuHome

Xcode: support cmake options for grouping in folders
ClosedPublic

Authored by Germano Cavalcante (mano-wii) on Aug 4 2021, 8:45 PM.

Details

Summary

I'm not familiar with Xcode yet, but I could see at first glance that this IDE can also benefit from the options:

  • WINDOWS_USE_VISUAL_STUDIO_SOURCE_FOLDERS
  • WINDOWS_USE_VISUAL_STUDIO_PROJECT_FOLDERS

This patch proposes the implementation of these options and also renames them as they are no longer limited to just Windows and Visual Studio.

beforeafter

Diff Detail

Repository
rB Blender
Branch
xcode-groups (branched from master)
Build Status
Buildable 16230
Build 16230: arc lint + arc unit

Event Timeline

Germano Cavalcante (mano-wii) requested review of this revision.Aug 4 2021, 8:45 PM
Germano Cavalcante (mano-wii) created this revision.
Brecht Van Lommel (brecht) requested changes to this revision.Aug 4 2021, 8:57 PM

Adding Windows platform since this changes the names of the Windows options.

CMakeLists.txt
629

WINDOWS -> IDE

This revision now requires changes to proceed.Aug 4 2021, 8:59 PM

You missed one more use inside intern\cycles\cmake\macros.cmake

CMakeLists.txt
629

mark_as_advanced(IDE_GROUP_PROJECT_FOLDERS ) ?

632

This was being controlled from platform_win32.cmake this can be removed there

Ray Molenkamp (LazyDodo) requested changes to this revision.Aug 4 2021, 9:00 PM
Germano Cavalcante (mano-wii) marked 3 inline comments as done.
  • Remove control in platform_win32.cmake
  • WINDOWS -> IDE
  • IDE_GROUP_SOURCE_FOLDERS -> IDE_GROUP_SOURCES_IN_FOLDERS
  • IDE_GROUP_PROJECT_FOLDERS -> IDE_GROUP_PROJECTS_IN_FOLDERS


Does this affect only one directory level ?
See intern (nice folder) > bf_intern_* (we're back to targets)

Ignore my last comment.
This looks fine to me.


@Ankit Meel (ankitm), thanks for checking!
I believe the patch is ready and fine.
I'm just not sure if the IDE name for cmake's new Group Entry is a good choice. (GENERATOR would be my second choice).
Anyway, in case nobody finds a problem, I intend to commit the way it is ;)

Ray Molenkamp (LazyDodo) requested changes to this revision.Aug 5 2021, 5:41 PM

There's still one use of of the old variable name left in intern\cycles\cmake\macros.cmake

This revision now requires changes to proceed.Aug 5 2021, 5:41 PM
Ankit Meel (ankitm) added 1 blocking reviewer(s): Ray Molenkamp (LazyDodo).

Short IDE is sweet.

This revision now requires review to proceed.Aug 5 2021, 5:43 PM
This revision is now accepted and ready to land.Aug 5 2021, 7:57 PM