Permalink
Browse files

Make icon module compilation more portable

  • Loading branch information...
1 parent 380d7b2 commit 2a032c05b7d74ddcae215ed78cada2ea616dccef @nico nico committed with Feb 6, 2009
Showing with 7 additions and 4 deletions.
  1. +2 −4 src/MacVim/icons/Makefile
  2. +5 −0 src/MacVim/icons/setup.py
@@ -7,10 +7,7 @@ $(OUTDIR)/MacVim-generic.icns: make_icons.py vim-noshadow-512.png loadfont.so En
/usr/bin/python make_icons.py $(OUTDIR)
loadfont.so: loadfont.c
- gcc -o $@ $^ -bundle \
- -framework Python \
- -framework CoreFoundation \
- -framework ApplicationServices
+ python setup.py install --install-lib .
Envy\ Code\ R\ Bold.ttf: EnvyCodeR.zip
unzip -jo EnvyCodeR.zip
@@ -23,3 +20,4 @@ clean:
$(MAKE) -C makeicns clean
rm -f $(OUTDIR)/MacVim-*.icns loadfont.so *.pyc \
EnvyCodeR.zip *.ttf *.reg *.txt
+ rm -rf *.egginfo build # Created by setup.py
@@ -0,0 +1,5 @@
+from distutils.core import setup, Extension
+
+setup(name="loadfont", version="1.0",
+ ext_modules = [Extension("loadfont", ["loadfont.c"])])
+

0 comments on commit 2a032c0

Please sign in to comment.