wscript 739 B

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