File: Build.PL

package info (click to toggle)
libencode-detect-perl 1.01-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 748 kB
  • ctags: 503
  • sloc: cpp: 4,032; perl: 27; ansic: 21; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 661 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use Module::Build;
my $build = Module::Build->new
    (
     module_name => 'Encode::Detect',
     license => 'mozilla',
     requires => { 'Module::Build' => 0,
                   'ExtUtils::CBuilder' => 0,
               },
     create_makefile_pl => 'passthrough',
     c_source => 'src',
     pm_files => { 'Detect.pm' => 'lib/Encode/Detect.pm',
		   'Detector.pm' => 'lib/Encode/Detect/Detector.pm',
	       },
     xs_files => { 'Detector.xs' => 'lib/Encode/Detect/Detector.xs' },
     dist_version_from => 'Detect.pm',
     extra_compiler_flags => ['-x', 'c++', '-Iinclude'],
     extra_linker_flags => ['-lstdc++'],
    );
$build->create_build_script;