The Birdfont Source Code


All Repositories / birdfont.git / commit – RSS feed

Remove old mac build script

These changes was commited to the Birdfont repository Sun, 18 Oct 2015 10:03:58 +0000.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git
author Johan Mattsson <johan.mattsson.m@gmail.com>
Sun, 18 Oct 2015 10:03:58 +0000 (12:03 +0200)
committer Johan Mattsson <johan.mattsson.m@gmail.com>
Sun, 18 Oct 2015 10:03:58 +0000 (12:03 +0200)
commit 2bee5918c2f0f3dfc165b6d2014411703c9fb240
tree eacf20951d4f503e7ebfc55004d716c5a8e6052b
parent 06e5ea735ae8a3ca9b7d2e2d075f7f7ba36b0ab2
Remove old mac build script

scripts/mac_build.py [deleted ]
diff --git scripts/mac_build.py(deleted)
--- a/scripts/mac_build.py +++ /dev/null @@ -1,68 +1,1 @@ - #!/usr/bin/python - """ - Copyright (C) 2013 2014 2015 Johan Mattsson - - This library is free software; you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as - published by the Free Software Foundation; either version 3 of the - License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - """ - - import build - from translations import compile_translations - import configfile - from run import run - import version - from optparse import OptionParser - - parser = OptionParser() - parser.add_option("-p", "--prefix", dest="prefix", help="install prefix", metavar="PREFIX") - parser.add_option("-d", "--dest", dest="dest", help="install to this directory", metavar="DEST") - parser.add_option("-c", "--cc", dest="cc", help="select the C compiler", metavar="CC") - 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) - - (options, args) = parser.parse_args() - - if not options.prefix: - options.prefix = "/opt/local" - if not options.cc: - options.cc = "gcc" - if not options.cflags: - options.cflags = "" - if not options.ldflags: - options.ldflags = "" - if not options.valac: - options.valac = "valac" - - prefix = options.prefix - valac = options.valac - valaflags = "--pkg gdk-pixbuf-2.0 --pkg gtk+-2.0" - cc = options.cc - cflags = options.cflags + " " + "$(pkg-config --cflags gdk-pixbuf-2.0)" - ldflags = options.ldflags + " " + "$(pkg-config --libs gdk-pixbuf-2.0)" - - library_cflags = "-fno-common -fPIC " + cflags - library_ldflags = options.ldflags + " " + """-dynamiclib -Wl,-headerpad_max_install_names,-undefined,dynamic_lookup,-compatibility_version,1.0,-current_version,1.0,-install_name,""" + prefix + """/lib/libbirdfont.dylib""" - - gems_library_cflags = "-fno-common -fPIC -D MAC" + cflags - gems_library_ldflags = options.ldflags + " " + """-dynamiclib -Wl,-headerpad_max_install_names,-undefined,dynamic_lookup,-compatibility_version,1.0,-current_version,1.0,-install_name,""" + prefix + """/lib/libbirdgems.dylib""" - - configfile.write_config (prefix) - compile_translations() - build.libbirdgems(prefix, cc, gems_library_cflags, gems_library_ldflags, valac, valaflags, "libbirdgems." + version.LIBBIRDGEMS_SO_VERSION + ".dylib", False) - build.libbirdfont(prefix, cc, library_cflags, library_ldflags, valac, valaflags, "libbirdfont." + version.SO_VERSION + ".dylib", False) - build.birdfont_import(prefix, cc, cflags, ldflags, valac, valaflags, False) - - if not options.nogtk: - build.birdfont_gtk(prefix, cc, cflags, ldflags, valac, valaflags, False) - - print ("Done")