On Dec 22, 2008, at 3:51 PM, björn wrote:
> 2008/12/22 Keith Hubbard <[email protected]>:
>> The first time I tried the build succeeded but no icons were made.
>> It turns out the build was using Python from MacPorts which did not
>> have PyObjC installed.  I don't know if it is better to hard-code
>> the system Python into the script or just document that MacPorts can
>> cause problems.  I did not try installing the MacPorts version of
>> PyObjC -- it may work fine too.
>
> When you say "no icons were made" you mean that it just created the
> MacVim-generic.icns with lots of symlinks to it, or did something else
> entirely happen?

It made the MacVim-generic.icns icon with lots of symlinks.  I
didn't realize the generic icon was made and not just checked in.

...
>> Once I figured out what had happened, I tried again without MacPorts
>> in my path.  The icons were not rebuilt automatically, even after
>> doing "make distclean", "xcodebuild clean", or blowing away the
>> "MacVim/build" directory.  Removing the generated icon files out of
>> the source directory worked and so did running the script by hand.
>
> I'm aware of this shortcoming -- I don't know how to automatically
> remove the icons on "xcodebuild clean".  Does anybody else know?

I've never had any luck getting Xcode to run script phases when
cleaning.  The only option I know of is to put all the generated
files into Xcode's build directories -- those do get wiped.

I've attached a patch which builds the icons directly into the
Resources directory instead of copying them in if you like the idea.

Keith


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_mac" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Attachment: 0001-Generate-icons-in-the-Xcode-build-directory.patch
Description: Binary data



Reply via email to