| 1 |
# SPDX-License-Identifier: Artistic-1.0-Perl |
| 2 |
# Copyright (C) 2011 Simon Cozens |
| 3 |
use strict; |
| 4 |
use warnings; |
| 5 |
use Module::Build; |
| 6 |
|
| 7 |
my $builder = Module::Build->new( |
| 8 |
module_name => 'Text::Gr2', |
| 9 |
license => 'Perl', |
| 10 |
dist_author => 'Simon Cozens <[email protected]>', |
| 11 |
dist_version_from => 'lib/Text/Gr2.pm', |
| 12 |
extra_compiler_flags => $^O ne 'MSWin32' ? '-Wall -Wno-unused-variable' : '', |
| 13 |
extra_linker_flags => $^O eq 'MSWin32' ? '../../build/src/graphite2.lib' : '-lgraphite2', |
| 14 |
include_dirs => ['.', '../include'], |
| 15 |
requires => { |
| 16 |
'Test::More' => 0, |
| 17 |
}, |
| 18 |
add_to_cleanup => [ 'Gr2-*' ], |
| 19 |
); |
| 20 |
|
| 21 |
$builder->create_build_script(); |