Skip to content

Commit

Permalink
C: Fix ios.Storyboards to allow the storyboard files to be optional
Browse files Browse the repository at this point in the history
  • Loading branch information
jjensen committed Feb 27, 2017
1 parent 1f66e07 commit 04de325
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions bin/modules/c/toolchain/clang/ios-shared.jam
Original file line number Diff line number Diff line change
Expand Up @@ -1342,8 +1342,12 @@ rule ios.Storyboards TARGET : LANGUAGE_DIRECTORY : STORYBOARD_FILES {
SEARCH on $(storyboards) = $(LANGUAGE_DIRECTORY) ;
ios.Storyboard $(TARGET) : $(storyboards) ;

ios.BundleInfoString : UILaunchStoryboardName : $(STORYBOARD_FILES[1]) ;
ios.BundleInfoString : UIMainStoryboardFile : $(STORYBOARD_FILES[2]) ;
if $(STORYBOARD_FILES[1]) {
ios.BundleInfoString : UILaunchStoryboardName : $(STORYBOARD_FILES[1]) ;
}
if $(STORYBOARD_FILES[2]) {
ios.BundleInfoString : UIMainStoryboardFile : $(STORYBOARD_FILES[2]) ;
}
}


Expand Down
2 changes: 1 addition & 1 deletion docs/module_ios.dox
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ Sets the iOS \c SDK_VERSION for the toolchain. Call this before any other <tt>io


<hr>
\section rule_ios_Storyboards rule ios.Storyboards TARGET : LANGUAGE_DIRECTORY : STORYBOARD_FILES
\section rule_ios_Storyboards rule ios.Storyboards TARGET : LANGUAGE_DIRECTORY [ : STORYBOARD_FILES ]
\addindex rule_ios_AssetCatalog

Compiles a directory of storyboards.
Expand Down

0 comments on commit 04de325

Please sign in to comment.