.
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.libbirdgems(prefix, cc, cflags, library_ldflags, valac, valaflags, "libbirdgems.dll")
34 build.libbirdxml(prefix, cc, cflags, library_ldflags, valac, valaflags, "libbirdxml.dll")
35 build.libbirdfont(prefix, cc, cflags, library_ldflags, valac, valaflags, "libbirdfont.dll")
36
37 run ("cp build/bin/libbirdfont.dll ./")
38 run ("gcc -Wl,-subsystem,windows -Wl,--output-def,build/bin/libbirdfont.def,--out-implib -shared -Wl,-soname,libbirdfont.dll libbirdfont.dll")
39 run ("rm libbirdfont.dll")
40
41 #FIMXE
42 #build.birdfont_export(prefix, cc, cflags, ldflags, valac, valaflags)
43 #build.birdfont_import(prefix, cc, cflags, ldflags, valac, valaflags)
44 #build.birdfont_autotrace(prefix, cc, cflags, ldflags, valac, valaflags)
45
46 print ("Done")
47