The Birdfont Source Code


All Repositories / birdfont.git / blob – RSS feed

build.py

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 build.py.
Fix compile error
1 #!/usr/bin/python3 2 3 import dodo 4 from sys import platform 5 6 from scripts.builder import process_tasks 7 from scripts import config 8 from scripts.translations import compile_translations 9 from scripts import version 10 11 if platform == 'msys': 12 process_tasks(dodo.make_libbirdgems('libbirdgems.dll', [])) 13 process_tasks(dodo.make_libbirdgems('libsvgbird.dll', [])) 14 process_tasks(dodo.make_libbirdfont('libbirdfont.dll', ['libbirdgems.dll', 'libsvgbird.dll'])) 15 process_tasks(dodo.make_libbirdfont('libbirdfont.dll', ['libbirdgems.dll', 'libsvgbird.dll'])) 16 process_tasks(dodo.make_birdfont_test('birdfont-test.exe', 17 ['libbirdgems.dll', 'libbirdfont.dll', 'libsvgbird.dll'])) 18 elif platform == 'darwin': 19 gems = "libbirdgems." + str(version.LIBBIRDGEMS_SO_VERSION) + '.dylib' 20 bird = "libbirdfont." + str(version.SO_VERSION) + '.dylib'; 21 svg = "libsvgbird." + str(version.LIBSVGBIRD_SO_VERSION) + '.dylib'; 22 process_tasks(dodo.make_libsvgbird(svg, [])) 23 process_tasks(dodo.make_libbirdgems(gems, [])) 24 process_tasks(dodo.make_libbirdfont(bird, [gems])) 25 process_tasks(dodo.task_man()) 26 else: 27 process_tasks(dodo.task_libsvgbird()) 28 process_tasks(dodo.task_libbirdgems()) 29 process_tasks(dodo.task_libbirdfont()) 30 process_tasks(dodo.make_birdfont_test('birdfont-test', 31 ['libsvgbird.so', 'libbirdgems.so', 'libbirdfont.so'])) 32 33 if config.GTK: 34 process_tasks(dodo.task_birdfont()) 35 process_tasks(dodo.task_birdfont_autotrace()) 36 process_tasks(dodo.task_birdfont_export()) 37 process_tasks(dodo.task_birdfont_import()) 38 process_tasks(dodo.task_man()) 39 40 compile_translations() 41 42 print('Done') 43