I've updated my github with some more premake changes:
* Xcode build now includes resources including Info.plist, Icon.icns
and the English.lproj files
* The --to=<directory> is used to tell premake where to generate
build files to, this is what premake does and it seemed more flexible
than hard coding
* Updated generate_all.sh to use --to, it now generates to Linux, VC9
and Xcode directories
* Regenerated all builds
The Xcode generated app now has the correct icon. There were a couple
of bugs in Premake4 with adding resources to Xcode. For one it doesn't
know what a .icns file is and tries to show it as text in Xcode, it
seemed to use the icon correctly in the built executable though. The
English.lproj directory had to be in the same directory as the
premake4.lua file. I think this is because it treats that path as
relative to something, I wasn't sure what was going wrong there.
I'll contact the author of Premake about the bugs I found sometime.
On Apr 22, 8:25 am, Mikko Mononen <
memono...@gmail.com> wrote:
> I prefer wildcards. I should not have those extra file laying in there
> in the first place.
>
> I think the .nib file is something like the resources files on
> windows. Not sure which ones xcode pics automatically. Another xcode
> specific is the plist file too.
>
> --mikko
>
> On Wed, Apr 21, 2010 at 11:16 PM, Cameron Hart <
cameron.h...@gmail.com> wrote:
> > It should be easy enough to get all the warnings right.
>
> > Regarding temp files in the source tree, at the moment I'm using wildcards
> > to add files. This means of course it will pick up anything else in the
> > directories. It may be better to list the files explicitly to avoid
> > unintended files being added. That would mean of course you'd have to
> > remember to update the file list. What is your preference?
>
> > The icons don't get added automatically, but I think it will be possible to
> > add them. I'll look into it. What does the .nib file do?
>
> > On 22 April 2010 01:46, Mikko Mononen <
memono...@gmail.com> wrote:
>
> >> Great!
>
> >> I was able to sort out the binaries issue with the premake author too.
> >> I have following extra warnings enabled for xcode, so that I can catch
> >> some general gcc, and vc warnings while adding features:
>
> >> OTHER_CPLUSPLUSFLAGS = $(OTHER_CFLAGS) -Wreorder -Wsign-compare -Wall
>
> >> Also, I have warnings level set to max in VC.
>
> >> I think it is time for me to remove some proto and test .cpp files
> >> from the folders and star trying to use the new system.
>
> >> One more question, does that script automatically also add the icon
> >> and .nib files for xcode?
>
> >> --mikko
>