waf

FORK: waf with some random patches
git clone https://git.neptards.moe/neptards/waf.git
Log | Files | Refs | README

wscript.fip (723B)


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