OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

iOS CMake project generation improvements (bitcode option)


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Submission
View previous topic :: View next topic  
Author Message
a.terenzi (Alessandro Terenzi)
Appreciator


Joined: 03 Sep 2009
Posts: 250

PostPosted: Mon Jan 22, 2018 11:58 am    Post subject:
iOS CMake project generation improvements (bitcode option)
Reply with quote

Hi,
when building for iOS, Xcode allows developers to specify to enable or disable the 'bitcode' compilation option. There's not a preferred way to go and the choice is really up to the developer but considering that:

    1. Currently the generated project defaults the option to YES
    2. There are almost 90 projects targets that should be modified if one wants to disable the bitcode option (which considerably reduces the footprint of the app)
    3. Even though one can select all the 90+ targets and set the option to NO for all of them, the updates could take a few seconds and could be error prone because one could miss to select some targets


I propose to add a CMake setting that is displayed only when building for iOS. By setting this option "before" the project generation would speed up things for developers and would avoid errors at compiling time.

My proposal is attached to this message and involves the following files:

    CMakeLists.txt
    CMakeModules/OsgMacroUtils.cmake
    src/OpenThreads/pthreads/CMakeLists.txt


Cheers,
Alessandro
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 11622

PostPosted: Fri Mar 09, 2018 10:23 am    Post subject:
iOS CMake project generation improvements (bitcode option)
Reply with quote

Hi Alessandro,

Changes look good, now merged and submitted to OSG master.

Thanks,
Robert

On 22 January 2018 at 11:58, Alessandro Terenzi <> wrote:
Quote:
Hi,
when building for iOS, Xcode allows developers to specify to enable or disable the 'bitcode' compilation option. There's not a preferred way to go and the choice is really up to the developer but considering that:

1. Currently the generated project defaults the option to YES
2. There are almost 90 projects targets that should be modified if one wants to disable the bitcode option (which considerably reduces the footprint of the app)
3. Even though one can select all the 90+ targets and set the option to NO for all of them, the updates could take a few seconds and could be error prone because one could miss to select some targets

I propose to add a CMake setting that is displayed only when building for iOS. By setting this option "before" the project generation would speed up things for developers and would avoid errors at compiling time.

My proposal is attached to this message and involves the following files:

CMakeLists.txt
CMakeModules/OsgMacroUtils.cmake
src/OpenThreads/pthreads/CMakeLists.txt

Cheers,
Alessandro

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=72822#72822




Attachments:
http://forum.openscenegraph.org//files/bitcode_changes_216.zip





------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Submission All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Self provide osg related cmake find_p... Ralf Habacker General 0 Thu Apr 26, 2018 7:11 am View latest post
No new posts Messages when trying to cmake of OSX ... minghia Build system [build] 0 Sat Apr 21, 2018 1:49 pm View latest post
No new posts osgshadow.cpp option --sv (ShadowVolu... hartwigw General 4 Mon Apr 02, 2018 1:45 pm View latest post
No new posts osgWidget Visual Studio project is in... Jiri_Patrak Build system [build] 1 Sat Mar 31, 2018 4:26 pm View latest post
No new posts CMake fails to find latest FBX SDK fo... a.terenzi Build system [build] 0 Fri Jan 19, 2018 9:45 am View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP