The Birdfont Source Code


All Repositories / birdfont.git / blob – RSS feed

windows_build.py in scripts

This file is a part of the Birdfont project.

Contributing

Send patches or pull requests to johan.mattsson.m@gmail.com.
Clone this repository: git clone https://github.com/johanmattssonm/birdfont.git

Revisions

View the latest version of scripts/windows_build.py.
Create plugin interface for the rendering classes
1 #!/usr/bin/python 2 """ 3 Copyright (C) 2013 Johan Mattsson 4 5 This library is free software; you can redistribute it and/or modify 6 it under the terms of the GNU Lesser General Public License as 7 published by the Free Software Foundation; either version 3 of the 8 License, or (at your option) any later version. 9 10 This library is distributed in the hope that it will be useful, but 11 WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 Lesser General Public License for more details. 14 """ 15 prefix = "" 16 valac = "valac" 17 valaflags = "" 18 cc = "gcc" 19 cflags = "-g ./build/icon.res -Wl,-subsystem,windows " 20 ldflags = "" 21 library_cflags = "-Wl,-subsystem,windows " 22 library_ldflags= ""; 23 24 import configfile 25 configfile.write_config (prefix) 26 configfile.write_compile_parameters (".\\\\", "build", "gcc", "gee-1.0") 27 28 import build 29 from translations import compile_translations 30 31 from run import run 32 33 compile_translations() 34 run("windres ./resources/win32/icon.rc -O coff -o ./build/icon.res") 35 build.libbirdxml(prefix, cc, cflags, library_ldflags, valac, valaflags, "libbirdxml.dll") 36 build.libbirdfont(prefix, cc, cflags, library_ldflags, valac, valaflags, "libbirdfont.dll") 37 build.birdfont_export(prefix, cc, cflags, ldflags, valac, valaflags) 38 39 print ("Done") 40