wscript.fip 704 B

1234567891011121314151617181920
  1. # wscript to build FreeImagePlus on Windows with MinGW
  2. # put it in FreeImage directory and run:
  3. # python waf configure build install
  4. top = '.'
  5. out = 'build'
  6. def options(opt):
  7. opt.load('compiler_cxx')
  8. def configure(conf):
  9. conf.load('compiler_cxx')
  10. def build(bld):
  11. bld.stlib(source=bld.path.ant_glob('Wrapper/FreeImagePlus/src/*'),
  12. includes='Wrapper/FreeImagePlus Source', target='FreeImagePlus',
  13. defines='NDEBUG WIN32 _WINDOWS _USRDLL FIP_EXPORTS _CRT_SECURE_NO_DEPRECATE',
  14. use='Dist/FreeImage odbc32 odbccp32')
  15. bld.install_as('Dist/FreeImagePlus.a', 'libFreeImagePlus.a')
  16. bld.install_files('Dist', 'Wrapper/FreeImagePlus/FreeImagePlus.h')