wscript (739B)
1 #! /usr/bin/env python 2 # encoding: utf-8 3 # anonymous coward, 2007 4 # Thomas Nagy, 2010 5 6 VERSION='0.0.1' 7 APPNAME='perl_test' 8 9 top = '.' 10 out = 'build' 11 12 def options(opt): 13 opt.load('compiler_c') 14 opt.load('perl') 15 16 def configure(conf): 17 conf.load('compiler_c') 18 conf.load('perl') 19 20 # check for perl 21 conf.check_perl_version((5,6,0)) 22 23 conf.check_perl_ext_devel() 24 25 # check for some perl module... 26 conf.check_perl_module('Cairo') 27 # ...and a specific version 28 conf.check_perl_module('Devel::PPPort 4.89') 29 30 def build(bld): 31 32 # a perl extension module 33 bld( 34 features = 'c cshlib perlext', 35 source = 'Mytest.xs', 36 target = 'Mytest', 37 install_path = '${ARCHDIR_PERL}/auto') 38 39 bld.install_files('${ARCHDIR_PERL}', 'Mytest.pm') 40