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.
Update boundaries after undo
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('libsvgbird.dll', [])) 13 process_tasks(dodo.task_svgbird_vapi()) 14 process_tasks(dodo.make_libbirdgems('libbirdgems.dll', [])) 15 process_tasks(dodo.make_libbirdfont('libbirdfont.dll', ['libbirdgems.dll', 'libsvgbird.dll'])) 16 process_tasks(dodo.make_libbirdfont('libbirdfont.dll', ['libbirdgems.dll', 'libsvgbird.dll'])) 17 process_tasks(dodo.make_birdfont_test('birdfont-test.exe', 18 ['libbirdgems.dll', 'libbirdfont.dll', 'libsvgbird.dll'])) 19 elif platform == 'darwin': 20 gems = "libbirdgems." + str(version.LIBBIRDGEMS_SO_VERSION) + '.dylib' 21 bird = "libbirdfont." + str(version.SO_VERSION) + '.dylib'; 22 svg = "libsvgbird." + str(version.LIBSVGBIRD_SO_VERSION) + '.dylib'; 23 process_tasks(dodo.make_libsvgbird(svg, [])) 24 process_tasks(dodo.task_svgbird_vapi()) 25 process_tasks(dodo.make_libbirdgems(gems, [])) 26 process_tasks(dodo.make_libbirdfont(bird, [gems])) 27 process_tasks(dodo.task_man()) 28 else: 29 process_tasks(dodo.task_libsvgbird()) 30 process_tasks(dodo.task_svgbird_vapi()) 31 process_tasks(dodo.task_svgbird_vapi()) 32 process_tasks(dodo.task_libbirdgems()) 33 process_tasks(dodo.task_libbirdfont()) 34 process_tasks(dodo.make_birdfont_test('birdfont-test', 35 ['libsvgbird.so', 'libbirdgems.so', 'libbirdfont.so'])) 36 37 if config.GTK: 38 process_tasks(dodo.task_birdfont()) 39 process_tasks(dodo.task_birdfont_autotrace()) 40 process_tasks(dodo.task_birdfont_export()) 41 process_tasks(dodo.task_birdfont_import()) 42 process_tasks(dodo.task_man()) 43 44 compile_translations() 45 46 print('Done') 47