# # Copyright (C) 2026 Carl Hetherington # # 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 . # 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')