blob: 9c268c8516ddeeff789b8479adc62ace5bee3e50 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#
# Copyright (C) 2026 Carl Hetherington <cth@carlh.net>
#
# This file is part of libttf.
#
# libttf is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# libttf is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with libttf. If not, see <http://www.gnu.org/licenses/>.
#
def build(bld):
sources = 'collection.cc font.cc name_table.cc table.cc util.cc'
headers = 'collection.h font.h name_table.h table.h util.h'
if bld.env.STATIC:
obj = bld(features='cxx cxxstlib')
else:
obj = bld(features='cxx cxxshlib')
obj.name = 'libttf'
obj.target = 'ttf-1.0'
obj.uselib = 'BOOST_FILESYSTEM FMT'
obj.export_includes = ['.']
obj.source = sources
bld.install_files('${PREFIX}/include/libttf-1.0/ttf' % bld.env.API_VERSION, headers)
if bld.env.STATIC:
bld.install_files('${PREFIX}/lib', 'libttf-1.0.a')
|