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 new paths in pen tool
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 -Wl,-subsystem,windows " 20 ldflags = "" 21 library_ldflags= ""; 22 23 import configfile 24 configfile.write_config (prefix) 25 configfile.write_compile_parameters (".\\\\", "build", "gcc", "gee-0.8", "False") 26 27 import build 28 from translations import compile_translations 29 30 from run import run 31 32 compile_translations() 33 build.libbirdxml(prefix, cc, cflags, library_ldflags, valac, valaflags, "libbirdxml.dll") 34 build.libbirdfont(prefix, cc, cflags, library_ldflags, valac, valaflags, "libbirdfont.dll") 35 36 run ("cp build/bin/libbirdfont.dll ./") 37 run ("gcc -Wl,-subsystem,windows -Wl,--output-def,build/bin/libbirdfont.def,--out-implib -shared -Wl,-soname,libbirdfont.dll libbirdfont.dll") 38 run ("rm libbirdfont.dll") 39 40 #FIMXE 41 #build.birdfont_export(prefix, cc, cflags, ldflags, valac, valaflags) 42 #build.birdfont_import(prefix, cc, cflags, ldflags, valac, valaflags) 43 #build.birdfont_autotrace(prefix, cc, cflags, ldflags, valac, valaflags) 44 45 print ("Done") 46