2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-23 02:16:01 +01:00
waf/demos/perl/wscript
2011-09-10 11:13:51 +02:00

41 lines
739 B
Python

#! /usr/bin/env python
# encoding: utf-8
# anonymous coward, 2007
# Thomas Nagy, 2010
VERSION='0.0.1'
APPNAME='perl_test'
top = '.'
out = 'build'
def options(opt):
opt.load('compiler_c')
opt.load('perl')
def configure(conf):
conf.load('compiler_c')
conf.load('perl')
# check for perl
conf.check_perl_version((5,6,0))
conf.check_perl_ext_devel()
# check for some perl module...
conf.check_perl_module('Cairo')
# ...and a specific version
conf.check_perl_module('Devel::PPPort 4.89')
def build(bld):
# a perl extension module
bld(
features = 'c cshlib perlext',
source = 'Mytest.xs',
target = 'Mytest',
install_path = '${ARCHDIR_PERL}/auto')
bld.install_files('${ARCHDIR_PERL}', 'Mytest.pm')