options.cflags = "" if not options.ldflags: options.ldflags = "" if not options.valac: options.valac = "valac" if not options.valaflags: options.valaflags = "" prefix = options.prefix valac = options.valac valaflags = options.valaflags + " --pkg gdk-pixbuf-2.0 --pkg gtk+-3.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 = options.cflags library_ldflags= options.ldflags + " -Wl,-soname," + "libbirdfont.so." + version.SO_VERSION birdgemslibrary_cflags = options.cflags birdgemslibrary_ldflags = options.ldflags + " -Wl,-soname," + "birdgems.so." + version.LIBBIRDGEMS_SO_VERSION configfile.write_config(prefix) compile_translations() build.libbirdgems(prefix, cc, birdgemslibrary_cflags, birdgemslibrary_ldflags, valac, valaflags, "libbirdgems.so." + version.LIBBIRDGEMS_SO_VERSION, False) build.libbirdfont(prefix, cc, library_cflags, library_ldflags, valac, valaflags, "libbirdfont.so." + version.SO_VERSION, False) build.birdfont_autotrace(prefix, cc, cflags, ldflags, valac, valaflags, False) build.birdfont_export(prefix, cc, cflags, ldflags, valac, valaflags, False) build.birdfont_import(prefix, cc, cflags, ldflags, valac, valaflags, False) build.birdfont_gtk(prefix, cc, cflags, ldflags, valac, valaflags, False) print ("Done")
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. """ prefix = "" valac = "valac" valaflags = "" cc = "gcc" cflags = "-g ./build/icon.res -Wl,-subsystem,windows " ldflags = "" library_cflags = "-Wl,-subsystem,windows " library_ldflags= ""; library = "libbirdfont.dll" import configfile configfile.write_config (prefix) configfile.write_compile_parameters (".\\\\", "build", "gcc", "gee-1.0") import build from translations import compile_translations from run import run compile_translations() run("windres ./resources/win32/icon.rc -O coff -o ./build/icon.res") build.libbirdfont(prefix, cc, cflags, library_ldflags, valac, valaflags, library) build.birdfont_export(prefix, cc, cflags, ldflags, valac, valaflags, library) print ("Done")
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 = "" cc = options.cc cflags = options.cflags ldflags = options.ldflags library_cflags = options.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""" library = "libbirdfont." + version.SO_VERSION + ".dylib" library_cflags = "-fno-common -fPIC " + cflags configfile.write_config (prefix) compile_translations() build.libbirdfont(prefix, cc, library_cflags, library_ldflags, valac, valaflags, library, False) build.birdfont_export(prefix, cc, cflags, ldflags, valac, valaflags, library, False) build.birdfont_import(prefix, cc, cflags, ldflags, valac, valaflags, library, False) if not options.nogtk: build.birdfont_gtk(prefix, cc, cflags, ldflags, valac, valaflags, library, False) print ("Done")
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. """ prefix = "" valac = "valac" valaflags = "" cc = "gcc" cflags = "-g ./build/icon.res -Wl,-subsystem,windows " ldflags = "" library_cflags = "-Wl,-subsystem,windows " library_ldflags = "" library = "libbirdfont.dll" import configfile configfile.write_config(prefix) configfile.write_compile_parameters(".\\\\", "build", "gcc", "gee-1.0") import build from translations import compile_translations from run import run compile_translations() run("windres ./resources/win32/icon.rc -O coff -o ./build/icon.res") build.libbirdfont(prefix, cc, cflags, library_ldflags, valac, valaflags, library) build.birdfont_export(prefix, cc, cflags, ldflags, valac, valaflags, library) print("Done")
if not options.ldflags: options.ldflags = "" if not options.valac: options.valac = "valac" prefix = options.prefix valac = options.valac valaflags = "" cc = options.cc cflags = options.cflags ldflags = options.ldflags library_cflags = options.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""" library = "libbirdfont." + version.SO_VERSION + ".dylib" library_cflags = "-fno-common -fPIC " + cflags configfile.write_config(prefix) compile_translations() build.libbirdfont(prefix, cc, library_cflags, library_ldflags, valac, valaflags, library, False) build.birdfont_export(prefix, cc, cflags, ldflags, valac, valaflags, library, False) build.birdfont_import(prefix, cc, cflags, ldflags, valac, valaflags, library, False) if not options.nogtk: build.birdfont_gtk(prefix, cc, cflags, ldflags, valac, valaflags, library, False) print("Done")