Commit 560b6bf
Build on Mac OS X
Changed files (4)
modifiedinstall.pymodifiedlibbirdfont/GlyphCanvas.valamodifiedscripts/build.pymodifiedscripts/mac_build.py
Diff
@@ -58,7 +58,9 @@ for file in os.listdir('./icons'): install ('resources/linux/birdfont.desktop', '/share/applications') install ('resources/linux/birdfont.png', '/share/icons/hicolor/48x48/apps') -install ('build/bin/birdfont', '/bin')+if os.path.isfile ('build/bin/birdfont'):+ install ('build/bin/birdfont', '/bin')+ install ('build/bin/birdfont-export', '/bin') #library@@ -28,6 +28,10 @@ public class GlyphCanvas : GLib.Object { public GlyphCanvas () { } ++ public static WidgetAllocation get_allocation () {+ return allocation;+ } public void set_allocation (WidgetAllocation w) { allocation = w.copy (); @@ -159,7 +159,7 @@ def birdfont_gtk(prefix, cc, cflags, ldflags, valac, valaflags, library): $(pkg-config --cflags gdk-pixbuf-2.0) \ $(pkg-config --cflags webkit-1.0) \ -I ./build/libbirdfont/""")- run("mv ./*.o build/birdfont/")+ run("mv ./*.o build/birdfont/") run(cc + " " + ldflags + """ \ build/birdfont/*.o \@@ -27,6 +27,7 @@ parser.add_option("-c", "--cc", dest="cc", help="select the C compiler", metavar parser.add_option("-f", "--cflags", dest="cflags", help="set compiler flags", metavar="CFLAGS") parser.add_option("-l", "--ldflags", dest="ldflags", help="set linker flags", metavar="LDFLAGS") parser.add_option("-v", "--valac", dest="valac", help="select vala compiler", metavar="VALAC")+parser.add_option("-n", "--nogtk", dest="nogtk", help="do not compile the gtk application", metavar="NOGTK", default=False, action="store_false") (options, args) = parser.parse_args() @@ -56,6 +57,8 @@ configfile.write_config (prefix) compile_translations() build.libbirdfont(prefix, cc, library_cflags, library_ldflags, valac, valaflags, library) build.birdfont_export(prefix, cc, cflags, ldflags, valac, valaflags, library)-build.birdfont_gtk(prefix, cc, cflags, ldflags, valac, valaflags, library)++if not options.nogtk:+ build.birdfont_gtk(prefix, cc, cflags, ldflags, valac, valaflags, library) print ("Done")